From ade934cebae57c93c83afa18b85256fb707c31a6 Mon Sep 17 00:00:00 2001 From: PhaserEditor2D Date: Fri, 30 Oct 2020 02:07:44 -0400 Subject: [PATCH 1/2] Tilemap content type icon. --- CHANGELOG.MD | 2 +- .../editor/plugins/phasereditor2d.pack/src/AssetPackPlugin.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index e4c267856..d5bcc90ce 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -15,7 +15,7 @@ * User components editor: shows the context menu in the Outline view. * Scene Editor: allows writing an expression in property fields. * New Sunny Land project template, based on Tiled maps. -* Scene Editor: Tilemap, StaticTilemapLayer and DynamicTilemapLayer support. +* Scene Editor:Tilemap, StaticTilemapLayer and DynamicTilemapLayer support. ### Removed diff --git a/source/editor/plugins/phasereditor2d.pack/src/AssetPackPlugin.ts b/source/editor/plugins/phasereditor2d.pack/src/AssetPackPlugin.ts index 26e921762..ac704e925 100644 --- a/source/editor/plugins/phasereditor2d.pack/src/AssetPackPlugin.ts +++ b/source/editor/plugins/phasereditor2d.pack/src/AssetPackPlugin.ts @@ -120,6 +120,10 @@ namespace phasereditor2d.pack { iconName: ICON_ANIMATIONS, contentType: core.contentTypes.CONTENT_TYPE_ANIMATIONS }, + { + iconName: ICON_TILEMAP, + contentType: core.contentTypes.CONTENT_TYPE_TILEMAP_TILED_JSON + }, { plugin: webContentTypes.WebContentTypesPlugin.getInstance(), iconName: webContentTypes.ICON_FILE_FONT, From 8259e2f8d9b692cc5cb8e17575d2281178d1f7ce Mon Sep 17 00:00:00 2001 From: PhaserEditor2D Date: Fri, 30 Oct 2020 21:08:06 -0400 Subject: [PATCH 2/2] Fixes sunny land template. --- .../files/assets/scenes/Level.js | 5 ----- .../files/assets/scenes/Level.scene | 12 ------------ .../files/main.js | 5 ----- 3 files changed, 22 deletions(-) diff --git a/source/templates/providers/Phaser Editor 2D/Demo - JavaScript - Sunny Land (Tilemap)/files/assets/scenes/Level.js b/source/templates/providers/Phaser Editor 2D/Demo - JavaScript - Sunny Land (Tilemap)/files/assets/scenes/Level.js index ffc2144e5..fc4b54013 100755 --- a/source/templates/providers/Phaser Editor 2D/Demo - JavaScript - Sunny Land (Tilemap)/files/assets/scenes/Level.js +++ b/source/templates/providers/Phaser Editor 2D/Demo - JavaScript - Sunny Land (Tilemap)/files/assets/scenes/Level.js @@ -34,10 +34,6 @@ class Level extends Phaser.Scene { const map = this.add.tilemap("map"); map.addTilesetImage("tileset", "tileset"); - // map_1 - const map_1 = this.add.tilemap("map"); - map_1.addTilesetImage("tileset", "tileset"); - // back3 const back3 = this.add.image(0, 0, "back"); back3.setOrigin(0, 0); @@ -232,7 +228,6 @@ class Level extends Phaser.Scene { this.right_button = right_button; this.jump_button = jump_button; this.map = map; - this.map_1 = map_1; this.items = items; this.enemies = enemies; } diff --git a/source/templates/providers/Phaser Editor 2D/Demo - JavaScript - Sunny Land (Tilemap)/files/assets/scenes/Level.scene b/source/templates/providers/Phaser Editor 2D/Demo - JavaScript - Sunny Land (Tilemap)/files/assets/scenes/Level.scene index 5f02dec91..f30829ad4 100755 --- a/source/templates/providers/Phaser Editor 2D/Demo - JavaScript - Sunny Land (Tilemap)/files/assets/scenes/Level.scene +++ b/source/templates/providers/Phaser Editor 2D/Demo - JavaScript - Sunny Land (Tilemap)/files/assets/scenes/Level.scene @@ -468,18 +468,6 @@ "imageKey": "tileset" } ] - }, - { - "id": "a1061f1d-0479-4a10-839f-294ee33c167e", - "type": "Tilemap", - "label": "map_1", - "key": "map", - "tilesets": [ - { - "name": "tileset", - "imageKey": "tileset" - } - ] } ], "meta": { diff --git a/source/templates/providers/Phaser Editor 2D/Demo - JavaScript - Sunny Land (Tilemap)/files/main.js b/source/templates/providers/Phaser Editor 2D/Demo - JavaScript - Sunny Land (Tilemap)/files/main.js index 85f254c3b..9029c25af 100644 --- a/source/templates/providers/Phaser Editor 2D/Demo - JavaScript - Sunny Land (Tilemap)/files/main.js +++ b/source/templates/providers/Phaser Editor 2D/Demo - JavaScript - Sunny Land (Tilemap)/files/main.js @@ -25,11 +25,6 @@ window.addEventListener('load', function () { }); game.scene.add("Boot", Boot, true); - - document.body.addEventListener("pointerdown", () => { - - game.scale.startFullscreen(); - }); }); class Boot extends Phaser.Scene {