This commit is contained in:
2022-10-22 12:54:07 +02:00
29 changed files with 395 additions and 153 deletions

3
.gitignore vendored
View File

@@ -1,7 +1,6 @@
.vscode
bin
data/config.txt
data/score.bin
*config.txt
dll
docs
icon

View File

@@ -4,12 +4,15 @@ source = source/*.cpp source/common/*.cpp
windows:
@echo off
if not exist bin\ (mkdir bin)
if not exist data\config (mkdir data\config)
g++ $(source) -std=c++11 -Wall -O2 -lmingw32 -lSDL2main -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -static-libstdc++ -Wl,-subsystem,windows -o bin/$(executable).exe
strip -s -R .comment -R .gnu.version bin/$(executable).exe --strip-unneeded
macos:
mkdir -p bin
mkdir -p data/config
g++ $(source) -std=c++11 -Wall -O2 -lSDL2 -ffunction-sections -fdata-sections -o bin/$(executable)_macos
linux:
mkdir -p bin
mkdir -p data/config
g++ $(source) -std=c++11 -Wall -Os -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -o bin/$(executable)_linux
strip -s -R .comment -R .gnu.version bin/$(executable)_linux --strip-unneeded

View File

@@ -1,8 +0,0 @@
fullScreenMode=0
windowSize=3
filter=FILTER_NEAREST
vSync=true
integerScale=true
keepAspect=true
borderEnabled=true
borderSize=0.100000

9
data/enemies/bry.ani Normal file
View File

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

BIN
data/enemies/bry.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

9
data/enemies/lamp.ani Normal file
View File

@@ -0,0 +1,9 @@
frameWidth=16
frameHeight=16
[animation]
name=default
speed=4
loop=0
frames=0,1
[/animation]

BIN
data/enemies/lamp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

9
data/enemies/tv.ani Normal file
View File

@@ -0,0 +1,9 @@
frameWidth=16
frameHeight=16
[animation]
name=default
speed=6
loop=0
frames=0,1,2,3
[/animation]

BIN
data/enemies/tv.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

View File

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

BIN
data/enemies/tv_panel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 960 B

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -118,4 +118,84 @@ y1=9
x2=5
y2=9
color=white
[/enemy]
[/enemy]
[enemy]
tileset=lamp.png
animation=lamp.ani
width=16
height=16
x=23
y=5
vx=0
vy=0
x1=23
y1=5
x2=23
y2=5
color=white
[/enemy]
[enemy]
tileset=bry.png
animation=bry.ani
width=8
height=16
x=17
y=13
vx=0
vy=0
x1=17
y1=13
x2=17
y2=13
color=white
[/enemy]
#[enemy]
#tileset=tv_panel.png
#animation=tv_panel.ani
#width=24
#height=16
#x=18
#y=9
#vx=0
#vy=0
#x1=18
#y1=9
#x2=18
#y2=9
#color=white
#[/enemy]
#
#[enemy]
#tileset=tv_panel.png
#animation=tv_panel.ani
#width=24
#height=16
#x=22
#y=9
#vx=0
#vy=0
#x1=22
#y1=9
#x2=22
#y2=9
#color=white
#[/enemy]
#
#[enemy]
#tileset=tv_panel.png
#animation=tv_panel.ani
#width=24
#height=16
#x=26
#y=9
#vx=0
#vy=0
#x1=26
#y1=9
#x2=26
#y2=9
#color=white
#[/enemy]

View File

@@ -3,21 +3,21 @@
<tileset firstgid="1" source="standard.tsx"/>
<layer id="1" name="Capa de patrones 1" width="32" height="16">
<data encoding="csv">
34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,
34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,
34,0,0,151,151,0,151,151,151,0,151,0,151,0,0,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,
34,0,0,0,151,0,151,0,151,0,151,0,151,0,0,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,
34,0,151,0,151,0,151,151,151,0,151,0,151,0,0,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,
34,0,151,151,151,0,151,0,151,0,151,0,151,151,151,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,
34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,
188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,
188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,
188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,
43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,
43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,
43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,
43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,
34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,
34,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,
34,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,
34,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,
34,34,34,34,34,34,34,34,34,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,
34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,
34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,135,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,135,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34
</data>
</layer>

View File

@@ -12,25 +12,25 @@ itemColor1=bright_cyan
itemColor2=yellow
[enemy]
tileset=bin.png
animation=bin.ani
tileset=code.png
animation=code.ani
width=16
height=8
height=16
x=3
y=3
y=2
vx=0.4
vy=0
x1=3
y1=3
y1=2
x2=27
y2=3
color=white
y2=2
color=yellow
[/enemy]
[item]
tileset=items.png
tile=8
x=18
tile=42
x=21
y=13
counter=1
[/item]

View File

@@ -7,17 +7,17 @@
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,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,
25,25,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,0,0,505,253,253,253,253,253,253,25,25,
25,25,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,0,0,505,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,505,0,25,0,0,0,0,0,25,25,
25,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,505,0,0,25,0,0,0,0,0,25,25,
25,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,505,0,0,0,25,0,0,0,0,0,25,25,
25,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,505,0,0,0,0,25,0,0,0,0,0,25,25,
25,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,505,0,0,0,0,0,25,0,0,0,0,0,25,25,
25,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,505,0,0,0,0,0,0,25,0,0,0,0,0,25,25,
25,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,505,0,0,0,0,0,0,0,25,0,0,0,0,0,25,25,
25,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,505,0,0,0,0,0,0,0,25,25,25,0,0,0,25,25,
25,25,0,0,0,0,0,0,0,253,253,253,253,253,253,253,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,0,0,0,0,0,441,441,441,441,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,135,25,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,441,441,441,441,0,0,0,0,0,0,0,0,135,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,25
</data>
</layer>

View File

@@ -1,33 +1,60 @@
name=no 42
name=P.A.C.O. on the go
bgColor=black
border=red
border=black
tilemap=42.tmx
tileset=standard.png
roomUp=0
roomDown=43.room
roomLeft=53.room
roomRight=41.room
itemColor1=magenta
itemColor2=red
[enemy]
tileset=diskette.png
animation=diskette.ani
tileset=paco.png
animation=paco.ani
width=16
height=16
x=2
x=10
y=2
vx=0
vy=0
x1=2
vy=0.5
x1=10
y1=2
x2=2
y2=2
color=magenta
x2=10
y2=11
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]
[item]
tileset=items.png
tile=1
x=1
y=1
tile=41
x=2
y=9
counter=1
[/item]
[item]
tileset=items.png
tile=41
x=29
y=3
counter=2
[/item]

View File

@@ -3,22 +3,22 @@
<tileset firstgid="1" source="standard.tsx"/>
<layer id="1" name="Capa de patrones 1" width="32" height="16">
<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,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,415,415,421,415,0,0,0,0,0,0,0,0,0,0,62,
36,0,0,0,0,0,0,0,305,0,0,0,0,305,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,
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,
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,
36,0,415,421,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,415,415,0,0,421,415,0,0,0,0,0,62,
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,507,415,421,531,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,507,0,0,0,0,531,0,0,0,0,0,0,
44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,26,0,0,423,385,0,0,26,44,44,44,44,44
</data>
</layer>
</map>

View File

@@ -1,33 +1,51 @@
name=no 43
name=the tube
bgColor=black
border=red
border=blue
tilemap=43.tmx
tileset=standard.png
roomUp=42.room
roomDown=44.room
roomLeft=0
roomRight=0
itemColor1=yellow
itemColor2=red
[enemy]
tileset=diskette.png
animation=diskette.ani
width=16
height=16
x=2
y=2
vx=0
tileset=spider.png
animation=spider.ani
width=8
height=8
x=20
y=5
vx=0.3
vy=0
x1=2
y1=2
x2=2
y2=2
color=magenta
x1=20
y1=5
x2=23
y2=5
color=cyan
[/enemy]
[enemy]
tileset=spider.png
animation=spider.ani
width=8
height=8
x=22
y=11
vx=0.3
vy=0
x1=20
y1=11
x2=23
y2=11
color=green
[/enemy]
[item]
tileset=items.png
tile=1
x=1
y=1
tile=8
x=21
y=10
counter=1
[/item]

View File

@@ -3,22 +3,22 @@
<tileset firstgid="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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
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,
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,
44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,26,0,0,0,0,424,385,26,44,44,44,44,44,
44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,26,385,385,423,423,0,0,26,44,44,44,44,44,
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,
44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,26,0,0,0,0,425,385,26,44,44,44,44,44,
44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,26,385,424,385,385,0,0,26,44,44,44,44,44,
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,
44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,26,0,0,0,0,385,385,26,44,44,44,44,44,
44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,26,385,385,424,385,0,0,26,44,44,44,44,44,
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,
44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,26,0,0,0,0,423,385,26,44,44,44,44,44,
44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,26,385,423,385,385,0,0,26,44,44,44,44,44,
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,
44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,26,0,0,0,0,385,385,26,44,44,44,44,44,
44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,26,423,385,423,385,0,0,26,44,44,44,44,44
</data>
</layer>
</map>

View File

@@ -1,6 +1,6 @@
name=no 44
name=the kitchen
bgColor=black
border=red
border=cyan
tilemap=44.tmx
tileset=standard.png
roomUp=43.room

View File

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

View File

@@ -1,33 +1,99 @@
name=no 53
name=P.A.C.O workshop
bgColor=black
border=red
border=yellow
tilemap=53.tmx
tileset=standard.png
roomUp=0
roomDown=51.room
roomLeft=0
roomRight=42.room
itemColor1=magenta
itemColor2=red
[enemy]
tileset=diskette.png
animation=diskette.ani
tileset=paco.png
animation=paco.ani
width=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
vx=0
vy=0
x1=2
x1=22
y1=2
x2=2
x2=22
y2=2
color=magenta
color=bright_yellow
[/enemy]
[item]
tileset=items.png
tile=1
tile=40
x=1
y=1
y=6
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"/>
<layer id="1" name="Capa de patrones 1" width="32" height="16">
<data encoding="csv">
25,25,25,25,25,25,25,25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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,
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,
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,36,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,0,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,0,0,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,0,0,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,0,0,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,0,0,36,
36,411,0,0,0,0,411,411,411,411,411,411,411,411,411,0,0,0,0,453,453,453,453,453,453,453,453,0,0,0,0,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,0,387,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,0,0,36,
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,
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,
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,
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,
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>
</layer>
</map>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

View File

@@ -5,12 +5,12 @@ Demo::Demo(SDL_Renderer *renderer, Screen *screen, Asset *asset, Debug *debug)
{
// Inicia algunas variables
board.iniClock = SDL_GetTicks();
rooms.push_back("04.room");
rooms.push_back("03.room");
rooms.push_back("02.room");
rooms.push_back("01.room");
rooms.push_back("05.room");
rooms.push_back("06.room");
rooms.push_back("54.room");
rooms.push_back("16.room");
rooms.push_back("45.room");
rooms.push_back("60.room");
rooms.push_back("58.room");
roomIndex = 0;
currentRoom = rooms.at(roomIndex);
@@ -157,7 +157,7 @@ void Demo::render()
scoreboard->render();
screen->renderFX();
text->write(0, 0, std::to_string(counter));
//text->write(0, 0, std::to_string(counter));
// Actualiza la pantalla
screen->blit();

View File

@@ -9,7 +9,7 @@ Director::Director(std::string path)
section.name = SECTION_PROG_LOGO;
section.subsection = SUBSECTION_LOGO_TO_INTRO;
section.name = SECTION_PROG_CREDITS;
section.name = SECTION_PROG_GAME;
// Crea el objeto que controla los ficheros de recursos
asset = new Asset(path.substr(0, path.find_last_of("\\/")));
@@ -353,14 +353,17 @@ bool Director::initSDL()
// Crea el indice de ficheros
bool Director::setFileList()
{
// Texto
asset->add("/../data/font/smb2.png", t_font);
asset->add("/../data/font/smb2.txt", t_font);
asset->add("/../data/font/debug.png", t_font);
asset->add("/../data/font/debug.txt", t_font);
// Configuración
asset->add("/../data/input/gamecontrollerdb.txt", t_data);
asset->add("/../data/config/config.txt", t_data, false);
// Habitaciones
asset->add("/../data/room/01.room", t_room);
asset->add("/../data/room/02.room", t_room);
asset->add("/../data/room/03.room", t_room);
@@ -422,6 +425,7 @@ bool Director::setFileList()
asset->add("/../data/room/59.room", t_room);
asset->add("/../data/room/60.room", t_room);
// Tilemaps
asset->add("/../data/room/01.tmx", t_room);
asset->add("/../data/room/02.tmx", t_room);
asset->add("/../data/room/03.tmx", t_room);
@@ -483,8 +487,11 @@ bool Director::setFileList()
asset->add("/../data/room/59.tmx", t_room);
asset->add("/../data/room/60.tmx", t_room);
// Tilesets
asset->add("/../data/tilesets/standard.png", t_bitmap);
asset->add("/../data/tilesets/standard_zxarne.png", t_bitmap);
// Enemigos
asset->add("/../data/enemies/paco.png", t_bitmap);
asset->add("/../data/enemies/paco.ani", t_data);
asset->add("/../data/enemies/chip.png", t_bitmap);
@@ -545,18 +552,30 @@ bool Director::setFileList()
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/enemies/lamp.png", t_bitmap);
asset->add("/../data/enemies/lamp.ani", t_data);
asset->add("/../data/enemies/bry.png", t_bitmap);
asset->add("/../data/enemies/bry.ani", t_data);
asset->add("/../data/enemies/tv.png", t_bitmap);
asset->add("/../data/enemies/tv.ani", t_data);
asset->add("/../data/enemies/tv_panel.png", t_bitmap);
asset->add("/../data/enemies/tv_panel.ani", t_data);
// Jugador
asset->add("/../data/player/player.png", t_bitmap);
asset->add("/../data/player/player.ani", t_data);
// Items
asset->add("/../data/items/items.png", t_bitmap);
// Musicas
asset->add("/../data/music/title.ogg", t_music);
asset->add("/../data/music/game.ogg", t_music);
asset->add("/../data/music/loading_sound1.ogg", t_music);
asset->add("/../data/music/loading_sound2.ogg", t_music);
asset->add("/../data/music/loading_sound3.ogg", t_music);
// Efectos de sonido
asset->add("/../data/sound/item.wav", t_sound);
asset->add("/../data/sound/death.wav", t_sound);
asset->add("/../data/sound/jump1.wav", t_sound);
@@ -584,10 +603,12 @@ bool Director::setFileList()
asset->add("/../data/sound/jump23.wav", t_sound);
asset->add("/../data/sound/jump24.wav", t_sound);
// Logo
asset->add("/../data/logo/jailgames.png", t_bitmap);
asset->add("/../data/logo/since_1998.png", t_bitmap);
asset->add("/../data/logo/seagull.png", t_bitmap);
// Intro
asset->add("/../data/title/loading_screen1.png", t_bitmap);
asset->add("/../data/title/loading_screen2.png", t_bitmap);

View File

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

View File

@@ -41,8 +41,8 @@ x (A) La pantalla de titulo no tiene menu, solo un PRESS ENTER TO PLAY
(A) Crear la tipografia de corazon
(A) Los Creditos se han de ir escribiendo letra a letra
x (A) Arreglar la pantalla de carga para que cargue bit a bit
(A) La musica del titulo ha de seguir sonando en los creditos y el ¿logo?
(A) Ha de haber un modo demo en el que se muestran las habitaciones predefinidas
x (A) La musica del titulo ha de seguir sonando en los creditos y el ¿logo?
x (A) Ha de haber un modo demo en el que se muestran las habitaciones predefinidas
(A) Menu de pausa/salir
x (A) Poner el mapa/jugador en pausa
x (A) El color del borde se pierde al morir por la pantalla negra
@@ -66,12 +66,12 @@ x matatunos
x sigmasua
calculin doom
leaper reaper
mini ascii
x mini ascii
mappy
paco
x paco
x chirping
abad y batman
jail
x jail
counter strike
starcraft
diablo