Working my way through putting all the Tests back in and fixing issues as I go.

This commit is contained in:
Richard Davey
2013-06-01 01:30:36 +01:00
parent 31c4d8cb14
commit b20a6ff85a
22 changed files with 602 additions and 214 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ module Phaser {
/**
* Reference to the Renderer.renderSprite method. Can be overriden by custom classes.
*/
render;
//render;
/**
* Controls if both <code>update</code> and render are called by the core game loop.
-1
View File
@@ -31,7 +31,6 @@ module Phaser {
super(game, x, y, key);
this.type = Phaser.Types.SCROLLZONE;
this.render = game.renderer.renderScrollZone;
this.regions = [];
+3 -10
View File
@@ -27,7 +27,6 @@ module Phaser {
this.game = game;
this.type = Phaser.Types.SPRITE;
this.render = game.renderer.renderSprite;
this.exists = true;
this.active = true;
@@ -42,6 +41,9 @@ module Phaser {
this.y = y;
this.z = 0; // not used yet
// If a texture has been given the body will be set to that size, otherwise 16x16
this.body = new Phaser.Physics.Body(this, bodyType);
this.animations = new Phaser.Components.AnimationManager(this);
this.texture = new Phaser.Components.Texture(this, key);
this.cameraBlacklist = [];
@@ -50,10 +52,6 @@ module Phaser {
this.origin = new Phaser.Vec2(0, 0);
this.scale = new Phaser.Vec2(1, 1);
this.skew = new Phaser.Vec2(0, 0);
// If a texture has been given the body will be set to that size, otherwise 16x16
this.body = new Phaser.Physics.Body(this, bodyType);
}
/**
@@ -66,11 +64,6 @@ module Phaser {
*/
public type: number;
/**
* Reference to the Renderer.renderSprite method. Can be overriden by custom classes.
*/
public render;
/**
* Controls if both <code>update</code> and render are called by the core game loop.
*/