From 6728cfc308b9dfb44dc7f123cbcf6a375730d66b Mon Sep 17 00:00:00 2001 From: MegaBrutal Date: Thu, 13 Sep 2018 23:55:00 +0200 Subject: [PATCH] Add Saiki modified: tilemap.json modified: tilemap.tmx modified: wgj58.js --- tilemap.json | 14 +++++++++++++- tilemap.tmx | 3 ++- wgj58.js | 11 +++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/tilemap.json b/tilemap.json index a8f1755..445b630 100644 --- a/tilemap.json +++ b/tilemap.json @@ -273,6 +273,18 @@ "width":64, "x":1600, "y":1728 + }, + { + "gid":51, + "height":64, + "id":32, + "name":"saiki", + "rotation":0, + "type":"spawnpoint", + "visible":true, + "width":64, + "x":2336, + "y":1408 }], "opacity":1, "type":"objectgroup", @@ -280,7 +292,7 @@ "x":0, "y":0 }], - "nextobjectid":32, + "nextobjectid":33, "orientation":"orthogonal", "renderorder":"right-down", "tiledversion":"1.1.6", diff --git a/tilemap.tmx b/tilemap.tmx index be58aad..634f76d 100644 --- a/tilemap.tmx +++ b/tilemap.tmx @@ -1,5 +1,5 @@ - + @@ -192,5 +192,6 @@ + diff --git a/wgj58.js b/wgj58.js index 5b5929a..2183a22 100644 --- a/wgj58.js +++ b/wgj58.js @@ -383,6 +383,13 @@ class NPC_Carlos extends GameNPC { } } +class NPC_Saiki extends GameNPC { + actionTalk() { + super.actionTalk(); + logic.endTalk(); + } +} + class GameInterface extends Phaser.Group { constructor(game, parent) { @@ -579,6 +586,10 @@ class GameLogic { newChar = new NPC_Carlos(object.x, object.y, 'carlos', "Carlos", "Carlos Elbacalper", 150); this.carlos = newChar; break; + case 'saiki': + newChar = new NPC_Saiki(object.x, object.y, 'saiki', "Saiki", "Saiki Ytpme", 200); + this.saiki = newChar; + break; default: console.error("Unknown character:", object); } -- 2.34.1