Updated Loader component and fixed a few Pointer issues.

This commit is contained in:
Richard Davey
2013-06-05 02:58:16 +01:00
parent d42f396ba0
commit 2f03f5fc43
118 changed files with 934 additions and 602 deletions
+3 -3
View File
@@ -14,10 +14,10 @@ class FakeGame extends State {
public init() {
this.loader.addImageFile('track', '../../assets/games/f1/track.png');
this.loader.addImageFile('car', '../../assets/games/f1/car1.png');
this.load.image('track', '../../assets/games/f1/track.png');
this.load.image('car', '../../assets/games/f1/car1.png');
this.loader.load();
this.load.start();
}
+2 -2
View File
@@ -16,10 +16,10 @@ class MainMenu extends State {
public init() {
this.loader.addImageFile('car', '../../assets/pics/supercars_parsec.png');
this.load.image('car', '../../assets/pics/supercars_parsec.png');
this.loader.addSpriteSheet('monster', '../../assets/sprites/metalslug_monster39x40.png', 39, 40);
this.loader.load();
this.load.start();
}