Change GameScene to import new png, change map name and add missing png files
authorNIP <n.peguin@thecodingmachine.com>
Mon, 13 Apr 2020 18:34:19 +0000 (20:34 +0200)
committerNIP <n.peguin@thecodingmachine.com>
Mon, 13 Apr 2020 18:34:19 +0000 (20:34 +0200)
front/dist/maps/tilesets_deviant_milkian_1.png [new file with mode: 0644]
front/src/Phaser/Game/GameScene.ts

diff --git a/front/dist/maps/tilesets_deviant_milkian_1.png b/front/dist/maps/tilesets_deviant_milkian_1.png
new file mode 100644 (file)
index 0000000..4740013
Binary files /dev/null and b/front/dist/maps/tilesets_deviant_milkian_1.png differ
index 12acded0b657e6e037e2aa32c2bd7c41a967d693..ab4703e136e0aecf1d80b74cb04bd8e423972de7 100644 (file)
@@ -41,8 +41,9 @@ export class GameScene extends Phaser.Scene implements GameSceneInterface{
 
     //hook preload scene
     preload(): void {
-        this.load.image(Textures.Tiles, 'maps/tiles.png');
-        this.load.tilemapTiledJSON(Textures.Map, 'maps/map2.json');
+        this.load.image(Textures.Tiles, 'maps/floortileset.png');
+        this.load.image(Textures.Tiles, 'maps/tilesets_deviant_milkian_1.png');
+        this.load.tilemapTiledJSON(Textures.Map, 'maps/map.json');
         this.load.image(Textures.Rock, 'resources/objects/rockSprite.png');
         this.load.spritesheet(Textures.Player,
             'resources/characters/pipoya/Male 01-1.png',