From b8bc078694df0e7ed2d7a0089e7463773f664cd2 Mon Sep 17 00:00:00 2001 From: stickyPiston Date: Sun, 12 Apr 2020 11:21:30 +0200 Subject: [PATCH 1/3] [level]: Added 1-1 and 1-2 --- src/levels/1-1 copy.js | 58 ------------------------------------------ src/levels/1-1.js | 52 +++++++++++++++++++------------------ src/levels/1-2.js | 48 ++++++++++++++++++++++++++++++++++ 3 files changed, 75 insertions(+), 83 deletions(-) delete mode 100644 src/levels/1-1 copy.js create mode 100644 src/levels/1-2.js diff --git a/src/levels/1-1 copy.js b/src/levels/1-1 copy.js deleted file mode 100644 index e67ec40..0000000 --- a/src/levels/1-1 copy.js +++ /dev/null @@ -1,58 +0,0 @@ -const tileSize = 32; - -let level = { - tiles: [ - 1, 2, 2, 2, 2, 6, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 6, - 4, 21, 22, 23, 21, 7, 0, 4, 22, 23, 21, 22, 23, 21, 22, 23, 21, 22, 23, 21, 22, 23, 21, 22, 23, 21, 22, 23, 21, 7, - 4, 17, 17, 17, 17, 7, 0, 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 7, 0, 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 8, 2, 3, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 0, 22, 22, 22, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 14, 15, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 10, 9 - ], - size: { - w: 960, - h: 480 - }, - startPos: { - x: 48, - y: 64 - }, - entities: [ - { - type: "Mage", - pos: { x: 9 * tileSize, y: 2 * tileSize } - }, - { - type: "Mage", - pos: { x: 1 * tileSize, y: 8 * tileSize } - }, - { - type: "Chest", - pos: { x: 4 * tileSize, y: 2 * tileSize }, - action: (player) => { - player.items.keys.push("1-2_1"); - } - }, - { - type: "Portal", - pos: { x: 8 * tileSize, y: 2 * tileSize }, - texture: "Ladder", - action: (player) => { - player.pos = {x:512,y:256}; - player.refocus = true; - }, - key: "1-2_3" - } - ] -}; - -module.exports = level; \ No newline at end of file diff --git a/src/levels/1-1.js b/src/levels/1-1.js index e510efc..d5bc440 100644 --- a/src/levels/1-1.js +++ b/src/levels/1-1.js @@ -2,35 +2,37 @@ const tileSize = 32; let level = { tiles: [ - 1, 2, 2, 2, 2, 6, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 6, - 4, 21, 22, 23, 21, 7, 0, 4, 22, 23, 21, 22, 23, 21, 22, 23, 21, 22, 23, 21, 22, 23, 21, 22, 23, 21, 22, 23, 21, 7, - 4, 17, 17, 17, 17, 7, 0, 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 7, 0, 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 8, 2, 3, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 22, 22, 22, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 14, 15, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 10, 9 + 1, 2, 2, 2, 2, 2, 2, 2, 5, 6, + 4, 21, 22, 23, 21, 22, 23, 21, 22, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 14, 15, 11, 11, 16, 18, 12, 11, 10, 13, + 0, 0, 0, 0, 14, 48, 13, 0, 0, 0 ], size: { - w: 960, - h: 480 + w: 10 * tileSize, + h: 20 * tileSize }, startPos: [ { x: 48, y: 64 }, { x: 48, y: 128 } ], entities: [ - { - type: "Mage", - pos: { x: 9 * tileSize, y: 2 * tileSize } - }, { type: "Mage", pos: { x: 1 * tileSize, y: 8 * tileSize } @@ -44,10 +46,10 @@ let level = { }, { type: "Portal", - pos: { x: 8 * tileSize, y: 2 * tileSize }, - texture: "Ladder", - action: (player, level) => { - level.switch = { module: "./src/levels/1-1 copy.js", pos: 0 }; + pos: { x: 5 * tileSize, y: 19 * tileSize }, + texture: "Door_s", + action: (_player, level) => { + level.switch = { module: "./src/levels/1-2.js", pos: 0 }; }, key: "1-1_1" } diff --git a/src/levels/1-2.js b/src/levels/1-2.js new file mode 100644 index 0000000..34c5b01 --- /dev/null +++ b/src/levels/1-2.js @@ -0,0 +1,48 @@ +const tileSize = 32; + +let level = { + tiles: [ + 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 6, + 4, 21, 22, 23, 21, 22, 23, 21, 22, 23, 21, 22, 23, 21, 22, 23, 21, 22, 23, 21, 22, 23, 21, 22, 23, 21, 22, 23, 21, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 4, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 7, + 14, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 10, 13 + ], + size: { + w: 30 * tileSize, + h: 10 * tileSize + }, + startPos: [ + { x: 5 * tileSize, y: 3 * tileSize }, + { x: 48, y: 128 } + ], + entities: [ + { + type: "Mage", + pos: { x: 1 * tileSize, y: 8 * tileSize } + }, + { + type: "Chest", + pos: { x: 4 * tileSize, y: 2 * tileSize }, + action: (player) => { + player.items.keys.push("1-1_1"); + } + }, + { + type: "Portal", + pos: { x: 5 * tileSize, y: 1 * tileSize }, + texture: "Door_n", + action: (_player, level) => { + level.switch = { module: "./src/levels/1-1.js", pos: 0 }; + }, + key: "1-1_1" + } + ] +}; + +module.exports = level; \ No newline at end of file -- 2.45.2 From 7db584f46f63ef55cdf61ca01c446599c92b7664 Mon Sep 17 00:00:00 2001 From: stickyPiston Date: Sun, 12 Apr 2020 16:17:01 +0200 Subject: [PATCH 2/3] [assets]: Updated tilemap to include assets for Door_s --- res/aseprite/example.aseprite | Bin 3464 -> 3669 bytes res/aseprite/tilemap.aseprite | Bin 3972 -> 4251 bytes res/tilemap.js | 24 ++++++++++++++++++++++++ res/tilemap.png | Bin 4327 -> 4639 bytes 4 files changed, 24 insertions(+) diff --git a/res/aseprite/example.aseprite b/res/aseprite/example.aseprite index d404fb274fda0acaf1262bed7daa162b2f16b761..2fb0c6a931aa99808c454585e0ef95ed7730b83c 100644 GIT binary patch delta 3352 zcmYLLdpuNm8y}ZYI!2|k6DFyREV|5uYC83vqS%$Btr#XLX{PNmlTFc_RA$sBv@M0j zxP(gV#xl7K5=xj{OEQTuF^tQ^%$PanyrcJhKkxbL_xzscJfG+Jp6};;zcDL1Ep!i> zBJQEVy-+yUWM>N)p)*|6+P>ciJLk$YW9`nTO& zw!;zAC}Iq=W#;`NYTZaA+9oq~Wk0g2RH$LhePeB_gydYF4g_JIIFF1;G4~;7dpI4w z7-In*EELOM1YhHrxP+d>+FSp+p4eeJM4^xdhaMchN4FiU+fL;7&YuAz)hriao}aG% zCsOuOuN657mz`*gLaHaL>mg76+j-flX+K?eU`(m9#SFl}4t(a2d3I#eCyjRj7Sn9` zmuk%*ce<9@7FW0eyQD3%P)@i?R~P_ z-4*Qkyg!7|m`t3K+;)=n^37cPcCIyv`gPrf3mx9~TgNsMZVl)9x^F<9?9~>N{2@o~ zZ>Jh5u#zXTy+&$LV=w7p#etoeFi>+(}?b_#`s=KWlcZZn_0?{j(fuz=s1O1yO{ z!`GdM-XN^n0a<30fOV>eJ>+?^O5!CYFL?X1k^1h$6t3+PCGWn$BXag8{Gtq=Nl_Je z;q;14iaOHqSNOe5*E>!^e19JAqY0s{HU_c2$vMW3>4^wOn>2%rMh{1c@cF|}@}*y) zyubr4@kNeFbw=Ro{3O`#z=UM&Z|prwQtzyrhVs(5cXo~9cPGdpf|QxVSkQ|e7*4*n z8_bSnJzyLCBsYz(k3o3a;V|R?W5EXC$Q0C*SGGCoMb4Ej%dc6wQZ+uD|MsYok9a?#nQ?DmwN_91+xJDePkK1^TPn9Y5 z9qWf_7bz)cU6b^>qSF-k<^`cf<~Nho+`N|eThH!h+1(j;S)yH^M%qzs62N=y zrjnDrF0x^63^bN`m8k2M74l2@&yW{LA(^#MsyOl54c;Dr3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Z!7wZR$q!16g_*x5VxK!E>)lAa=^tRk3}nf=di6Gh2|wWQ(hBbWB3(awkfkx36_ R%I|bUw{fHfkQ62d{|9eEVKV># diff --git a/res/aseprite/tilemap.aseprite b/res/aseprite/tilemap.aseprite index dd0ca0cde079d92251764bfe5c44e2d54bf255e2..4eb1a5feb7c5d56c03543fdec32aef545e15616d 100644 GIT binary patch literal 4251 zcmcJRd0bOxy2s;KFIGE3ua2}T2Def-;!;7@b1Tz9p#=vN1d+5Ni=-M60~H9T1B1+n zh_ymSG)AgOQ^b@i#stVIvI;^Fv#Nxqc2giyCo@;UWuj{#JsivbHb0f6V3+sH%^z+1MwJA)e# z1c(602ik#fpc+U9dVyG=6vzY`fk2=RNCUcnD4+<)v1uVmpaMt${(*Dg8Mp;LfkWU8 zxT4xTInM|D^#T$oc9c)QI2(J~dHdxh6v_hUH;>5Q{o3UwC1BoH*C)BsyjcJD&!sy$ zta6Ckxh-(%C5LBkFU;EgvBQB=>(*R$UbA$~rES|9o_y!{@lSjA|JU0Q4WIZee5dD~ zW4rcdEu5dVIbIW2WN>-ZqG+r{Q^KDMtqOcXCJ=V;H94uz*iydf06RFf-(Y+>l|BD} zA00~DJvsBNjLOWwd*%7c;(`YuN;!ChLy?X>^`E~{T zZ}yY>HR~#5#&8>P``s@enTQ{>OnBB& zftjEQ?J6HC(PYbmjbiATn0&ztPtPo}1zgVyo6sK62qo&jw=+k>4Daj%>5+(CZyCxY zLI3xOC~#%q3{5#ot;BLJw)sdDHAQQU)}PhgAv$P+u)~fofc0fpijmThdb-orQeq;* zTz;!mhJjsfHQtjE%OLu!kcXryND-XX6=0qHGK)N|aZe!Q~n-41~SWW@Z_P zK16Q^2W-uU%ITN-me~3vOj0)+=*2%S_b08-MHgnm*V0J2J~Q;6ENV z6_qppmVF4VIn;avNnyp9EK+25;!zH#Sa*-q*Ltl~wwjUyDnh5QKutXr%YRBQKZ~+H zYnP7F+|;^y(+;xB0-^!mHB*CN0SJ8I5)I|(q~gg6D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_dT4 zE{bv$UyueDc)pHHm3z`WNZM}~=u!N`DrvLF310qsm?6A0_IcHAF1bqjldf&0m`p*7 zg~bN^yE|Y+A`?%dNrHW&Sf6^j&F>$Ww26%kGrc6YRw04KA8+&7gheQA@tf3grK?oG z7d;|phe>!H)u0Y{9g7?gVWOyHcD)ZqEdm+FJ*uaj%+RE?oyZ(7!QopQW(1bYyJ(_@ z3=cvjJP)|0^NZ{Sv4-Hf>PS-qcQl}(CtApJKyt#y*4}NS~JTkl7ipx|XsK z6VuvXyhu7-43IMBe%XnN`&+h8`jHz4MFsbwz{mZnft4c+*l6~_8c>=%{Tx;^qri@!mjPbX`I z+j{$=zzy>I(;*;Q{_J`-OvPDyRMI(BUNh+CiE@j7U{iIDqi7lW`y_rR`>ZttEOhqj zM|X}Xoxtm-I)R4Ctzi7eB#UebUt*q{yRjcNuC=KPElMGXJ(C3w4o_#`|40Bf|mex}(T^ r%*YP~jo_;rmm}al?)%z(yw_qf%a+WynBhS+qsZ=@YR2++%76G57P8-x diff --git a/res/tilemap.js b/res/tilemap.js index 11a3012..e9ab177 100644 --- a/res/tilemap.js +++ b/res/tilemap.js @@ -49,6 +49,10 @@ * 44. Stamina filled * 45. Stamina empty * 46. Fireball + * 47. Door_s + * 48. Corner bottom -> left after 16 + * 49. Corner right -> bottom before 12 + * 50. bottom piece underneath 47 ------------------------------------------------------------------- */ module.exports = [ { @@ -286,4 +290,24 @@ module.exports = [ y: 288, walkable: false }, + { + x: 64, + y: 288, + walkable: true + }, + { + x: 96, + y: 288, + walkable: false + }, + { + x: 128, + y: 288, + walkable: false + }, + { + x: 0, + y: 320, + walkable: false + }, ]; \ No newline at end of file diff --git a/res/tilemap.png b/res/tilemap.png index 532aeb8cee0512d4a753b535b35b71ff9120e847..6ceef374c06ca6b45a68e4128691ad0c0c022697 100644 GIT binary patch literal 4639 zcma)AXIN8Nw62u6CRFz&GVQ3;k5-ABy=}jC31u0Uc2Bdc^ zK#(pa0TCDl5+GoVln_F~caF~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NcINr z((`?HR7-xGPY1n}N$q>Pmsth{slNp${;$E9{U>(7dqw*t&wcC20{*$+GSoBG#p>LA F@PB9NNKF6$ -- 2.45.2 From 286d289750a278bb25482237fd0580d5db0770a3 Mon Sep 17 00:00:00 2001 From: stickyPiston Date: Mon, 13 Apr 2020 11:50:25 +0200 Subject: [PATCH 3/3] [levels]: Updated 1-1 --- src/levels/1-1.js | 45 +++++++++++++-------------------------------- 1 file changed, 13 insertions(+), 32 deletions(-) diff --git a/src/levels/1-1.js b/src/levels/1-1.js index d5bc440..f5e49c8 100644 --- a/src/levels/1-1.js +++ b/src/levels/1-1.js @@ -2,54 +2,35 @@ const tileSize = 32; let level = { tiles: [ - 1, 2, 2, 2, 2, 2, 2, 2, 5, 6, - 4, 21, 22, 23, 21, 22, 23, 21, 22, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 4, 17, 17, 17, 17, 17, 17, 17, 17, 7, - 14, 15, 11, 11, 16, 18, 12, 11, 10, 13, - 0, 0, 0, 0, 14, 48, 13, 0, 0, 0 + 1, 2, 2, 5, 6, + 4, 21, 22, 23, 7, + 4, 17, 17, 17, 7, + 4, 17, 17, 17, 7, + 4, 17, 17, 17, 7, + 14, 16, 18, 12, 13, + 0, 14, 50, 13, 0, ], size: { - w: 10 * tileSize, - h: 20 * tileSize + w: 5 * tileSize, + h: 7 * tileSize }, startPos: [ - { x: 48, y: 64 }, - { x: 48, y: 128 } + { x: 56, y: 64 } ], entities: [ - { - type: "Mage", - pos: { x: 1 * tileSize, y: 8 * tileSize } - }, { type: "Chest", - pos: { x: 4 * tileSize, y: 2 * tileSize }, + pos: { x: 2 * tileSize, y: 2 * tileSize }, action: (player) => { player.items.keys.push("1-1_1"); } }, { type: "Portal", - pos: { x: 5 * tileSize, y: 19 * tileSize }, + pos: { x: 2 * tileSize, y: 5 * tileSize }, texture: "Door_s", action: (_player, level) => { - level.switch = { module: "./src/levels/1-2.js", pos: 0 }; + level.switch = { module: __dirname + "/1-2.js", pos: 0 }; }, key: "1-1_1" } -- 2.45.2