From b7e037eb6a0e2ab0cb183f04b0cd3c07ee3210f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Baumg=C3=A4rtner?= Date: Tue, 6 Aug 2024 17:40:44 +0200 Subject: [PATCH] added sketch of kitchen map --- OverworldMap.js | 55 ++++++++++++++++++++++++++++--- images/maps/map-room-kitchen.png | Bin 0 -> 1697 bytes 2 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 images/maps/map-room-kitchen.png 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 0000000000000000000000000000000000000000..d2d43bd6cbae1fa3f2bdf98da4a6d50d21593231 GIT binary patch literal 1697 zcma)+3s6#77{`%7Q8P0uElY9BClQmjZZ;vl6}Ci8Gao_byOn%r2x?Yp>XwhhM?NrZ zHzzB6o6k}+O(klpF|}k-j5LLW7F5vo;%v3EGtKOsIro3g_uX^8bAJCjC&SgnNlj(D z3J3&J!#dl$1DYdmFh$_abDX>n0x6_~+1a_qxI5Xxu?}_?`z$RikY;=Lfk4K&ak=e3 zud~^hj+xrkt>o5NTYF%?&$a~x8=Wi&v0^J0LS#-48`$pEjn~ld?LOwZkwo3HtQCql zu6m&oc8YX2w2D(|Zfifhr$ICy5uf(f`{N_?>;7J`7jv23&vR?d(B?Jg=nHPCbj2|b zriIa|-YDFdbZ5|+4&}Bc99=qcdTU;@VvrTbhS?b1Q`IwtuzWF1;us?D?uF4+;(elR zIKE!^&5NVc9x0d;&6Cez=VnuBFHtVCQ%KUb9$_@tG1yz$nk~&63p{ITSm)UREivA8 z$xS=pGE6@~JIB&KhtL-2kRjs>WY~h;Ue`tgw`4iE-+c1iWVYS|k9+BW9~`Ki6@QK( zk~$eJuALU^Y51$6u?-W*frx`o`)^Efvnym8d+YmTzpZ<^K_6Pwxhn2&L@<~I#*Ud9BWGwJMqTVF*|a#gc7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