Skip to content

Commit c81cf0c

Browse files
committed
Lots of Tilemap updates, moved the renderer out, added components and new tests.
1 parent c647792 commit c81cf0c

34 files changed

Lines changed: 2427 additions & 1595 deletions

Docs/game art/avoid-digits.png

1.23 KB
Loading

Docs/game art/avoid-panel.png

1.4 KB
Loading

Docs/game art/avoid-sheet.png

2.76 KB
Loading

Docs/game art/avoidmock4x2.png

9.2 KB
Loading

Phaser/components/Texture.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ module Phaser.Components {
7979
public cameraBlacklist: number[];
8080

8181
/**
82-
* Whether the Sprite background is opaque or not. If set to true the Sprite is filled with
82+
* Whether the texture background is opaque or not. If set to true the object is filled with
8383
* the value of Texture.backgroundColor every frame. Normally you wouldn't enable this but
8484
* for some effects it can be handy.
8585
* @type {boolean}
@@ -136,6 +136,12 @@ module Phaser.Components {
136136
*/
137137
public renderRotation: bool = true;
138138

139+
/**
140+
* The direction the animation frame is facing (can be Phaser.Types.RIGHT, LEFT, UP, DOWN).
141+
* Very useful when hooking animation to Sprite directions.
142+
*/
143+
public facing: number;
144+
139145
/**
140146
* Flip the graphic horizontally (defaults to false)
141147
* @type {boolean}

0 commit comments

Comments
 (0)