Add scene solely dedicated to preloading assets
This commit is contained in:
@@ -42,13 +42,6 @@ export class GameScene extends Phaser.Scene {
|
||||
super("GameScene");
|
||||
}
|
||||
|
||||
preload() {
|
||||
this.load.spritesheet("warrior", "warrior.png", { frameWidth: 12, frameHeight: 15 });
|
||||
this.load.spritesheet("rat", "rat.png", { frameWidth: 16, frameHeight: 15 });
|
||||
this.load.spritesheet("bat", "bat.png", { frameWidth: 15, frameHeight: 15 });
|
||||
this.load.spritesheet("tiles0", "assets/tiles0.png", { frameWidth: 16, frameHeight: 16 });
|
||||
}
|
||||
|
||||
create() {
|
||||
this.cursors = this.input.keyboard!.createCursorKeys();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user