diff --git a/OverworldMap.js b/OverworldMap.js index a19d37c..8d185af 100644 --- a/OverworldMap.js +++ b/OverworldMap.js @@ -132,6 +132,17 @@ window.OverworldMaps = { ] } ] + }), + npc3: new Person({ + x: utils.withGrid(9), + y: utils.withGrid(3), + src: "/images/characters/people/hero-test.png", + behaviorLoop: [ + { type: "stand", direction: "down", time: 2000 }, + { type: "stand", direction: "right", time: 2000 }, + { type: "stand", direction: "up", time: 2000 }, + { type: "stand", direction: "left", time: 2000 }, + ], }) }, walls: { @@ -202,13 +213,14 @@ window.OverworldMaps = { } }, Kitchen: { - lowerSrc: "/images/maps/room-builder.png", - upperSrc: "/images/maps/room-builder.png", + lowerSrc: "/images/maps/map-room-kitchen.png", + // upperSrc: "/images/maps/room-builder.png", + upperSrc: "", gameObjects: { hero: new Person({ isPlayerControlled: true, - x: utils.withGrid(2), - y: utils.withGrid(3), + x: utils.withGrid(1), + y: utils.withGrid(4), }), npc1: new Person({ x: utils.withGrid(3), @@ -222,6 +234,41 @@ window.OverworldMaps = { } ] }) + }, + walls: { + // "16,16": true + [utils.asGridCoord(1,1)] : true, + [utils.asGridCoord(1,2)] : true, + [utils.asGridCoord(1,3)] : true, + [utils.asGridCoord(0,4)] : true, + [utils.asGridCoord(1,5)] : true, + [utils.asGridCoord(1,6)] : true, + [utils.asGridCoord(2,7)] : true, + [utils.asGridCoord(3,7)] : true, + [utils.asGridCoord(4,7)] : true, + [utils.asGridCoord(5,7)] : true, + [utils.asGridCoord(6,7)] : true, + [utils.asGridCoord(7,7)] : true, + [utils.asGridCoord(8,6)] : true, + [utils.asGridCoord(8,5)] : true, + [utils.asGridCoord(8,4)] : true, + [utils.asGridCoord(8,3)] : true, + [utils.asGridCoord(8,2)] : true, + [utils.asGridCoord(7,1)] : true, + [utils.asGridCoord(6,1)] : true, + [utils.asGridCoord(5,1)] : true, + [utils.asGridCoord(4,1)] : true, + [utils.asGridCoord(3,1)] : true, + [utils.asGridCoord(2,1)] : true, + }, + cutsceneSpaces: { + [utils.asGridCoord(1,4)]: [ + { + events: [ + { type: "changeMap", map: "DemoRoom" } + ] + } + ], } } } \ No newline at end of file diff --git a/images/maps/map-room-kitchen.png b/images/maps/map-room-kitchen.png new file mode 100644 index 0000000..d2d43bd Binary files /dev/null and b/images/maps/map-room-kitchen.png differ