From 6b4c089683cdeffcb0d21592af4739e7447ef5c2 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Sat, 12 Nov 2022 10:00:27 +0100 Subject: [PATCH] =?UTF-8?q?A=C3=B1adiendo=20habitaciones?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/enemies/crosshair.ani | 9 ++++ data/enemies/crosshair.png | Bin 0 -> 288 bytes data/enemies/tree_thing.ani | 9 ++++ data/enemies/tree_thing.png | Bin 0 -> 516 bytes data/items/items.png | Bin 1478 -> 1516 bytes data/room/07.room | 56 +++++++++++++++++----- data/room/07.tmx | 32 ++++++------- data/room/16.tmx | 2 +- data/room/26.room | 32 ++++++++----- data/room/28.tmx | 6 +-- data/room/32.room | 8 ++-- data/room/32.tmx | 10 ++-- data/room/34.room | 91 +++++++++++++++++++++++++++++++----- data/room/34.tmx | 14 +++--- data/room/44.room | 45 ++++++++++++------ data/room/44.tmx | 28 +++++------ data/room/60.tmx | 32 ++++++------- source/director.cpp | 30 +++++++++++- source/ending2.cpp | 2 + source/player.cpp | 18 +++---- source/scoreboard.cpp | 6 +-- 21 files changed, 302 insertions(+), 128 deletions(-) create mode 100644 data/enemies/crosshair.ani create mode 100644 data/enemies/crosshair.png create mode 100644 data/enemies/tree_thing.ani create mode 100644 data/enemies/tree_thing.png diff --git a/data/enemies/crosshair.ani b/data/enemies/crosshair.ani new file mode 100644 index 0000000..1facc66 --- /dev/null +++ b/data/enemies/crosshair.ani @@ -0,0 +1,9 @@ +frameWidth=16 +frameHeight=16 + +[animation] +name=default +speed=6 +loop=0 +frames=0,1,2,3 +[/animation] \ No newline at end of file diff --git a/data/enemies/crosshair.png b/data/enemies/crosshair.png new file mode 100644 index 0000000000000000000000000000000000000000..e2425ddc13cc0eed74e01e788dd358c11244d66d GIT binary patch literal 288 zcmV+*0pI?KP)Px#+DSw~R9J=OS3wTLFbE6N{{LlmSR-|*0S6Q{+kB}?aP6jmQfZ5zs(QW`5&0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p{Fa>^komgBLZzALy(MXwpx_N}zu@L0KNZmv`!w=F-T9DYtbaS;=ds*a6y33n6JUB`X2t%Aom?zFq> zzSgay*3>@Aad3%Lwf_z}^E7oA+mZ>a2;2>1MVABpiR9g}pX5|L&k>-ERws)3DG8NL zH-CRt#|Fx(5v9N*LyeyKe69wmN}gp=W+t*qlJoBd`ke|@F?4OZ_C8Y(Za%2lpqx0e z6+yP6>@yGL1NSQ)eCWw8;#4HQ4N4J^BBxHcIsj#JwZdGG&W@^PK6IzUxhUTQJ5`0P z=7_7RsRC0RszXkf1J5=U3l~GeaWwyDf`1~z#8Pl`&8@QxC&N`d`^Qh^Lvc)%$3DvB zR+%4w&iV=lVMR}Uu6%d8iU+URcN~0n0i_}CPV-ayzlGMVSLZ<5Azz6<2<{ zT0Vi>e^gTYoeKQdlK4ts8r0Qmj2rsh*C0-;nz@zE#>U3R#>U3R#>U3R#>U3R#>U3R k#>U3R#>U3R#>OY`2O2_w%A&AR1^@s607*qoM6N<$f>k}nWdHyG diff --git a/data/room/07.room b/data/room/07.room index aeda556..4feb190 100644 --- a/data/room/07.room +++ b/data/room/07.room @@ -1,12 +1,14 @@ -name=SIGMASUA +name=SIGMASUA > TELEGRAM bgColor=black -border=black +border=blue tileMapFile=07.tmx tileSetFile=standard.png roomUp=0 roomDown=0 roomLeft=08.room roomRight=04.room +itemColor1=magenta +itemColor2=red [enemy] tileSetFile=sigmasua.png @@ -17,11 +19,27 @@ x=15 y=7 vx=0.8 vy=0 -x1=9 +x1=7 y1=7 -x2=25 +x2=23 y2=7 -color=bright_red +color=cyan +[/enemy] + +[enemy] +tileSetFile=sigmasua.png +animation=sigmasua.ani +width=16 +height=16 +x=15 +y=4 +vx=-0.5 +vy=0 +x1=7 +y1=4 +x2=23 +y2=4 +color=blue [/enemy] [enemy] @@ -36,10 +54,26 @@ vy=0.4 x1=3 y1=5 x2=3 -y2=12 +y2=13 color=bright_red [/enemy] +[enemy] +tileSetFile=sigmasua.png +animation=sigmasua.ani +width=16 +height=16 +x=27 +y=8 +vx=0 +vy=-0.4 +x1=27 +y1=5 +x2=27 +y2=13 +color=yellow +[/enemy] + [enemy] tileSetFile=sigmasua.png animation=sigmasua.ani @@ -74,15 +108,15 @@ color=bright_green [item] tileSetFile=items.png -tile=9 +tile=67 x=15 -y=5 +y=6 counter=1 [/item] [item] tileSetFile=items.png -tile=9 +tile=67 x=1 y=8 counter=2 @@ -90,7 +124,7 @@ counter=2 [item] tileSetFile=items.png -tile=9 +tile=67 x=30 y=8 counter=3 @@ -98,7 +132,7 @@ counter=3 [item] tileSetFile=items.png -tile=9 +tile=67 x=21 y=13 counter=4 diff --git a/data/room/07.tmx b/data/room/07.tmx index 57023c8..cd6524f 100644 --- a/data/room/07.tmx +++ b/data/room/07.tmx @@ -3,22 +3,22 @@ -74,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,74, -74,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,74, -74,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,74, -74,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,74, -74,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,74, -74,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,74, -74,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,74, -74,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,74, -74,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,74, -74,265,0,0,0,0,0,265,74,74,74,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0,0,0,0,413,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,413,0,0,0,0,0,411,2, +2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,2, +2,0,0,0,0,0,411,411,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,411,411,0,0,0,0,0,0, +2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,413,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,413,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0, +7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7 diff --git a/data/room/16.tmx b/data/room/16.tmx index 39c62b3..2227a5e 100644 --- a/data/room/16.tmx +++ b/data/room/16.tmx @@ -3,7 +3,7 @@ -29,297,297,297,297,297,297,297,297,297,297,297,297,297,0,0,0,0,297,297,297,297,297,297,297,297,297,297,297,297,297,29, +29,297,297,297,297,297,297,297,297,297,297,297,297,297,417,0,0,417,297,297,297,297,297,297,297,297,297,297,297,297,297,29, 29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,29, 29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,29, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,273,273,273,273,0,0,0,0,0,0,0,0,0,0,0,0,0,29, diff --git a/data/room/26.room b/data/room/26.room index c3e49a3..c036056 100644 --- a/data/room/26.room +++ b/data/room/26.room @@ -7,8 +7,8 @@ roomUp=0 roomDown=0 roomLeft=25.room roomRight=27.room -itemColor1=yellow -itemColor2=cyan +itemColor1=magenta +itemColor2=red [enemy] tileSetFile=batman_bell.png @@ -146,32 +146,40 @@ color=yellow [item] tileSetFile=items.png -tile=37 -x=15 +tile=60 +x=26 y=3 counter=1 [/item] [item] tileSetFile=items.png -tile=37 -x=15 -y=7 +tile=60 +x=5 +y=6 counter=2 [/item] [item] tileSetFile=items.png -tile=37 -x=15 -y=10 +tile=60 +x=26 +y=9 counter=3 [/item] [item] tileSetFile=items.png -tile=37 -x=15 +tile=60 +x=4 y=13 counter=4 +[/item] + +[item] +tileSetFile=items.png +tile=60 +x=27 +y=13 +counter=5 [/item] \ No newline at end of file diff --git a/data/room/28.tmx b/data/room/28.tmx index 691bbca..aa4dfd9 100644 --- a/data/room/28.tmx +++ b/data/room/28.tmx @@ -3,10 +3,10 @@ -90,89,94,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,89,94, -89,94,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,89, +90,89,94,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,89,90,41,235,235,0,0,235,235,41,89,90,89, +89,94,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,89,90, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,89, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,235,235,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,235,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,235,0,0,0,0,235,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, diff --git a/data/room/32.room b/data/room/32.room index e173bfd..5c37fa0 100644 --- a/data/room/32.room +++ b/data/room/32.room @@ -9,16 +9,16 @@ roomLeft=0 roomRight=33.room [enemy] -tileSetFile=diskette.png -animation=diskette.ani +tileSetFile=tree_thing.png +animation=tree_thing.ani width=16 height=16 x=23 -y=3 +y=4 vx=0 vy=0.4 x1=23 -y1=3 +y1=4 x2=23 y2=13 color=yellow diff --git a/data/room/32.tmx b/data/room/32.tmx index 6a24a28..64f2446 100644 --- a/data/room/32.tmx +++ b/data/room/32.tmx @@ -3,10 +3,10 @@ +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41,235,235,0,0,235,235,41,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41,0,0,0,0,0,0,41,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41,0,0,0,0,0,0,41,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,142,0,0,0,0,0,0,0,41,0,235,235,0,0,0,143,0,235,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,235,143,0,0,0,235,235,0,41,235,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,142,0,0,0,0,0,0,0,41,0,0,0,0,0,0,143,0,235,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,235,143,0,235,235,235,235,0,41,235,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,235,235,0,143,0,0,0,0,0,0,41,0,0,0, 0,0,0,0,0,142,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41,0,0,0,0,0,235,41,0,142,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41,0,0,0,235,235,0,41,0,0,0, @@ -15,9 +15,9 @@ 0,0,0,71,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41,0,0,0,0,235,235,41,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,235,143,0,0,0,0,0,0,143,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,235,0,143,0,0,0,235,235,0,41,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41,0,0,0,0,0,0,41,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41,0,0,0,0,0,0,356,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,235,0,0,0,0,0,356,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,381,0,41,0,0,0,0,0,0,356,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,381,0,41,0,0,0,0,0,0,41,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,235,235,235,41,235,235,0,0,235,235,41,235,188,188 diff --git a/data/room/34.room b/data/room/34.room index b75f84a..ebf99b3 100644 --- a/data/room/34.room +++ b/data/room/34.room @@ -1,33 +1,100 @@ -name=no 34 +name=ULA HOP! bgColor=black -border=red +border=cyan tileMapFile=34.tmx tileSetFile=standard.png roomUp=0 roomDown=32.room roomLeft=35.room roomRight=0 +itemColor1=green +itemColor2=red [enemy] tileSetFile=diskette.png animation=diskette.ani width=16 height=16 -x=2 -y=2 +x=20 +y=1 vx=0 +vy=0.8 +x1=20 +y1=1 +x2=20 +y2=13 +color=cyan +[/enemy] + +[enemy] +tileSetFile=spark.png +animation=spark.ani +width=8 +height=16 +x=11 +y=4 +vx=0.5 vy=0 -x1=2 -y1=2 -x2=2 -y2=2 -color=magenta +x1=11 +y1=4 +x2=18 +y2=4 +color=cyan +[/enemy] + +[enemy] +tileSetFile=spark.png +animation=spark.ani +width=8 +height=16 +x=1 +y=1 +vx=1 +vy=0 +x1=1 +y1=1 +x2=29 +y2=1 +color=yellow +mirror=true +[/enemy] + +[enemy] +tileSetFile=wave.png +animation=wave.ani +width=8 +height=8 +x=1 +y=6 +vx=0.5 +vy=0 +x1=1 +y1=6 +x2=10 +y2=6 +color=yellow +[/enemy] + +[enemy] +tileSetFile=wave.png +animation=wave.ani +width=8 +height=8 +x=17 +y=8 +vx=0.9 +vy=0 +x1=17 +y1=8 +x2=29 +y2=8 +color=yellow [/enemy] [item] tileSetFile=items.png -tile=1 -x=1 -y=1 +tile=66 +x=29 +y=3 counter=1 [/item] \ No newline at end of file diff --git a/data/room/34.tmx b/data/room/34.tmx index c1a9000..ac8b2fb 100644 --- a/data/room/34.tmx +++ b/data/room/34.tmx @@ -9,14 +9,14 @@ 116,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,140,116, 140,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,116,140, 116,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,140,116, -140,0,0,0,0,0,0,0,0,0,0,114,115,114,115,114,115,114,115,0,0,0,0,0,0,0,0,0,0,0,116,140, +140,0,0,0,0,0,0,0,0,0,0,114,115,114,115,114,115,114,115,0,0,0,0,0,0,0,0,0,0,377,116,140, 116,0,0,0,0,0,0,0,377,0,0,114,115,114,115,114,115,114,115,0,0,0,0,377,377,0,0,0,0,0,140,116, -140,0,0,0,0,0,0,0,0,0,0,0,0,114,115,114,115,0,0,0,0,0,0,0,0,0,0,0,0,0,116,140, -116,0,0,0,377,377,377,0,0,0,0,0,0,115,114,115,114,0,0,377,0,0,0,0,0,0,0,0,0,0,140,116, -140,0,0,0,0,0,0,0,0,0,0,377,0,114,115,114,115,0,0,0,0,0,0,0,0,0,0,0,0,0,116,140, -116,0,0,0,0,0,0,0,0,0,0,0,0,115,114,115,114,0,0,0,0,0,0,0,0,0,114,115,114,115,140,116, -140,0,0,0,0,0,0,0,0,377,0,0,0,114,115,114,115,0,0,0,0,0,0,114,115,114,115,114,115,0,116,140, -0,0,0,0,0,0,0,0,0,0,0,0,377,115,114,115,114,0,0,0,0,0,0,0,0,0,0,0,0,0,140,116, +140,0,0,0,0,0,0,0,0,377,0,0,0,114,115,114,115,0,0,0,0,0,0,0,0,0,0,0,0,0,116,140, +116,0,0,0,377,377,377,0,0,0,0,0,0,115,114,115,114,0,0,0,0,0,377,377,377,377,0,0,0,0,140,116, +140,0,0,0,0,0,0,0,0,0,0,377,0,114,115,114,115,0,0,377,0,0,0,0,0,0,0,0,0,0,116,140, +116,0,0,0,0,0,0,0,0,0,0,0,0,115,114,115,114,0,0,0,0,0,0,0,0,0,431,432,114,115,140,116, +140,0,0,0,0,0,0,0,377,0,0,0,0,114,115,114,115,0,0,0,0,0,0,431,432,431,432,431,432,0,116,140, +0,0,0,0,0,0,0,0,0,0,0,0,377,115,114,115,114,0,0,377,0,0,0,0,0,0,0,0,0,0,140,116, 0,0,0,0,0,0,0,0,0,0,0,0,0,114,115,114,115,0,0,0,0,0,0,0,0,0,0,0,0,0,116,140, 114,115,114,115,114,115,114,115,114,115,114,115,114,115,114,115,114,115,114,115,114,115,114,115,0,0,114,115,114,115,114,115 diff --git a/data/room/44.room b/data/room/44.room index 818f583..4db0b86 100644 --- a/data/room/44.room +++ b/data/room/44.room @@ -1,4 +1,4 @@ -name=THE KITCHEN +name=SANDWITCH AND COUNTER bgColor=black border=cyan tileMapFile=44.tmx @@ -7,27 +7,46 @@ roomUp=43.room roomDown=16.room roomLeft=0 roomRight=0 +itemColor1=white +itemColor2=red [enemy] -tileSetFile=diskette.png -animation=diskette.ani -width=16 +tileSetFile=congo.png +animation=congo.ani +width=8 height=16 x=2 -y=2 -vx=0 +y=4 +vx=0.5 vy=0 x1=2 -y1=2 -x2=2 -y2=2 -color=magenta +y1=4 +x2=14 +y2=4 +color=green +flip=true +[/enemy] + +[enemy] +tileSetFile=crosshair.png +animation=crosshair.ani +width=16 +height=16 +x=23 +y=4 +vx=0 +vy=0.8 +x1=23 +y1=4 +x2=23 +y2=13 +color=yellow [/enemy] [item] tileSetFile=items.png -tile=1 -x=1 -y=1 +tile=8 +x=2 +y=2 counter=1 [/item] \ No newline at end of file diff --git a/data/room/44.tmx b/data/room/44.tmx index 834f028..6de24f6 100644 --- a/data/room/44.tmx +++ b/data/room/44.tmx @@ -4,20 +4,20 @@ 44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,26,0,0,0,0,0,0,26,44,44,44,44,44, -37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37, -37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37, -37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,413,413,413,413,413,413,0,0,0,0,37,37, -37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37, -37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,413,413,0,0,0,0,0,0,0,0,0,0,37,37, -37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37, -37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,413,413,413,413,413,413,0,0,0,0,37,37, -37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37, -37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,413,413,0,0,0,0,0,0,0,0,0,0,37,37, -37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37, -37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,413,413,413,413,413,413,0,0,0,0,37,37, -37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37, -37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,413,413,413,0,0,37,37, -37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37, +37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,345,37,37,0,0,0,0,0,0,0,0,37,37,37,37, +37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,345,37,37,0,0,0,0,0,0,0,0,37,37,37,37, +37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,345,37,37,343,343,343,343,343,343,0,0,37,37,37,37, +37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,345,37,37,0,0,0,0,0,0,0,0,37,37,37,37, +37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,345,37,37,0,0,343,0,0,0,0,0,37,37,37,37, +37,37,465,465,465,465,465,465,465,465,465,465,465,465,465,0,0,345,37,37,0,0,0,0,0,0,343,0,37,37,37,37, +37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,345,37,37,0,0,0,0,0,0,0,343,37,37,37,37, +37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,345,0,0,0,0,343,0,0,0,0,0,37,37,37,37, +37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,345,0,345,0,0,0,0,0,0,0,0,0,0,37,37,37,37, +37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,345,0,0,0,0,0,0,0,0,343,0,37,37,37,37, +37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,345,0,0,0,343,0,0,0,0,0,0,37,37,37,37, +37,37,37,0,0,0,0,0,0,0,0,0,0,0,345,0,0,345,0,0,0,0,0,0,0,0,343,0,37,37,37,37, +37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,345,0,0,0,0,0,0,0,0,0,0,37,37,37,37, +37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,345,0,0,0,0,343,0,0,0,0,0,37,37,37,37, 38,38,38,38,38,38,38,38,38,38,38,38,38,38,417,0,0,417,38,38,38,38,38,38,38,38,38,38,38,38,38,38 diff --git a/data/room/60.tmx b/data/room/60.tmx index 888686c..1df006c 100644 --- a/data/room/60.tmx +++ b/data/room/60.tmx @@ -3,22 +3,22 @@ -25,25,25,25,25,25,25,25,25,25,25,25,25,25,0,0,0,0,25,25,25,25,25,25,25,25,25,25,25,25,25,25, -25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25, -25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25, -25,0,0,0,0,0,0,0,0,0,0,0,0,0,411,411,411,411,0,0,0,0,0,0,0,0,0,0,0,0,0,25, -25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25, -25,0,0,0,0,0,0,0,0,0,0,0,0,411,0,0,0,0,411,0,0,0,0,0,0,0,0,0,0,0,0,25, -25,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,308,0,0,0,0,25, -25,0,0,0,0,0,0,0,0,0,411,411,411,411,0,0,0,0,411,411,411,411,0,0,0,0,0,0,0,0,0,25, -25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25, -25,0,0,0,0,0,0,0,0,0,0,0,0,0,411,0,0,411,0,0,0,0,0,0,0,0,0,0,0,0,0,25, -25,0,0,0,308,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0,308,0,0,0,0,308,0,0,0,25, -25,0,0,0,0,0,0,0,0,0,0,0,0,0,411,411,411,411,0,0,0,0,0,0,0,0,0,0,0,0,0,25, -25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25, -25,0,0,0,0,0,0,0,0,0,0,0,0,411,0,0,0,0,411,0,0,0,0,0,0,0,0,0,0,0,0,25, -25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25, -25,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,0,0,411,411,411,25 +28,28,28,28,28,28,28,28,28,28,28,28,28,28,0,0,0,0,28,28,28,28,28,28,28,28,28,28,28,28,28,28, +28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28, +28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28, +28,0,0,0,0,0,0,0,0,0,0,0,0,0,411,411,411,411,0,0,0,0,0,0,0,0,0,0,0,0,0,28, +28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28, +28,0,0,0,0,0,0,0,0,0,0,0,0,411,0,0,0,0,411,0,0,0,0,0,0,0,0,0,0,0,0,28, +28,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,308,0,0,0,0,28, +28,0,0,0,0,0,0,0,0,0,411,411,411,411,0,0,0,0,411,411,411,411,0,0,0,0,0,0,0,0,0,28, +28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28, +28,0,0,0,0,0,0,0,0,0,0,0,0,0,411,0,0,411,0,0,0,0,0,0,0,0,0,0,0,0,0,28, +28,0,0,0,308,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0,308,0,0,0,0,308,0,0,0,28, +28,0,0,0,0,0,0,0,0,0,0,0,0,0,411,411,411,411,0,0,0,0,0,0,0,0,0,0,0,0,0,28, +28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28, +28,0,0,0,0,0,0,0,0,0,0,0,0,411,0,0,0,0,411,0,0,0,0,0,0,0,0,0,0,0,0,28, +28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28, +28,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411,0,0,411,411,411,28 diff --git a/source/director.cpp b/source/director.cpp index 0edbb01..cf691b7 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -366,6 +366,7 @@ void Director::loadResources(section_t section) textureList.push_back("chip.png"); textureList.push_back("code.png"); textureList.push_back("congo.png"); + textureList.push_back("crosshair.png"); textureList.push_back("demon.png"); textureList.push_back("heavy.png"); textureList.push_back("dimallas.png"); @@ -390,6 +391,7 @@ void Director::loadResources(section_t section) textureList.push_back("sigmasua.png"); textureList.push_back("spider.png"); textureList.push_back("spark.png"); + textureList.push_back("tree_thing.png"); textureList.push_back("tuno.png"); textureList.push_back("tv_panel.png"); textureList.push_back("tv.png"); @@ -426,6 +428,7 @@ void Director::loadResources(section_t section) animationList.push_back("chip.ani"); animationList.push_back("code.ani"); animationList.push_back("congo.ani"); + animationList.push_back("crosshair.ani"); animationList.push_back("demon.ani"); animationList.push_back("heavy.ani"); animationList.push_back("dimallas.ani"); @@ -450,6 +453,7 @@ void Director::loadResources(section_t section) animationList.push_back("sigmasua.ani"); animationList.push_back("spider.ani"); animationList.push_back("spark.ani"); + animationList.push_back("tree_thing.ani"); animationList.push_back("tuno.ani"); animationList.push_back("tv_panel.ani"); animationList.push_back("tv.ani"); @@ -499,7 +503,14 @@ void Director::loadResources(section_t section) std::vector textureList; // Jugador - textureList.push_back("player.png"); + if (options->cheat.altSkin) + { + textureList.push_back("player2.png"); + } + else + { + textureList.push_back("player.png"); + } // Tilesets textureList.push_back("standard.png"); @@ -526,6 +537,7 @@ void Director::loadResources(section_t section) textureList.push_back("chip.png"); textureList.push_back("code.png"); textureList.push_back("congo.png"); + textureList.push_back("crosshair.png"); textureList.push_back("demon.png"); textureList.push_back("heavy.png"); textureList.push_back("dimallas.png"); @@ -550,6 +562,7 @@ void Director::loadResources(section_t section) textureList.push_back("sigmasua.png"); textureList.push_back("spark.png"); textureList.push_back("spider.png"); + textureList.push_back("tree_thing.png"); textureList.push_back("tuno.png"); textureList.push_back("tv_panel.png"); textureList.push_back("tv.png"); @@ -570,7 +583,14 @@ void Director::loadResources(section_t section) std::vector animationList; // Jugador - animationList.push_back("player.ani"); + if (options->cheat.altSkin) + { + animationList.push_back("player2.ani"); + } + else + { + animationList.push_back("player.ani"); + } // Enemigos animationList.push_back("abad.ani"); @@ -593,6 +613,7 @@ void Director::loadResources(section_t section) animationList.push_back("chip.ani"); animationList.push_back("code.ani"); animationList.push_back("congo.ani"); + animationList.push_back("crosshair.ani"); animationList.push_back("demon.ani"); animationList.push_back("heavy.ani"); animationList.push_back("dimallas.ani"); @@ -617,6 +638,7 @@ void Director::loadResources(section_t section) animationList.push_back("sigmasua.ani"); animationList.push_back("spark.ani"); animationList.push_back("spider.ani"); + animationList.push_back("tree_thing.ani"); animationList.push_back("tuno.ani"); animationList.push_back("tv_panel.ani"); animationList.push_back("tv.ani"); @@ -1175,6 +1197,8 @@ bool Director::setFileList() asset->add(prefix + "/data/enemies/code.png", t_bitmap); asset->add(prefix + "/data/enemies/congo.ani", t_data); asset->add(prefix + "/data/enemies/congo.png", t_bitmap); + asset->add(prefix + "/data/enemies/crosshair.ani", t_data); + asset->add(prefix + "/data/enemies/crosshair.png", t_bitmap); asset->add(prefix + "/data/enemies/demon.ani", t_data); asset->add(prefix + "/data/enemies/demon.png", t_bitmap); asset->add(prefix + "/data/enemies/heavy.ani", t_data); @@ -1223,6 +1247,8 @@ bool Director::setFileList() asset->add(prefix + "/data/enemies/spark.png", t_bitmap); asset->add(prefix + "/data/enemies/spider.ani", t_data); asset->add(prefix + "/data/enemies/spider.png", t_bitmap); + asset->add(prefix + "/data/enemies/tree_thing.ani", t_data); + asset->add(prefix + "/data/enemies/tree_thing.png", t_bitmap); asset->add(prefix + "/data/enemies/tuno.ani", t_data); asset->add(prefix + "/data/enemies/tuno.png", t_bitmap); asset->add(prefix + "/data/enemies/tv_panel.ani", t_data); diff --git a/source/ending2.cpp b/source/ending2.cpp index 13001ba..7536079 100644 --- a/source/ending2.cpp +++ b/source/ending2.cpp @@ -332,6 +332,8 @@ void Ending2::iniSpriteList() spriteList.push_back("lamp"); spriteList.push_back("macaronni_ted"); spriteList.push_back("congo"); + spriteList.push_back("crosshair"); + spriteList.push_back("tree_thing"); spriteList.push_back("matatunos"); spriteList.push_back("tuno"); diff --git a/source/player.cpp b/source/player.cpp index f87ea55..3f8ca36 100644 --- a/source/player.cpp +++ b/source/player.cpp @@ -18,15 +18,7 @@ Player::Player(player_t player) sprite = new AnimatedSprite(renderer, resource->getAnimation(player.animation)); // Inicializa variables - color = stringToColor(options->palette, "white"); - if (options->cheat.infiniteLives) - { - color = stringToColor(options->palette, "yellow"); - } - if (options->cheat.invincible) - { - color = stringToColor(options->palette, "cyan"); - } + reLoadPalette(); onBorder = false; border = BORDER_TOP; autoMovement = false; @@ -708,6 +700,14 @@ void Player::reLoadTexture() void Player::reLoadPalette() { color = stringToColor(options->palette, "white"); + if (options->cheat.infiniteLives) + { + color = stringToColor(options->palette, "yellow"); + } + if (options->cheat.invincible) + { + color = stringToColor(options->palette, "cyan"); + } } // Establece el valor de la variable diff --git a/source/scoreboard.cpp b/source/scoreboard.cpp index 18f4b81..043d5b5 100644 --- a/source/scoreboard.cpp +++ b/source/scoreboard.cpp @@ -13,9 +13,9 @@ ScoreBoard::ScoreBoard(SDL_Renderer *renderer, Resource *resource, Asset *asset, this->options = options; // Reserva memoria para los objetos - // playerTexture = resource->getTexture("player.png"); itemTexture = resource->getTexture("items.png"); - sprite = new AnimatedSprite(renderer, resource->getAnimation("player.ani")); + const std::string playerANI = options->cheat.altSkin ? "player2.ani" : "player.ani"; + sprite = new AnimatedSprite(renderer, resource->getAnimation(playerANI)); sprite->setCurrentAnimation("walk_menu"); text = new Text(resource->getOffset("smb2.txt"), resource->getTexture("smb2.png"), renderer); @@ -161,7 +161,7 @@ void ScoreBoard::updateItemsColor() return; } - if (counter % 20 <10) + if (counter % 20 < 10) { itemsColor = stringToColor(options->palette, "white"); }