mirror of
https://github.com/wassname/phaser.git
synced 2026-08-12 12:20:38 +08:00
Lots of Tilemap updates, moved the renderer out, added components and new tests.
This commit is contained in:
@@ -91,6 +91,13 @@ module Phaser {
|
||||
|
||||
}
|
||||
|
||||
static renderRectangle(rect: Phaser.Rectangle, fillStyle: string = 'rgba(0,255,0,0.3)') {
|
||||
|
||||
DebugUtils.context.fillStyle = fillStyle;
|
||||
DebugUtils.context.fillRect(rect.x, rect.y, rect.width, rect.height);
|
||||
|
||||
}
|
||||
|
||||
static renderPhysicsBody(body: Phaser.Physics.Body, lineWidth: number = 1, fillStyle: string = 'rgba(0,255,0,0.2)', sleepStyle: string = 'rgba(100,100,100,0.2)') {
|
||||
|
||||
for (var s = 0; s < body.shapesLength; s++)
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
module Phaser {
|
||||
|
||||
class PointUtils {
|
||||
export class PointUtils {
|
||||
|
||||
/**
|
||||
* Adds the coordinates of two points together to create a new point.
|
||||
|
||||
Reference in New Issue
Block a user