File size: 1,743 Bytes
670a607
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import { Scene } from "phaser";

export class LoadingScene extends Scene {
  // private player!: GameObjects.Sprite;

  constructor() {
    super("loading-scene");
  }

  preload(): void {
    this.load.baseURL = "assets/";

    // SPRITE LOADING
    this.load.spritesheet("Brendan", "sprites/brendan.png", {
      frameWidth: 14,
      frameHeight: 21,
    });

    this.load.spritesheet("May", "sprites/may.png", {
      frameWidth: 14,
      frameHeight: 20,
    });

    this.load.spritesheet("Birch", "sprites/birch.png", {
      frameWidth: 16,
      frameHeight: 20,
    });

    this.load.spritesheet("Steven", "sprites/steven.png", {
      frameWidth: 16,
      frameHeight: 21,
    });

    this.load.spritesheet("Maxie", "sprites/maxie.png", {
      frameWidth: 16,
      frameHeight: 20,
    });

    this.load.spritesheet("Archie", "sprites/archie.png", {
      frameWidth: 16,
      frameHeight: 20,
    });

    this.load.spritesheet("Joseph", "sprites/joseph.png", {
      frameWidth: 14,
      frameHeight: 21,
    });

    // MESSAGE BLABK LOADING
    // this.load.spritesheet('message', 'message/message_box.png', { frameWidth: 128, frameHeight: 48 });

    // MAP LOADING
    this.load.image({
      key: "tiles",
      url: "tilemaps/tiles/tileset.png",
    });
    this.load.tilemapTiledJSON("town", "tilemaps/json/town.json");

    // CHEST LOADING
    // this.load.spritesheet('tiles_spr', 'tilemaps/tiles/dungeon-16-16.png', {
    //   frameWidth: 16,
    //   frameHeight: 16,
    // });
  }

  create(): void {
    // this.scene.start('level-1-scene');
    // this.scene.start('ui-scene');
    this.scene.start("town-scene");
    // this.scene.start("textbox-scene");
    // this.scene.start("message-scene");
  }
}