Añadidas las pantallas de P.A.C.O.

This commit is contained in:
2022-10-22 09:56:34 +02:00
parent 053992de98
commit 39c7fbc3b9
6 changed files with 150 additions and 57 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 960 B

After

Width:  |  Height:  |  Size: 1017 B

View File

@@ -1,33 +1,60 @@
name=no 42 name=P.A.C.O. on the go
bgColor=black bgColor=black
border=red border=black
tilemap=42.tmx tilemap=42.tmx
tileset=standard.png tileset=standard.png
roomUp=0 roomUp=0
roomDown=43.room roomDown=43.room
roomLeft=53.room roomLeft=53.room
roomRight=41.room roomRight=41.room
itemColor1=magenta
itemColor2=red
[enemy] [enemy]
tileset=diskette.png tileset=paco.png
animation=diskette.ani animation=paco.ani
width=16 width=16
height=16 height=16
x=2 x=10
y=2 y=2
vx=0 vx=0
vy=0 vy=0.5
x1=2 x1=10
y1=2 y1=2
x2=2 x2=10
y2=2 y2=11
color=magenta color=green
[/enemy]
[enemy]
tileset=abad.png
animation=abad.ani
width=8
height=16
x=15
y=13
vx=0.8
vy=0
x1=4
y1=13
x2=19
y2=13
color=bright_cyan
flip=true
[/enemy] [/enemy]
[item] [item]
tileset=items.png tileset=items.png
tile=1 tile=41
x=1 x=2
y=1 y=9
counter=1 counter=1
[/item]
[item]
tileset=items.png
tile=41
x=29
y=3
counter=2
[/item] [/item]

View File

@@ -3,22 +3,22 @@
<tileset firstgid="1" source="standard.tsx"/> <tileset firstgid="1" source="standard.tsx"/>
<layer id="1" name="Capa de patrones 1" width="32" height="16"> <layer id="1" name="Capa de patrones 1" width="32" height="16">
<data encoding="csv"> <data encoding="csv">
25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25, 36,36,36,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 36,36,0,0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0,0,0,0, 36,0,0,0,305,0,0,0,0,0,0,0,0,0,0,0,0,421,0,0,0,0,0,0,0,0,0,0,0,0,0,62,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 36,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 36,0,415,421,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,415,415,415,421,415,415,0,0,0,0,0,62,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 36,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,524,415,421,548,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,524,0,0,0,0,548,0,0,0,0,0,0,
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 415,415,415,415,415,415,415,421,415,415,415,415,415,415,415,415,415,415,421,421,0,0,421,421,0,0,415,415,415,415,415,415
</data> </data>
</layer> </layer>
</map> </map>

View File

@@ -1,33 +1,99 @@
name=no 53 name=P.A.C.O workshop
bgColor=black bgColor=black
border=red border=yellow
tilemap=53.tmx tilemap=53.tmx
tileset=standard.png tileset=standard.png
roomUp=0 roomUp=0
roomDown=51.room roomDown=51.room
roomLeft=0 roomLeft=0
roomRight=42.room roomRight=42.room
itemColor1=magenta
itemColor2=red
[enemy] [enemy]
tileset=diskette.png tileset=paco.png
animation=diskette.ani animation=paco.ani
width=16 width=16
height=16 height=16
x=2 x=6
y=6
vx=0.3
vy=0
x1=6
y1=6
x2=13
y2=6
color=yellow
[/enemy]
[enemy]
tileset=paco.png
animation=paco.ani
width=16
height=16
x=16
y=2
vx=0
vy=0.8
x1=16
y1=2
x2=16
y2=13
color=bright_red
[/enemy]
[enemy]
tileset=wave.png
animation=wave.ani
width=8
height=8
x=1
y=10
vx=0.4
vy=0
x1=1
y1=10
x2=14
y2=10
color=bright_yellow
[/enemy]
[enemy]
tileset=lamp.png
animation=lamp.ani
width=16
height=16
x=22
y=2 y=2
vx=0 vx=0
vy=0 vy=0
x1=2 x1=22
y1=2 y1=2
x2=2 x2=22
y2=2 y2=2
color=magenta color=bright_yellow
[/enemy] [/enemy]
[item] [item]
tileset=items.png tileset=items.png
tile=1 tile=40
x=1 x=1
y=1 y=6
counter=1 counter=1
[/item] [/item]
[item]
tileset=items.png
tile=40
x=1
y=9
counter=2
[/item]
[item]
tileset=items.png
tile=40
x=30
y=5
counter=3
[/item]

View File

@@ -3,22 +3,22 @@
<tileset firstgid="1" source="standard.tsx"/> <tileset firstgid="1" source="standard.tsx"/>
<layer id="1" name="Capa de patrones 1" width="32" height="16"> <layer id="1" name="Capa de patrones 1" width="32" height="16">
<data encoding="csv"> <data encoding="csv">
25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25, 36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,
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,0, 36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,
25,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 36,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,
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,0, 36,411,411,411,411,411,411,363,411,411,411,411,411,411,411,0,0,0,0,453,453,453,453,453,453,453,453,0,0,0,0,36,
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,0, 36,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,
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,0, 36,0,0,0,0,0,0,315,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 135,0,0,0,0,0,0,315,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,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,0,0,25,25,25,25,25,25 36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,0,0,36,36,36,36,36,36
</data> </data>
</layer> </layer>
</map> </map>

View File

@@ -17,7 +17,7 @@ Game::Game(SDL_Renderer *renderer, Screen *screen, Asset *asset, Input *input, D
// **** // ****
// this->debug->setEnabled(true); // this->debug->setEnabled(true);
currentRoom = "01.room"; currentRoom = "53.room";
const int x = 30; const int x = 30;
const int y = 13; const int y = 13;
spawnPoint = {x * 8, y * 8, 0, 0, 0, s_standing, SDL_FLIP_HORIZONTAL}; spawnPoint = {x * 8, y * 8, 0, 0, 0, s_standing, SDL_FLIP_HORIZONTAL};