Creando contenido

This commit is contained in:
2022-10-19 20:48:39 +02:00
parent efeed945e7
commit 383d8423f1
5 changed files with 38 additions and 25 deletions

View File

@@ -0,0 +1,9 @@
frameWidth=24
frameHeight=32
[animation]
name=default
speed=6
loop=0
frames=0,1,2,3,4,5,6,7,6,5,4,3,2,1
[/animation]

BIN
data/enemies/breakout.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

View File

@@ -1,33 +1,35 @@
name=no 52 name=breakout.lua
bgColor=black bgColor=black
border=red border=black
tilemap=52.tmx tilemap=52.tmx
tileset=standard.png tileset=standard.png
roomUp=0 roomUp=0
roomDown=0 roomDown=0
roomLeft=0 roomLeft=0
roomRight=51.room roomRight=51.room
itemColor1=bright_white
itemColor2=black
[enemy] [enemy]
tileset=diskette.png tileset=breakout.png
animation=diskette.ani animation=breakout.ani
width=16 width=24
height=16 height=32
x=2 x=1
y=2 y=6
vx=0 vx=2.2
vy=0 vy=0
x1=2 x1=1
y1=2 y1=6
x2=2 x2=22
y2=2 y2=6
color=magenta color=white
[/enemy] [/enemy]
[item] [item]
tileset=items.png tileset=items.png
tile=1 tile=39
x=1 x=1
y=1 y=13
counter=1 counter=1
[/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">
184,182,182,182,182,182,182,182,182,182,182,182,187,187,187,187,187,187,187,187,187,187,187,187,187,187,185,185,185,185,185,185, 184,182,182,182,182,182,182,182,291,291,182,182,187,187,187,187,187,187,310,187,187,187,187,187,187,187,185,185,185,185,297,297,
184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,289,
184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,181, 184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,181,
184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,181, 184,0,181,181,182,182,184,184,185,185,183,183,186,186,181,181,182,182,184,184,185,185,183,183,0,0,0,0,0,0,0,181,
184,0,0,0,181,181,182,182,184,184,185,185,183,183,186,186,181,181,182,182,184,184,0,0,0,0,0,0,0,0,0,181, 184,0,186,186,181,181,182,182,184,184,185,185,183,183,186,186,181,181,182,182,184,184,185,185,0,0,0,0,0,0,0,181,
184,0,0,0,186,186,181,181,182,182,184,184,185,185,183,183,186,186,181,181,182,182,0,0,0,0,0,0,0,0,0,181, 184,0,183,183,186,186,181,181,182,182,184,184,185,185,183,183,186,186,181,181,182,182,184,184,0,0,0,0,0,0,0,181,
184,0,0,0,183,183,186,186,181,181,182,182,184,184,185,185,183,183,186,186,181,181,0,0,0,0,0,0,0,0,0,181,
184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,181, 184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,181,
184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,181, 184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,181,
184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,181, 184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,181,
186,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,181, 186,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,181,
186,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 186,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
186,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 186,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
186,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 186,0,184,184,184,185,0,0,184,0,0,0,184,0,0,0,0,0,185,0,0,183,293,293,183,0,0,0,0,0,0,0,
186,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 186,0,184,187,187,187,0,0,186,184,0,183,183,183,0,0,185,185,297,185,0,183,183,183,183,0,0,0,0,0,0,0,
186,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 186,182,182,291,182,182,182,182,184,184,184,184,295,184,184,184,184,186,186,299,186,186,186,186,186,186,0,0,0,0,0,0,
183,183,183,183,183,183,181,181,181,181,181,181,181,181,181,181,181,181,181,181,181,181,185,185,185,185,185,185,185,185,185,185 183,183,183,183,183,293,289,181,181,181,181,181,181,181,181,181,181,181,181,181,181,181,185,185,185,185,185,185,185,185,185,185
</data> </data>
</layer> </layer>
</map> </map>

View File

@@ -543,6 +543,8 @@ bool Director::setFileList()
asset->add("/../data/enemies/sam.ani", t_data); asset->add("/../data/enemies/sam.ani", t_data);
asset->add("/../data/enemies/amstrad_character_set.png", t_bitmap); asset->add("/../data/enemies/amstrad_character_set.png", t_bitmap);
asset->add("/../data/enemies/amstrad_character_set.ani", t_data); asset->add("/../data/enemies/amstrad_character_set.ani", t_data);
asset->add("/../data/enemies/breakout.png", t_bitmap);
asset->add("/../data/enemies/breakout.ani", t_data);
asset->add("/../data/player/player.png", t_bitmap); asset->add("/../data/player/player.png", t_bitmap);
asset->add("/../data/player/player.ani", t_data); asset->add("/../data/player/player.ani", t_data);