Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b31a578731 | |||
| 6c30e6aeec | |||
| dbac3eb3ee | |||
| 3946ea749b | |||
| 0ab4ca06e3 | |||
| a8892f4f8c | |||
| 4d1739d8e1 | |||
| 59ec0542a1 | |||
| 2634cc1b2c | |||
| 3132dc0157 | |||
| 9c10b6a372 | |||
| 31f63516ca | |||
| b5f4425672 |
2
Makefile
2
Makefile
@@ -3,7 +3,7 @@ source = source/*.cpp
|
|||||||
|
|
||||||
windows:
|
windows:
|
||||||
@echo off
|
@echo off
|
||||||
g++ $(source) icon.res -lmingw32 -lSDL2main -lSDL2 -mwindows -o "$(executable).exe"
|
g++ $(source) bin/icon.res -lmingw32 -lSDL2main -lSDL2 -mwindows -o "$(executable).exe"
|
||||||
strip -s -R .comment -R .gnu.version --strip-unneeded "$(executable).exe"
|
strip -s -R .comment -R .gnu.version --strip-unneeded "$(executable).exe"
|
||||||
|
|
||||||
windows_debug:
|
windows_debug:
|
||||||
|
|||||||
BIN
bin/icon.icns
Normal file
BIN
bin/icon.icns
Normal file
Binary file not shown.
BIN
bin/icon.ico
Normal file
BIN
bin/icon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
BIN
bin/icon.png
Normal file
BIN
bin/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
1
bin/icon.rc
Normal file
1
bin/icon.rc
Normal file
@@ -0,0 +1 @@
|
|||||||
|
id ICON "icon.ico"
|
||||||
BIN
bin/icon.res
Normal file
BIN
bin/icon.res
Normal file
Binary file not shown.
@@ -1,57 +0,0 @@
|
|||||||
width: 2
|
|
||||||
height: 1
|
|
||||||
door-height-xp: 1
|
|
||||||
door-height-xn: 1
|
|
||||||
color: CYAN
|
|
||||||
floor-texture: 0
|
|
||||||
wall-texture: 2
|
|
||||||
door-texture: 0
|
|
||||||
under-door-texture: 0
|
|
||||||
exit-xp: 5
|
|
||||||
exit-xn: 1
|
|
||||||
exit-zn: 2
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: PLATFORM02
|
|
||||||
bmp: test.gif
|
|
||||||
bmp-rect: 64 0 32 24
|
|
||||||
bmp-offset: 0 24
|
|
||||||
pos: 16 20 0
|
|
||||||
size: 8 8 4
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: PLATFORM00
|
|
||||||
bmp: test.gif
|
|
||||||
bmp-rect: 64 0 32 24
|
|
||||||
bmp-offset: 0 24
|
|
||||||
pos: 8 28 0
|
|
||||||
size: 8 8 4
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: PLATFORM01
|
|
||||||
bmp: test.gif
|
|
||||||
bmp-rect: 64 0 32 24
|
|
||||||
bmp-offset: 0 24
|
|
||||||
pos: 16 28 0
|
|
||||||
size: 8 8 4
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: PLATFORM04
|
|
||||||
bmp: test.gif
|
|
||||||
bmp-rect: 64 0 32 24
|
|
||||||
bmp-offset: 0 24
|
|
||||||
pos: 40 28 0
|
|
||||||
size: 8 8 4
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: PLATFORM03
|
|
||||||
bmp: test.gif
|
|
||||||
bmp-rect: 64 0 32 24
|
|
||||||
bmp-offset: 0 24
|
|
||||||
pos: 48 28 0
|
|
||||||
size: 8 8 4
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
width: 2
|
|
||||||
height: 2
|
|
||||||
door-height-xp: 0
|
|
||||||
door-height-yp: 0
|
|
||||||
color: CYAN
|
|
||||||
floor-texture: 9
|
|
||||||
wall-texture: 3
|
|
||||||
door-texture: 1
|
|
||||||
under-door-texture: 0
|
|
||||||
exit-xp: 0
|
|
||||||
exit-yp: 3
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: ARMARI01
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 32 24 32
|
|
||||||
bmp-offset: -8 36
|
|
||||||
pos: 8 8 0
|
|
||||||
size: 8 4 5
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: TAULETA
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 0 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 24 8 0
|
|
||||||
size: 8 8 5
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: S-SHOES
|
|
||||||
bmp: objectes.gif
|
|
||||||
bmp-rect: 162 0 28 22
|
|
||||||
bmp-offset: -3 24
|
|
||||||
pos: 48 8 0
|
|
||||||
size: 4 4 4
|
|
||||||
anim-cycle: SEQ
|
|
||||||
anim-wait: 2
|
|
||||||
flags: SPECIAL
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: TAULA01
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 128 32 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 8 24 0
|
|
||||||
size: 8 8 8
|
|
||||||
orient: YP
|
|
||||||
flags: ORIENTABLE
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: TAULA02
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 160 32 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 8 32 0
|
|
||||||
size: 8 8 8
|
|
||||||
orient: YP
|
|
||||||
flags: ORIENTABLE
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: ARMARI02
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 96 32 24 32
|
|
||||||
bmp-offset: -8 36
|
|
||||||
pos: 8 8 8
|
|
||||||
size: 8 4 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: TV
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 32 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 24 7 5
|
|
||||||
size: 8 5 8
|
|
||||||
orient: XP
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: NES
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 96 0 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 24 16 0
|
|
||||||
size: 8 8 6
|
|
||||||
flags: PICKABLE PUSHABLE GRAVITY
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: ROOMBA
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 160 0 32 32
|
|
||||||
bmp-offset: 0 34
|
|
||||||
pos: 40 32 0
|
|
||||||
size: 8 8 4
|
|
||||||
orient: YP
|
|
||||||
flags: MOVING DEADLY
|
|
||||||
movement: Y
|
|
||||||
}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
width: 2
|
|
||||||
height: 1
|
|
||||||
door-height-xn: 4
|
|
||||||
door-height-yp: 0
|
|
||||||
color: PURPLE
|
|
||||||
floor-texture: 1
|
|
||||||
wall-texture: 2
|
|
||||||
door-texture: 0
|
|
||||||
under-door-texture: 2
|
|
||||||
exit-xn: 3
|
|
||||||
exit-yp: 4
|
|
||||||
exit-zp: 0
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: G-FILTER
|
|
||||||
bmp: objectes.gif
|
|
||||||
bmp-rect: 0 0 24 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 8 16 0
|
|
||||||
size: 8 8 8
|
|
||||||
anim-wait: 4
|
|
||||||
flags: PUSHABLE ANIMATED GRAVITY SPECIAL
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
@@ -1,67 +0,0 @@
|
|||||||
width: 1
|
|
||||||
height: 2
|
|
||||||
door-height-xp: 0
|
|
||||||
door-height-yn: 4
|
|
||||||
color: PURPLE
|
|
||||||
floor-texture: 0
|
|
||||||
wall-texture: 0
|
|
||||||
door-texture: 0
|
|
||||||
under-door-texture: 0
|
|
||||||
exit-xp: 2
|
|
||||||
exit-yn: 1
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: CONVEYOR
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 0 144 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 16 48 0
|
|
||||||
size: 8 8 4
|
|
||||||
anim-cycle: MIN
|
|
||||||
flags: REACTIVE ANIMATED
|
|
||||||
react-mask: ZN
|
|
||||||
react-push: XP
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: FINESTRA
|
|
||||||
bmp: altres.gif
|
|
||||||
bmp-rect: 0 75 20 33
|
|
||||||
bmp-offset: 0 39
|
|
||||||
pos: 15 23 4
|
|
||||||
size: 1 1 9
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: FINESTRA01
|
|
||||||
bmp: altres.gif
|
|
||||||
bmp-rect: 0 75 20 33
|
|
||||||
bmp-offset: 0 39
|
|
||||||
pos: 15 31 4
|
|
||||||
size: 1 1 9
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX
|
|
||||||
bmp: test.gif
|
|
||||||
bmp-rect: 32 0 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 27 31 0
|
|
||||||
size: 8 8 8
|
|
||||||
flags: PUSHABLE GRAVITY
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX01
|
|
||||||
bmp: test.gif
|
|
||||||
bmp-rect: 32 0 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 27 29 8
|
|
||||||
size: 8 8 8
|
|
||||||
flags: PICKABLE PUSHABLE GRAVITY
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
@@ -1,250 +0,0 @@
|
|||||||
width: 2
|
|
||||||
height: 3
|
|
||||||
door-height-yp: 2
|
|
||||||
door-height-yn: 2
|
|
||||||
color: GREEN
|
|
||||||
floor-texture: 1
|
|
||||||
wall-texture: 5
|
|
||||||
door-texture: 4
|
|
||||||
under-door-texture: 0
|
|
||||||
exit-yn: 2
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 8 0 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX02
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 16 0 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX03
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 24 0 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX20
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 8 8 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX01
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 8 16 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX11
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 8 24 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX12
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 8 32 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX13
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 8 40 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX14
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 8 48 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX21
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 8 56 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX15
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 16 56 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX16
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 24 56 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX04
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 32 0 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX17
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 32 56 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX05
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 40 0 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX22
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 48 0 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX06
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 48 8 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX07
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 48 16 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX08
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 48 24 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX09
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 48 32 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX10
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 48 40 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX19
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 48 48 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX18
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 40 56 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX23
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 48 56 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
width: 2
|
|
||||||
height: 2
|
|
||||||
door-height-xp: 0
|
|
||||||
door-height-xn: 0
|
|
||||||
color: YELLOW
|
|
||||||
floor-texture: 8
|
|
||||||
wall-texture: 8
|
|
||||||
door-texture: 5
|
|
||||||
under-door-texture: 0
|
|
||||||
exit-xp: 6
|
|
||||||
exit-xn: 0
|
|
||||||
@@ -1,114 +0,0 @@
|
|||||||
width: 3
|
|
||||||
height: 3
|
|
||||||
door-height-xn: 0
|
|
||||||
color: CYAN
|
|
||||||
floor-texture: 0
|
|
||||||
wall-texture: 0
|
|
||||||
door-texture: 0
|
|
||||||
under-door-texture: 0
|
|
||||||
exit-xn: 5
|
|
||||||
exit-zp: 7
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: SOFA
|
|
||||||
bmp: altres.gif
|
|
||||||
bmp-rect: 0 0 48 40
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 0 0 0
|
|
||||||
size: 16 8 6
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: LLIT
|
|
||||||
bmp: altres.gif
|
|
||||||
bmp-rect: 48 0 57 47
|
|
||||||
bmp-offset: 12 33
|
|
||||||
pos: 16 0 0
|
|
||||||
size: 16 16 6
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: LIFT
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 32 32 32 24
|
|
||||||
bmp-offset: 0 24
|
|
||||||
pos: 56 0 0
|
|
||||||
size: 8 8 4
|
|
||||||
orient: ZP
|
|
||||||
flags: MOVING
|
|
||||||
movement: Z
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: B4-02
|
|
||||||
bmp: objectes.gif
|
|
||||||
bmp-rect: 114 78 15 18
|
|
||||||
bmp-offset: -8 22
|
|
||||||
pos: 0 40 0
|
|
||||||
size: 4 4 4
|
|
||||||
anim-cycle: SEQ
|
|
||||||
anim-wait: 2
|
|
||||||
flags: ANIMATED SPECIAL
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: B8-00
|
|
||||||
bmp: objectes.gif
|
|
||||||
bmp-rect: 114 78 15 18
|
|
||||||
bmp-offset: -8 22
|
|
||||||
pos: 0 48 0
|
|
||||||
size: 4 4 4
|
|
||||||
anim-cycle: SEQ
|
|
||||||
anim-wait: 2
|
|
||||||
flags: ANIMATED SPECIAL
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: YONKI
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 168 64 19 32
|
|
||||||
bmp-offset: -7 37
|
|
||||||
pos: 18 56 0
|
|
||||||
size: 6 6 12
|
|
||||||
anim-cycle: SEQ
|
|
||||||
anim-wait: 1
|
|
||||||
flags: PUSHABLE GRAVITY
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BARREL
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 96 64 18 32
|
|
||||||
bmp-offset: -7 37
|
|
||||||
pos: 25 57 0
|
|
||||||
size: 6 6 12
|
|
||||||
anim-cycle: SEQ
|
|
||||||
anim-wait: 1
|
|
||||||
flags: PUSHABLE ANIMATED GRAVITY
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: NEVERA1
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 0 96 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 32 32 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: NEVERA2
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 32 96 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 32 32 8
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
width: 3
|
|
||||||
height: 3
|
|
||||||
door-height-xp: 0
|
|
||||||
door-height-xn: 0
|
|
||||||
color: PURPLE
|
|
||||||
floor-texture: 0
|
|
||||||
wall-texture: 14
|
|
||||||
door-texture: 2
|
|
||||||
under-door-texture: 0
|
|
||||||
exit-xn: 8
|
|
||||||
exit-zn: 6
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: LIFT
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 32 32 32 24
|
|
||||||
bmp-offset: 0 24
|
|
||||||
pos: 56 0 0
|
|
||||||
size: 8 8 4
|
|
||||||
orient: ZP
|
|
||||||
flags: MOVING
|
|
||||||
movement: Z
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: FINESTRA
|
|
||||||
bmp: altres.gif
|
|
||||||
bmp-rect: 48 76 18 32
|
|
||||||
bmp-offset: 0 39
|
|
||||||
pos: 0 9 6
|
|
||||||
size: 1 1 9
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
@@ -1,105 +0,0 @@
|
|||||||
width: 2
|
|
||||||
height: 2
|
|
||||||
door-height-xp: 0
|
|
||||||
color: CYAN
|
|
||||||
floor-texture: 0
|
|
||||||
wall-texture: 11
|
|
||||||
door-texture: 0
|
|
||||||
under-door-texture: 0
|
|
||||||
exit-xp: 7
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: P-ELBOW
|
|
||||||
bmp: objectes.gif
|
|
||||||
bmp-rect: 0 32 22 32
|
|
||||||
bmp-offset: -2 35
|
|
||||||
pos: 8 16 0
|
|
||||||
size: 4 4 4
|
|
||||||
anim-wait: 6
|
|
||||||
flags: ANIMATED SPECIAL
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: P-PIPE
|
|
||||||
bmp: objectes.gif
|
|
||||||
bmp-rect: 0 64 16 32
|
|
||||||
bmp-offset: -8 36
|
|
||||||
pos: 8 24 0
|
|
||||||
size: 4 4 4
|
|
||||||
anim-wait: 6
|
|
||||||
flags: ANIMATED SPECIAL
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: P-SALT
|
|
||||||
bmp: objectes.gif
|
|
||||||
bmp-rect: 66 32 20 32
|
|
||||||
bmp-offset: -7 35
|
|
||||||
pos: 8 32 0
|
|
||||||
size: 4 4 4
|
|
||||||
anim-wait: 6
|
|
||||||
flags: ANIMATED SPECIAL
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: EXPLOSION
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 0 160 18 22
|
|
||||||
bmp-offset: -7 38
|
|
||||||
pos: 32 32 0
|
|
||||||
size: 8 8 4
|
|
||||||
anim-cycle: SEQ
|
|
||||||
flags: ANIMATED
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: P-FILTER
|
|
||||||
bmp: objectes.gif
|
|
||||||
bmp-rect: 0 0 24 32
|
|
||||||
bmp-offset: -4 34
|
|
||||||
pos: 8 24 8
|
|
||||||
size: 4 4 4
|
|
||||||
anim-wait: 6
|
|
||||||
flags: ANIMATED SPECIAL
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: P-PUMP
|
|
||||||
bmp: objectes.gif
|
|
||||||
bmp-rect: 48 64 22 32
|
|
||||||
bmp-offset: -5 35
|
|
||||||
pos: 8 32 11
|
|
||||||
size: 4 4 4
|
|
||||||
anim-wait: 6
|
|
||||||
flags: ANIMATED SPECIAL
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX01
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 0 160 18 22
|
|
||||||
bmp-offset: -7 38
|
|
||||||
pos: 32 32 5
|
|
||||||
size: 8 8 4
|
|
||||||
anim-cycle: SEQ
|
|
||||||
flags: ANIMATED
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: P-TIMER
|
|
||||||
bmp: objectes.gif
|
|
||||||
bmp-rect: 72 0 24 32
|
|
||||||
bmp-offset: -4 34
|
|
||||||
pos: 8 40 8
|
|
||||||
size: 4 4 4
|
|
||||||
anim-wait: 6
|
|
||||||
flags: ANIMATED SPECIAL
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
@@ -1,210 +0,0 @@
|
|||||||
width: 3
|
|
||||||
height: 3
|
|
||||||
door-height-yp: 0
|
|
||||||
color: CYAN
|
|
||||||
floor-texture: 0
|
|
||||||
wall-texture: 0
|
|
||||||
door-texture: 0
|
|
||||||
under-door-texture: 0
|
|
||||||
exit-yp: 10
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: KALLAX-A03
|
|
||||||
bmp: altres.gif
|
|
||||||
bmp-rect: 72 48 24 27
|
|
||||||
bmp-offset: 0 31
|
|
||||||
pos: 0 16 0
|
|
||||||
size: 4 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: KALLAX-A
|
|
||||||
bmp: altres.gif
|
|
||||||
bmp-rect: 0 48 24 27
|
|
||||||
bmp-offset: 0 31
|
|
||||||
pos: 0 32 0
|
|
||||||
size: 4 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: KALLAX-A02
|
|
||||||
bmp: altres.gif
|
|
||||||
bmp-rect: 48 48 24 27
|
|
||||||
bmp-offset: 0 31
|
|
||||||
pos: 0 16 8
|
|
||||||
size: 4 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: KALLAX-A01
|
|
||||||
bmp: altres.gif
|
|
||||||
bmp-rect: 24 48 24 27
|
|
||||||
bmp-offset: 0 31
|
|
||||||
pos: 0 32 8
|
|
||||||
size: 4 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: KALLAX-A04
|
|
||||||
bmp: altres.gif
|
|
||||||
bmp-rect: 72 48 24 27
|
|
||||||
bmp-offset: -8 31
|
|
||||||
pos: 8 0 0
|
|
||||||
size: 8 4 8
|
|
||||||
orient: YP
|
|
||||||
flags: ORIENTABLE
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: KALLAX-A05
|
|
||||||
bmp: altres.gif
|
|
||||||
bmp-rect: 96 48 24 27
|
|
||||||
bmp-offset: -8 31
|
|
||||||
pos: 8 0 8
|
|
||||||
size: 8 4 8
|
|
||||||
orient: YP
|
|
||||||
flags: ORIENTABLE
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: ARCADE
|
|
||||||
bmp: altres.gif
|
|
||||||
bmp-rect: 160 0 30 48
|
|
||||||
bmp-offset: 0 48
|
|
||||||
pos: 16 0 0
|
|
||||||
size: 8 8 16
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: KALLAX-A07
|
|
||||||
bmp: altres.gif
|
|
||||||
bmp-rect: 96 48 24 27
|
|
||||||
bmp-offset: -8 31
|
|
||||||
pos: 24 0 0
|
|
||||||
size: 8 4 8
|
|
||||||
orient: YP
|
|
||||||
flags: ORIENTABLE
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: KALLAX-A08
|
|
||||||
bmp: altres.gif
|
|
||||||
bmp-rect: 24 48 24 27
|
|
||||||
bmp-offset: -8 31
|
|
||||||
pos: 32 0 0
|
|
||||||
size: 8 4 8
|
|
||||||
orient: YP
|
|
||||||
flags: ORIENTABLE
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: KALLAX-A06
|
|
||||||
bmp: altres.gif
|
|
||||||
bmp-rect: 72 48 24 27
|
|
||||||
bmp-offset: -8 31
|
|
||||||
pos: 24 0 8
|
|
||||||
size: 8 4 8
|
|
||||||
orient: YP
|
|
||||||
flags: ORIENTABLE
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: KALLAX-A09
|
|
||||||
bmp: altres.gif
|
|
||||||
bmp-rect: 0 48 24 27
|
|
||||||
bmp-offset: -8 31
|
|
||||||
pos: 32 0 8
|
|
||||||
size: 8 4 8
|
|
||||||
orient: YP
|
|
||||||
flags: ORIENTABLE
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: TAULETA
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 0 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 40 0 0
|
|
||||||
size: 8 8 4
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX05
|
|
||||||
bmp: altres.gif
|
|
||||||
bmp-rect: 128 0 20 42
|
|
||||||
bmp-offset: -5 46
|
|
||||||
pos: 40 0 4
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX01
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 128 32 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 16 24 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX02
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 160 32 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 24 24 0
|
|
||||||
size: 8 8 8
|
|
||||||
react-push: XP
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: GAT
|
|
||||||
bmp: gat2.gif
|
|
||||||
bmp-rect: 0 0 24 28
|
|
||||||
bmp-offset: -5 30
|
|
||||||
pos: 40 32 0
|
|
||||||
size: 8 8 8
|
|
||||||
orient: XP
|
|
||||||
anim-wait: 1
|
|
||||||
flags: PUSHABLE MOVING ANIMATED ORIENTABLE INERTIA
|
|
||||||
movement: X
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX03
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 128 0 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 16 24 8
|
|
||||||
size: 8 8 2
|
|
||||||
flags: PUSHABLE
|
|
||||||
react-push: XP
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX04
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 32 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 24 24 8
|
|
||||||
size: 8 8 8
|
|
||||||
orient: YP
|
|
||||||
flags: ORIENTABLE
|
|
||||||
react-push: XP
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
@@ -1,110 +0,0 @@
|
|||||||
width: 0
|
|
||||||
height: 3
|
|
||||||
door-height-yp: 0
|
|
||||||
door-height-yn: 5
|
|
||||||
color: WHITE
|
|
||||||
floor-texture: 6
|
|
||||||
wall-texture: 0
|
|
||||||
door-texture: 0
|
|
||||||
under-door-texture: 0
|
|
||||||
exit-yn: 9
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX01
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 24 0 12
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 32 0 12
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX08
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 24 8 8
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX01
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 32 8 8
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX07
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 24 16 4
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX02
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 32 16 4
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX06
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 24 24 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX03
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 64 64 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 32 24 0
|
|
||||||
size: 8 8 8
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX05
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 32 32 32 24
|
|
||||||
bmp-offset: 0 24
|
|
||||||
pos: 24 32 0
|
|
||||||
size: 8 10 4
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: BOX04
|
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 32 32 32 24
|
|
||||||
bmp-offset: 0 24
|
|
||||||
pos: 32 32 0
|
|
||||||
size: 8 10 4
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
@@ -52,7 +52,7 @@ actor{
|
|||||||
}
|
}
|
||||||
|
|
||||||
actor{
|
actor{
|
||||||
name: B-00-LIVE
|
name: B-00-JUMP
|
||||||
bmp: objectes.gif
|
bmp: objectes.gif
|
||||||
bmp-rect: 114 78 15 18
|
bmp-rect: 114 78 15 18
|
||||||
bmp-offset: -8 22
|
bmp-offset: -8 22
|
||||||
|
|||||||
@@ -9,6 +9,19 @@ under-door-texture: 0
|
|||||||
exit-yp: 15
|
exit-yp: 15
|
||||||
editor-done: 1
|
editor-done: 1
|
||||||
|
|
||||||
|
actor{
|
||||||
|
name: B-05-GOD
|
||||||
|
bmp: objectes.gif
|
||||||
|
bmp-rect: 114 78 15 18
|
||||||
|
bmp-offset: -8 22
|
||||||
|
pos: 40 40 0
|
||||||
|
size: 4 4 4
|
||||||
|
anim-cycle: SEQ
|
||||||
|
anim-wait: 2
|
||||||
|
flags: ANIMATED SPECIAL
|
||||||
|
movement: CW
|
||||||
|
}
|
||||||
|
|
||||||
actor{
|
actor{
|
||||||
name: BOX-A-01
|
name: BOX-A-01
|
||||||
bmp: caixes.gif
|
bmp: caixes.gif
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ actor{
|
|||||||
}
|
}
|
||||||
|
|
||||||
actor{
|
actor{
|
||||||
name: B-01-JUMP
|
name: B-01-RUN
|
||||||
bmp: objectes.gif
|
bmp: objectes.gif
|
||||||
bmp-rect: 114 78 15 18
|
bmp-rect: 114 78 15 18
|
||||||
bmp-offset: -8 22
|
bmp-offset: -8 22
|
||||||
|
|||||||
@@ -12,11 +12,11 @@ exit-xn: 28
|
|||||||
editor-done: 1
|
editor-done: 1
|
||||||
|
|
||||||
actor{
|
actor{
|
||||||
name: B-03-GOD
|
name: B-03-LIVE
|
||||||
bmp: objectes.gif
|
bmp: objectes.gif
|
||||||
bmp-rect: 114 78 15 18
|
bmp-rect: 114 78 15 18
|
||||||
bmp-offset: -8 22
|
bmp-offset: -8 24
|
||||||
pos: 48 -3 16
|
pos: 48 56 16
|
||||||
size: 4 4 4
|
size: 4 4 4
|
||||||
anim-cycle: SEQ
|
anim-cycle: SEQ
|
||||||
anim-wait: 2
|
anim-wait: 2
|
||||||
@@ -25,18 +25,7 @@ actor{
|
|||||||
}
|
}
|
||||||
|
|
||||||
actor{
|
actor{
|
||||||
name: BOX-B
|
name: CADIRA-00
|
||||||
bmp: caixes.gif
|
|
||||||
bmp-rect: 32 0 32 32
|
|
||||||
bmp-offset: 0 32
|
|
||||||
pos: 48 8 0
|
|
||||||
size: 8 8 8
|
|
||||||
flags: PUSHABLE
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
|
||||||
name: CADIRA
|
|
||||||
bmp: caixes.gif
|
bmp: caixes.gif
|
||||||
bmp-rect: 64 96 20 32
|
bmp-rect: 64 96 20 32
|
||||||
bmp-offset: -7 38
|
bmp-offset: -7 38
|
||||||
@@ -47,12 +36,24 @@ actor{
|
|||||||
movement: CW
|
movement: CW
|
||||||
}
|
}
|
||||||
|
|
||||||
|
actor{
|
||||||
|
name: CADIRA-01
|
||||||
|
bmp: caixes.gif
|
||||||
|
bmp-rect: 64 96 20 32
|
||||||
|
bmp-offset: -7 38
|
||||||
|
pos: 8 7 0
|
||||||
|
size: 6 5 8
|
||||||
|
orient: YP
|
||||||
|
flags: PUSHABLE
|
||||||
|
movement: CW
|
||||||
|
}
|
||||||
|
|
||||||
actor{
|
actor{
|
||||||
name: CUADRO-00
|
name: CUADRO-00
|
||||||
bmp: altres.gif
|
bmp: altres.gif
|
||||||
bmp-rect: 66 75 18 32
|
bmp-rect: 66 75 18 32
|
||||||
bmp-offset: 0 39
|
bmp-offset: 0 39
|
||||||
pos: 7 8 6
|
pos: 7 13 6
|
||||||
size: 1 1 9
|
size: 1 1 9
|
||||||
orient: YP
|
orient: YP
|
||||||
movement: CW
|
movement: CW
|
||||||
@@ -63,7 +64,7 @@ actor{
|
|||||||
bmp: altres.gif
|
bmp: altres.gif
|
||||||
bmp-rect: 102 75 18 32
|
bmp-rect: 102 75 18 32
|
||||||
bmp-offset: 0 39
|
bmp-offset: 0 39
|
||||||
pos: 7 48 6
|
pos: 7 43 6
|
||||||
size: 1 1 9
|
size: 1 1 9
|
||||||
orient: YP
|
orient: YP
|
||||||
movement: CW
|
movement: CW
|
||||||
@@ -165,6 +166,26 @@ actor{
|
|||||||
movement: CW
|
movement: CW
|
||||||
}
|
}
|
||||||
|
|
||||||
|
actor{
|
||||||
|
name: LAMPARA-00
|
||||||
|
bmp: altres.gif
|
||||||
|
bmp-rect: 128 0 20 41
|
||||||
|
bmp-offset: -6 45
|
||||||
|
pos: 48 56 0
|
||||||
|
size: 6 6 16
|
||||||
|
movement: CW
|
||||||
|
}
|
||||||
|
|
||||||
|
actor{
|
||||||
|
name: LAMPARA-01
|
||||||
|
bmp: altres.gif
|
||||||
|
bmp-rect: 128 0 20 41
|
||||||
|
bmp-offset: -6 45
|
||||||
|
pos: 8 56 0
|
||||||
|
size: 6 6 16
|
||||||
|
movement: CW
|
||||||
|
}
|
||||||
|
|
||||||
actor{
|
actor{
|
||||||
name: MESITA
|
name: MESITA
|
||||||
bmp: caixes.gif
|
bmp: caixes.gif
|
||||||
@@ -182,7 +203,7 @@ actor{
|
|||||||
bmp-offset: -2 33
|
bmp-offset: -2 33
|
||||||
pos: 32 0 0
|
pos: 32 0 0
|
||||||
size: 8 7 6
|
size: 8 7 6
|
||||||
flags: PUSHABLE
|
flags: PICKABLE PUSHABLE GRAVITY
|
||||||
movement: CW
|
movement: CW
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -191,7 +212,7 @@ actor{
|
|||||||
bmp: caixes.gif
|
bmp: caixes.gif
|
||||||
bmp-rect: 160 0 32 32
|
bmp-rect: 160 0 32 32
|
||||||
bmp-offset: 0 34
|
bmp-offset: 0 34
|
||||||
pos: 8 56 0
|
pos: 16 56 0
|
||||||
size: 8 8 2
|
size: 8 8 2
|
||||||
orient: XN
|
orient: XN
|
||||||
flags: REACTIVE MOVING DEADLY
|
flags: REACTIVE MOVING DEADLY
|
||||||
@@ -230,6 +251,6 @@ actor{
|
|||||||
bmp-offset: -4 34
|
bmp-offset: -4 34
|
||||||
pos: 24 0 4
|
pos: 24 0 4
|
||||||
size: 8 6 8
|
size: 8 6 8
|
||||||
flags: PUSHABLE
|
flags: PUSHABLE GRAVITY
|
||||||
movement: CW
|
movement: CW
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,19 @@ exit-xn: 33
|
|||||||
exit-yn: 28
|
exit-yn: 28
|
||||||
editor-done: 1
|
editor-done: 1
|
||||||
|
|
||||||
|
actor{
|
||||||
|
name: B-06-LIVE
|
||||||
|
bmp: objectes.gif
|
||||||
|
bmp-rect: 114 78 15 18
|
||||||
|
bmp-offset: -8 22
|
||||||
|
pos: 24 32 12
|
||||||
|
size: 4 4 4
|
||||||
|
anim-cycle: SEQ
|
||||||
|
anim-wait: 2
|
||||||
|
flags: ANIMATED SPECIAL
|
||||||
|
movement: CW
|
||||||
|
}
|
||||||
|
|
||||||
actor{
|
actor{
|
||||||
name: PLATH-00
|
name: PLATH-00
|
||||||
bmp: caixes.gif
|
bmp: caixes.gif
|
||||||
@@ -227,3 +240,15 @@ actor{
|
|||||||
orient: ZP
|
orient: ZP
|
||||||
movement: Z
|
movement: Z
|
||||||
}
|
}
|
||||||
|
|
||||||
|
actor{
|
||||||
|
name: PLATH-18
|
||||||
|
bmp: caixes.gif
|
||||||
|
bmp-rect: 160 128 32 32
|
||||||
|
bmp-offset: 0 32
|
||||||
|
pos: 24 32 8
|
||||||
|
size: 8 8 4
|
||||||
|
orient: ZP
|
||||||
|
flags: DISAPPEAR
|
||||||
|
movement: Z
|
||||||
|
}
|
||||||
|
|||||||
@@ -27,19 +27,6 @@ actor{
|
|||||||
movement: CW
|
movement: CW
|
||||||
}
|
}
|
||||||
|
|
||||||
actor{
|
|
||||||
name: B-02-RUN
|
|
||||||
bmp: objectes.gif
|
|
||||||
bmp-rect: 114 78 15 18
|
|
||||||
bmp-offset: -8 22
|
|
||||||
pos: 8 8 0
|
|
||||||
size: 4 4 4
|
|
||||||
anim-cycle: SEQ
|
|
||||||
anim-wait: 2
|
|
||||||
flags: ANIMATED SPECIAL
|
|
||||||
movement: CW
|
|
||||||
}
|
|
||||||
|
|
||||||
actor{
|
actor{
|
||||||
name: BATMAN
|
name: BATMAN
|
||||||
bmp: batman.gif
|
bmp: batman.gif
|
||||||
|
|||||||
@@ -256,9 +256,9 @@ actor{
|
|||||||
bmp: gat.gif
|
bmp: gat.gif
|
||||||
bmp-rect: 0 0 24 28
|
bmp-rect: 0 0 24 28
|
||||||
bmp-offset: -4 32
|
bmp-offset: -4 32
|
||||||
pos: 16 16 0
|
pos: 16 24 0
|
||||||
size: 8 8 8
|
size: 8 8 8
|
||||||
orient: XP
|
orient: YN
|
||||||
anim-wait: 1
|
anim-wait: 1
|
||||||
flags: REACTIVE MOVING ANIMATED ORIENTABLE DEADLY
|
flags: REACTIVE MOVING ANIMATED ORIENTABLE DEADLY
|
||||||
react-mask: XP XN YP YN ZP ZN
|
react-mask: XP XN YP YN ZP ZN
|
||||||
@@ -270,9 +270,9 @@ actor{
|
|||||||
bmp: gat2.gif
|
bmp: gat2.gif
|
||||||
bmp-rect: 0 0 24 28
|
bmp-rect: 0 0 24 28
|
||||||
bmp-offset: -4 32
|
bmp-offset: -4 32
|
||||||
pos: 40 40 0
|
pos: 40 32 0
|
||||||
size: 8 8 8
|
size: 8 8 8
|
||||||
orient: XN
|
orient: YP
|
||||||
anim-wait: 1
|
anim-wait: 1
|
||||||
flags: REACTIVE MOVING ANIMATED ORIENTABLE DEADLY
|
flags: REACTIVE MOVING ANIMATED ORIENTABLE DEADLY
|
||||||
react-mask: XP XN YP YN ZP ZN
|
react-mask: XP XN YP YN ZP ZN
|
||||||
|
|||||||
@@ -183,9 +183,9 @@ actor{
|
|||||||
bmp: obrer.gif
|
bmp: obrer.gif
|
||||||
bmp-rect: 0 0 24 32
|
bmp-rect: 0 0 24 32
|
||||||
bmp-offset: -4 37
|
bmp-offset: -4 37
|
||||||
pos: 8 24 0
|
pos: 24 24 0
|
||||||
size: 8 8 8
|
size: 8 8 8
|
||||||
orient: XN
|
orient: XP
|
||||||
anim-wait: 1
|
anim-wait: 1
|
||||||
flags: REACTIVE MOVING ANIMATED ORIENTABLE DEADLY
|
flags: REACTIVE MOVING ANIMATED ORIENTABLE DEADLY
|
||||||
react-mask: XP XN YP YN ZP ZN
|
react-mask: XP XN YP YN ZP ZN
|
||||||
@@ -197,9 +197,9 @@ actor{
|
|||||||
bmp: obrer.gif
|
bmp: obrer.gif
|
||||||
bmp-rect: 0 0 24 32
|
bmp-rect: 0 0 24 32
|
||||||
bmp-offset: -4 37
|
bmp-offset: -4 37
|
||||||
pos: 48 48 0
|
pos: 40 48 0
|
||||||
size: 8 8 8
|
size: 8 8 8
|
||||||
orient: XN
|
orient: XP
|
||||||
anim-wait: 1
|
anim-wait: 1
|
||||||
flags: REACTIVE MOVING ANIMATED ORIENTABLE DEADLY
|
flags: REACTIVE MOVING ANIMATED ORIENTABLE DEADLY
|
||||||
react-mask: XP XN YP YN ZP ZN
|
react-mask: XP XN YP YN ZP ZN
|
||||||
|
|||||||
@@ -20,6 +20,19 @@ actor{
|
|||||||
movement: CW
|
movement: CW
|
||||||
}
|
}
|
||||||
|
|
||||||
|
actor{
|
||||||
|
name: B-04-LIVE
|
||||||
|
bmp: objectes.gif
|
||||||
|
bmp-rect: 114 78 15 18
|
||||||
|
bmp-offset: -8 22
|
||||||
|
pos: 48 0 0
|
||||||
|
size: 4 4 4
|
||||||
|
anim-cycle: SEQ
|
||||||
|
anim-wait: 2
|
||||||
|
flags: ANIMATED SPECIAL
|
||||||
|
movement: CW
|
||||||
|
}
|
||||||
|
|
||||||
actor{
|
actor{
|
||||||
name: BLOCMATA-00
|
name: BLOCMATA-00
|
||||||
bmp: altres.gif
|
bmp: altres.gif
|
||||||
@@ -61,6 +74,7 @@ actor{
|
|||||||
bmp-offset: 0 32
|
bmp-offset: 0 32
|
||||||
pos: 0 49 6
|
pos: 0 49 6
|
||||||
size: 8 8 8
|
size: 8 8 8
|
||||||
|
flags: PUSHABLE GRAVITY
|
||||||
movement: CW
|
movement: CW
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -72,7 +86,7 @@ actor{
|
|||||||
pos: 8 40 0
|
pos: 8 40 0
|
||||||
size: 8 8 8
|
size: 8 8 8
|
||||||
orient: YP
|
orient: YP
|
||||||
flags: ORIENTABLE
|
flags: PUSHABLE ORIENTABLE GRAVITY
|
||||||
movement: CW
|
movement: CW
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,6 +97,7 @@ actor{
|
|||||||
bmp-offset: 0 32
|
bmp-offset: 0 32
|
||||||
pos: 8 32 8
|
pos: 8 32 8
|
||||||
size: 8 8 8
|
size: 8 8 8
|
||||||
|
flags: PUSHABLE GRAVITY
|
||||||
movement: CW
|
movement: CW
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,6 +132,7 @@ actor{
|
|||||||
bmp-offset: 0 32
|
bmp-offset: 0 32
|
||||||
pos: 31 2 0
|
pos: 31 2 0
|
||||||
size: 8 8 8
|
size: 8 8 8
|
||||||
|
flags: PUSHABLE GRAVITY
|
||||||
movement: CW
|
movement: CW
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,7 +144,7 @@ actor{
|
|||||||
pos: 54 0 8
|
pos: 54 0 8
|
||||||
size: 8 8 8
|
size: 8 8 8
|
||||||
orient: YP
|
orient: YP
|
||||||
flags: ORIENTABLE
|
flags: PUSHABLE ORIENTABLE GRAVITY
|
||||||
movement: CW
|
movement: CW
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -149,6 +165,7 @@ actor{
|
|||||||
bmp-offset: 0 32
|
bmp-offset: 0 32
|
||||||
pos: 10 32 0
|
pos: 10 32 0
|
||||||
size: 8 8 8
|
size: 8 8 8
|
||||||
|
flags: PUSHABLE GRAVITY
|
||||||
movement: CW
|
movement: CW
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,8 +184,9 @@ actor{
|
|||||||
bmp: caixes.gif
|
bmp: caixes.gif
|
||||||
bmp-rect: 32 0 32 32
|
bmp-rect: 32 0 32 32
|
||||||
bmp-offset: 0 32
|
bmp-offset: 0 32
|
||||||
pos: 40 0 0
|
pos: 40 1 0
|
||||||
size: 8 8 8
|
size: 8 8 8
|
||||||
|
flags: PUSHABLE GRAVITY
|
||||||
movement: CW
|
movement: CW
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -180,7 +198,7 @@ actor{
|
|||||||
pos: 46 3 10
|
pos: 46 3 10
|
||||||
size: 8 8 8
|
size: 8 8 8
|
||||||
orient: YP
|
orient: YP
|
||||||
flags: ORIENTABLE
|
flags: PUSHABLE ORIENTABLE GRAVITY
|
||||||
movement: CW
|
movement: CW
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -256,3 +274,42 @@ actor{
|
|||||||
flags: MOVING ANIMATED
|
flags: MOVING ANIMATED
|
||||||
movement: RANDV
|
movement: RANDV
|
||||||
}
|
}
|
||||||
|
|
||||||
|
actor{
|
||||||
|
name: EXPLOSION-03
|
||||||
|
bmp: caixes.gif
|
||||||
|
bmp-rect: 0 160 18 22
|
||||||
|
bmp-offset: -7 24
|
||||||
|
pos: 48 48 0
|
||||||
|
size: 8 8 4
|
||||||
|
orient: YN
|
||||||
|
anim-cycle: SEQ
|
||||||
|
flags: MOVING ANIMATED
|
||||||
|
movement: RANDV
|
||||||
|
}
|
||||||
|
|
||||||
|
actor{
|
||||||
|
name: EXPLOSION-04
|
||||||
|
bmp: caixes.gif
|
||||||
|
bmp-rect: 0 160 18 22
|
||||||
|
bmp-offset: -7 24
|
||||||
|
pos: 0 0 0
|
||||||
|
size: 8 8 4
|
||||||
|
orient: XP
|
||||||
|
anim-cycle: SEQ
|
||||||
|
flags: MOVING ANIMATED
|
||||||
|
movement: RANDV
|
||||||
|
}
|
||||||
|
|
||||||
|
actor{
|
||||||
|
name: EXPLOSION-05
|
||||||
|
bmp: caixes.gif
|
||||||
|
bmp-rect: 0 160 18 22
|
||||||
|
bmp-offset: -7 24
|
||||||
|
pos: 16 24 0
|
||||||
|
size: 8 8 4
|
||||||
|
orient: XN
|
||||||
|
anim-cycle: SEQ
|
||||||
|
flags: MOVING ANIMATED
|
||||||
|
movement: RANDV
|
||||||
|
}
|
||||||
|
|||||||
@@ -9,6 +9,19 @@ under-door-texture: 2
|
|||||||
exit-xp: 62
|
exit-xp: 62
|
||||||
editor-done: 1
|
editor-done: 1
|
||||||
|
|
||||||
|
actor{
|
||||||
|
name: B-02-GOD
|
||||||
|
bmp: objectes.gif
|
||||||
|
bmp-rect: 114 78 15 18
|
||||||
|
bmp-offset: -8 22
|
||||||
|
pos: 56 16 20
|
||||||
|
size: 4 4 4
|
||||||
|
anim-cycle: SEQ
|
||||||
|
anim-wait: 2
|
||||||
|
flags: ANIMATED SPECIAL
|
||||||
|
movement: CW
|
||||||
|
}
|
||||||
|
|
||||||
actor{
|
actor{
|
||||||
name: P-ELBOW
|
name: P-ELBOW
|
||||||
bmp: objectes.gif
|
bmp: objectes.gif
|
||||||
@@ -45,6 +58,29 @@ actor{
|
|||||||
movement: Y
|
movement: Y
|
||||||
}
|
}
|
||||||
|
|
||||||
|
actor{
|
||||||
|
name: PLATH-02
|
||||||
|
bmp: caixes.gif
|
||||||
|
bmp-rect: 160 128 32 32
|
||||||
|
bmp-offset: 0 32
|
||||||
|
pos: 56 16 16
|
||||||
|
size: 8 8 4
|
||||||
|
orient: ZP
|
||||||
|
movement: Z
|
||||||
|
}
|
||||||
|
|
||||||
|
actor{
|
||||||
|
name: PLATH-04
|
||||||
|
bmp: altres.gif
|
||||||
|
bmp-rect: 160 48 32 32
|
||||||
|
bmp-offset: 0 32
|
||||||
|
pos: 32 8 16
|
||||||
|
size: 8 8 4
|
||||||
|
orient: XN
|
||||||
|
flags: MOVING
|
||||||
|
movement: X
|
||||||
|
}
|
||||||
|
|
||||||
actor{
|
actor{
|
||||||
name: TRANSPA-00
|
name: TRANSPA-00
|
||||||
bmp: altres.gif
|
bmp: altres.gif
|
||||||
|
|||||||
177
source/actor.cpp
177
source/actor.cpp
@@ -643,6 +643,76 @@ namespace actor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8_t PickSpecial(actor_t *act, uint8_t result = 0)
|
||||||
|
{
|
||||||
|
if (act->name[0] == 'B')
|
||||||
|
{ // Es un booster
|
||||||
|
hero::collectBooster(&act->name[5], (act->name[2] - 48) * 10 + (act->name[3] - 48));
|
||||||
|
audio::playSound("snd_boost.wav", SOUND_BASIC);
|
||||||
|
}
|
||||||
|
else if (act->name[0] == 'S')
|
||||||
|
{ // Es un skill
|
||||||
|
hero::giveSkill(&act->name[2]);
|
||||||
|
audio::playSound("snd_boost.wav", SOUND_BASIC);
|
||||||
|
}
|
||||||
|
else if (act->name[0] == 'P')
|
||||||
|
{
|
||||||
|
if (hero::getSkills() & SKILL_BAG)
|
||||||
|
{ // Es una part
|
||||||
|
hero::pickPart(&act->name[2]);
|
||||||
|
audio::playSound("snd_pick.wav", SOUND_BASIC);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
audio::playSound("snd_push.wav", SOUND_BASIC);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (act->name[0] == 'A')
|
||||||
|
{
|
||||||
|
hero::pickAnbernic(act->name);
|
||||||
|
audio::playSound("snd_pick.wav", SOUND_BASIC);
|
||||||
|
}
|
||||||
|
else if (act->name[0] == 'X')
|
||||||
|
{
|
||||||
|
if (hero::isCarryingPrologoObject()) {
|
||||||
|
audio::playSound("snd_push.wav", SOUND_BASIC);
|
||||||
|
return result;
|
||||||
|
} else {
|
||||||
|
hero::pickPrologoObject(act->name[2]-48);
|
||||||
|
audio::playSound("snd_pick.wav", SOUND_BASIC);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (act->name[0] == 'Y')
|
||||||
|
{
|
||||||
|
const int which = act->name[2]-48;
|
||||||
|
if (hero::getPrologoObjectState(which)==PROLOGO_OBJECT_PICKED)
|
||||||
|
{
|
||||||
|
hero::leavePrologoObject(which);
|
||||||
|
audio::playSound("snd_pick.wav", SOUND_BASIC);
|
||||||
|
act->name[0] = 'Z';
|
||||||
|
room::cycleColor(1);
|
||||||
|
return result;
|
||||||
|
} else {
|
||||||
|
audio::playSound("snd_push.wav", SOUND_BASIC);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (act->name[0] == 'Z')
|
||||||
|
{
|
||||||
|
audio::playSound("snd_push.wav", SOUND_BASIC);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SDL_assert(false);
|
||||||
|
}
|
||||||
|
act = actor::replaceWithTemplate(act, "EXPLOSION");
|
||||||
|
act->name[0] = '_';
|
||||||
|
room::cycleColor(1);
|
||||||
|
return PUSH_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
uint8_t push(actor_t *source, actor_t *act, uint8_t push)
|
uint8_t push(actor_t *source, actor_t *act, uint8_t push)
|
||||||
{
|
{
|
||||||
uint8_t result = 0;
|
uint8_t result = 0;
|
||||||
@@ -672,72 +742,7 @@ namespace actor
|
|||||||
{
|
{
|
||||||
if (act->flags & FLAG_SPECIAL)
|
if (act->flags & FLAG_SPECIAL)
|
||||||
{
|
{
|
||||||
if (act->name[0] == 'B')
|
return PickSpecial(act, result);
|
||||||
{ // Es un booster
|
|
||||||
hero::collectBooster(&act->name[5], (act->name[2] - 48) * 10 + (act->name[3] - 48));
|
|
||||||
audio::playSound("snd_boost.wav", SOUND_BASIC);
|
|
||||||
}
|
|
||||||
else if (act->name[0] == 'S')
|
|
||||||
{ // Es un skill
|
|
||||||
hero::giveSkill(&act->name[2]);
|
|
||||||
audio::playSound("snd_boost.wav", SOUND_BASIC);
|
|
||||||
}
|
|
||||||
else if (act->name[0] == 'P')
|
|
||||||
{
|
|
||||||
if (hero::getSkills() & SKILL_BAG)
|
|
||||||
{ // Es una part
|
|
||||||
hero::pickPart(&act->name[2]);
|
|
||||||
audio::playSound("snd_pick.wav", SOUND_BASIC);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
audio::playSound("snd_push.wav", SOUND_BASIC);
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (act->name[0] == 'A')
|
|
||||||
{
|
|
||||||
hero::pickAnbernic(act->name);
|
|
||||||
audio::playSound("snd_pick.wav", SOUND_BASIC);
|
|
||||||
}
|
|
||||||
else if (act->name[0] == 'X')
|
|
||||||
{
|
|
||||||
if (hero::isCarryingPrologoObject()) {
|
|
||||||
audio::playSound("snd_push.wav", SOUND_BASIC);
|
|
||||||
return result;
|
|
||||||
} else {
|
|
||||||
hero::pickPrologoObject(act->name[2]-48);
|
|
||||||
audio::playSound("snd_pick.wav", SOUND_BASIC);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (act->name[0] == 'Y')
|
|
||||||
{
|
|
||||||
const int which = act->name[2]-48;
|
|
||||||
if (hero::getPrologoObjectState(which)==PROLOGO_OBJECT_PICKED)
|
|
||||||
{
|
|
||||||
hero::leavePrologoObject(which);
|
|
||||||
audio::playSound("snd_pick.wav", SOUND_BASIC);
|
|
||||||
act->name[0] = 'Z';
|
|
||||||
room::cycleColor(1);
|
|
||||||
return result;
|
|
||||||
} else {
|
|
||||||
audio::playSound("snd_push.wav", SOUND_BASIC);
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (act->name[0] == 'Z')
|
|
||||||
{
|
|
||||||
audio::playSound("snd_push.wav", SOUND_BASIC);
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SDL_assert(false);
|
|
||||||
}
|
|
||||||
act = actor::replaceWithTemplate(act, "EXPLOSION");
|
|
||||||
act->name[0] = '_';
|
|
||||||
room::cycleColor(1);
|
|
||||||
return PUSH_NONE;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
@@ -780,7 +785,11 @@ namespace actor
|
|||||||
{
|
{
|
||||||
hero::useBoostRun();
|
hero::useBoostRun();
|
||||||
act->orient = PUSH_XP;
|
act->orient = PUSH_XP;
|
||||||
if (((act->pos.x + act->size.x) < max.x && act->pos.y >= min.y && (act->pos.y + act->size.y) <= max.y) || ((room::getDoors() & DOOR_XP) && (act->pos.y >= 24) && (act->pos.y <= 32)))
|
if (
|
||||||
|
( ((act->pos.x + act->size.x) < max.x) && (act->pos.y >= min.y) && ((act->pos.y + act->size.y) <= max.y) )
|
||||||
|
||
|
||||||
|
( (room::getDoors() & DOOR_XP) && (act->pos.y >= 24) && (act->pos.y <= 32) )
|
||||||
|
)
|
||||||
{
|
{
|
||||||
moving = true;
|
moving = true;
|
||||||
// Si està en les vores d'una porta, espenta cap a centrar-lo
|
// Si està en les vores d'una porta, espenta cap a centrar-lo
|
||||||
@@ -911,10 +920,23 @@ namespace actor
|
|||||||
actor::actor_t *future_below = any_below_me(act);
|
actor::actor_t *future_below = any_below_me(act);
|
||||||
// if ((input::keyDown(SDL_SCANCODE_SPACE) || input::keyDown(config::getKey(KEY_JUMP))) &&
|
// if ((input::keyDown(SDL_SCANCODE_SPACE) || input::keyDown(config::getKey(KEY_JUMP))) &&
|
||||||
if ((controller::down(KEY_JUMP)) && ((hero::getSkills() & SKILL_SHOES) || actor::hero::isPrologo())
|
if ((controller::down(KEY_JUMP)) && ((hero::getSkills() & SKILL_SHOES) || actor::hero::isPrologo())
|
||||||
&& (act->pos.y + act->size.y) <= max.y && act->pos.y >= min.y && (act->pos.x + act->size.x) <= max.x && act->pos.x >= min.x && act->react_mask == 0 && ((act->pos.z == 0 && room::getFloor() != 11) || (act->below || future_below)))
|
&& (act->pos.y + act->size.y) <= max.y && act->pos.y >= min.y &&
|
||||||
|
(act->pos.x + act->size.x) <= max.x && act->pos.x >= min.x &&
|
||||||
|
act->react_mask == 0 &&
|
||||||
|
( (act->pos.z == 0 && room::getFloor() != 11 && room::getExit(ZN)==-1) || (act->below || future_below) )
|
||||||
|
)
|
||||||
{
|
{
|
||||||
audio::pauseChannel(walk_channel);
|
audio::pauseChannel(walk_channel);
|
||||||
audio::playSound("snd_jump.wav", SOUND_BASIC);
|
audio::playSound("snd_jump.wav", SOUND_BASIC);
|
||||||
|
// [RZC 31/10/2024] Hack per a que al aterrar sobre els especials els pille
|
||||||
|
if (!act->below && future_below && future_below->flags & FLAG_SPECIAL)
|
||||||
|
{
|
||||||
|
act->push |= PickSpecial(future_below);
|
||||||
|
}
|
||||||
|
// [RZC 11/10/2024] Hack per a que al aterrar sobre els que maten, te maten
|
||||||
|
if (!act->below && future_below && future_below->flags & FLAG_DEADLY)
|
||||||
|
act->push |= PUSH_KILL;
|
||||||
|
|
||||||
// [RZC 01/10/2024] Hack per a que al aterrar sobre els que desapareixen puga botar sobre ells, i a més ells desapareguen
|
// [RZC 01/10/2024] Hack per a que al aterrar sobre els que desapareixen puga botar sobre ells, i a més ells desapareguen
|
||||||
if (!act->below && future_below && future_below->flags & FLAG_DISAPPEAR)
|
if (!act->below && future_below && future_below->flags & FLAG_DISAPPEAR)
|
||||||
actor::push(act, future_below, PUSH_ZN);
|
actor::push(act, future_below, PUSH_ZN);
|
||||||
@@ -1261,7 +1283,7 @@ namespace actor
|
|||||||
{
|
{
|
||||||
act->pos.x += vel;
|
act->pos.x += vel;
|
||||||
actor::actor_t *other = actor::get_collision(act);
|
actor::actor_t *other = actor::get_collision(act);
|
||||||
if (other || ((act->pos.x + act->size.x) > max.x && (!(room::getDoors() & DOOR_XP) || (act->pos.y != 28) || !(act->flags & FLAG_HERO))))
|
if (other || ((act->pos.x + act->size.x) > max.x && (!(room::getDoors() & DOOR_XP) || (act->pos.y != 28) || (act->pos.z != room::getDoor(XP) * 4) || !(act->flags & FLAG_HERO))))
|
||||||
{
|
{
|
||||||
if (other) {
|
if (other) {
|
||||||
uint8_t push_value = push(act, other, PUSH_XP);
|
uint8_t push_value = push(act, other, PUSH_XP);
|
||||||
@@ -1342,7 +1364,7 @@ namespace actor
|
|||||||
{
|
{
|
||||||
act->pos.y += vel;
|
act->pos.y += vel;
|
||||||
actor::actor_t *other = actor::get_collision(act);
|
actor::actor_t *other = actor::get_collision(act);
|
||||||
if (other || ((act->pos.y + act->size.y) > max.y && (!(room::getDoors() & DOOR_YP) || (act->pos.x != 28) || !(act->flags & FLAG_HERO))))
|
if (other || ((act->pos.y + act->size.y) > max.y && (!(room::getDoors() & DOOR_YP) || (act->pos.x != 28) || (act->pos.z != room::getDoor(YP) * 4) || !(act->flags & FLAG_HERO))))
|
||||||
{
|
{
|
||||||
if (other) {
|
if (other) {
|
||||||
uint8_t push_value = push(act, other, PUSH_YP);
|
uint8_t push_value = push(act, other, PUSH_YP);
|
||||||
@@ -2077,6 +2099,7 @@ namespace actor
|
|||||||
brilli = draw::getSurface("objectes.gif");
|
brilli = draw::getSurface("objectes.gif");
|
||||||
if ((config::getSoundMode() == SOUND_ALL))
|
if ((config::getSoundMode() == SOUND_ALL))
|
||||||
{
|
{
|
||||||
|
if (walk_channel != -1) audio::stopChannel(walk_channel);
|
||||||
walk_channel = audio::playSound("snd_walk.wav", SOUND_ALL, -1);
|
walk_channel = audio::playSound("snd_walk.wav", SOUND_ALL, -1);
|
||||||
audio::pauseChannel(walk_channel);
|
audio::pauseChannel(walk_channel);
|
||||||
}
|
}
|
||||||
@@ -2164,7 +2187,7 @@ namespace actor
|
|||||||
switch (getBoosterFromString(booster))
|
switch (getBoosterFromString(booster))
|
||||||
{
|
{
|
||||||
case BOOST_GOD:
|
case BOOST_GOD:
|
||||||
boost_god = 99 * 2;
|
boost_god = 99 * 4;
|
||||||
break;
|
break;
|
||||||
case BOOST_RUN:
|
case BOOST_RUN:
|
||||||
boost_steps = 99 * 2;
|
boost_steps = 99 * 2;
|
||||||
@@ -2222,6 +2245,8 @@ namespace actor
|
|||||||
|
|
||||||
const int getSkillFromString(char *skill)
|
const int getSkillFromString(char *skill)
|
||||||
{
|
{
|
||||||
|
if ( (strcmp(skill, "ALL")==0) || (strcmp(skill, "SKILLS")==0) ) return SKILL_SHOES | SKILL_GLOVES | SKILL_PANTS | SKILL_BAG;
|
||||||
|
|
||||||
static const char *skillset_name[4] = {"SHOES", "GLOVES", "PANTS", "BAG"};
|
static const char *skillset_name[4] = {"SHOES", "GLOVES", "PANTS", "BAG"};
|
||||||
for (int i = 0; i < 4; ++i)
|
for (int i = 0; i < 4; ++i)
|
||||||
{
|
{
|
||||||
@@ -2259,10 +2284,10 @@ namespace actor
|
|||||||
bool giveSkill(char *skill)
|
bool giveSkill(char *skill)
|
||||||
{
|
{
|
||||||
const int skill_number = getSkillFromString(skill);
|
const int skill_number = getSkillFromString(skill);
|
||||||
if (skill_number==SKILL_SHOES) modules::game::setMissatge(" JA TENS LES SABATES!- ARA JA POTS BOTAR!");
|
if (skill_number & SKILL_SHOES) modules::game::setMissatge(" JA TENS LES SABATES!- ARA JA POTS BOTAR!");
|
||||||
else if (skill_number==SKILL_GLOVES) modules::game::setMissatge(" JA TENS ELS GUANTS!- ARA JA POTS ESPENTAR!");
|
else if (skill_number & SKILL_GLOVES) modules::game::setMissatge(" JA TENS ELS GUANTS!- ARA JA POTS ESPENTAR!");
|
||||||
else if (skill_number==SKILL_PANTS) modules::game::setMissatge(" JA TENS ELS PANTALONS!- JA POTS AGAFAR COSES!");
|
else if (skill_number & SKILL_PANTS) modules::game::setMissatge(" JA TENS ELS PANTALONS!- JA POTS AGAFAR COSES!");
|
||||||
else if (skill_number==SKILL_BAG) modules::game::setMissatge(" JA TENS LA MOTXILLA!- A ARREPLEGAR PECES!");
|
else if (skill_number & SKILL_BAG) modules::game::setMissatge(" JA TENS LA MOTXILLA!- A ARREPLEGAR PECES!");
|
||||||
return giveSkill(skill_number);
|
return giveSkill(skill_number);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2289,6 +2314,8 @@ namespace actor
|
|||||||
|
|
||||||
const int getPartFromString(char *part)
|
const int getPartFromString(char *part)
|
||||||
{
|
{
|
||||||
|
if ( (strcmp(part, "ALL")==0) || (strcmp(part, "PARTS")==0) ) return 0x3f;
|
||||||
|
|
||||||
static const char *partset_name[6] = {"FILTER", "PUMP", "TIMER", "SALT", "PIPE", "ELBOW"};
|
static const char *partset_name[6] = {"FILTER", "PUMP", "TIMER", "SALT", "PIPE", "ELBOW"};
|
||||||
for (int i = 0; i < 6; ++i)
|
for (int i = 0; i < 6; ++i)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -105,9 +105,10 @@ namespace draw
|
|||||||
SDL_GetRendererInfo(sdl_renderer, &info);
|
SDL_GetRendererInfo(sdl_renderer, &info);
|
||||||
printf("\nRenderer: %s\n", info.name);
|
printf("\nRenderer: %s\n", info.name);
|
||||||
|
|
||||||
|
SDL_ShowCursor(false);
|
||||||
|
|
||||||
if (screen_fullscreen)
|
if (screen_fullscreen)
|
||||||
{
|
{
|
||||||
SDL_ShowCursor(false);
|
|
||||||
int w, h;
|
int w, h;
|
||||||
SDL_GetWindowSize(sdl_window, &w, &h);
|
SDL_GetWindowSize(sdl_window, &w, &h);
|
||||||
fullscreen_scale = h/screen_height;
|
fullscreen_scale = h/screen_height;
|
||||||
@@ -118,7 +119,6 @@ namespace draw
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SDL_ShowCursor(true);
|
|
||||||
dest_rect.x = dest_rect.y = 0;
|
dest_rect.x = dest_rect.y = 0;
|
||||||
dest_rect.w = screen_width * zoom;
|
dest_rect.w = screen_width * zoom;
|
||||||
dest_rect.h = screen_height * zoom;
|
dest_rect.h = screen_height * zoom;
|
||||||
@@ -187,9 +187,10 @@ namespace draw
|
|||||||
sdl_renderer = SDL_CreateRenderer(sdl_window, -1, 0);
|
sdl_renderer = SDL_CreateRenderer(sdl_window, -1, 0);
|
||||||
sdl_texture = SDL_CreateTexture(sdl_renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, screen_width, screen_height);
|
sdl_texture = SDL_CreateTexture(sdl_renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, screen_width, screen_height);
|
||||||
|
|
||||||
|
SDL_ShowCursor(false);
|
||||||
|
|
||||||
if (screen_fullscreen)
|
if (screen_fullscreen)
|
||||||
{
|
{
|
||||||
SDL_ShowCursor(false);
|
|
||||||
int w, h;
|
int w, h;
|
||||||
SDL_GetWindowSize(sdl_window, &w, &h);
|
SDL_GetWindowSize(sdl_window, &w, &h);
|
||||||
fullscreen_scale = h/screen_height;
|
fullscreen_scale = h/screen_height;
|
||||||
@@ -200,7 +201,6 @@ namespace draw
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SDL_ShowCursor(true);
|
|
||||||
dest_rect.x = dest_rect.y = 0;
|
dest_rect.x = dest_rect.y = 0;
|
||||||
dest_rect.w = screen_width * zoom;
|
dest_rect.w = screen_width * zoom;
|
||||||
dest_rect.h = screen_height * zoom;
|
dest_rect.h = screen_height * zoom;
|
||||||
|
|||||||
@@ -341,7 +341,19 @@ namespace file
|
|||||||
#elif __linux__
|
#elif __linux__
|
||||||
struct passwd *pw = getpwuid(getuid());
|
struct passwd *pw = getpwuid(getuid());
|
||||||
const char *homedir = pw->pw_dir;
|
const char *homedir = pw->pw_dir;
|
||||||
config_folder = std::string(homedir) + "/." + foldername;
|
config_folder = std::string(homedir) + "/.config/" + foldername;
|
||||||
|
|
||||||
|
{
|
||||||
|
// Intenta crear ".config", per si no existeix
|
||||||
|
std::string config_base_folder = std::string(homedir) + "/.config";
|
||||||
|
int ret = mkdir(config_base_folder.c_str(), S_IRWXU);
|
||||||
|
if (ret == -1 && errno != EEXIST)
|
||||||
|
{
|
||||||
|
printf("ERROR CREATING CONFIG BASE FOLDER.");
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct stat st = {0};
|
struct stat st = {0};
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (SDL_GetTicks()-current_ticks >= game::ticks_per_frame)
|
if (SDL_GetTicks()-current_ticks >= game::ticks_per_frame)
|
||||||
{
|
{
|
||||||
|
current_ticks = SDL_GetTicks();
|
||||||
if (!game::loop()) game::should_exit = true;
|
if (!game::loop()) game::should_exit = true;
|
||||||
input::updateKey(SDL_SCANCODE_UNKNOWN);
|
input::updateKey(SDL_SCANCODE_UNKNOWN);
|
||||||
input::updateKeypressed(SDL_SCANCODE_UNKNOWN);
|
input::updateKeypressed(SDL_SCANCODE_UNKNOWN);
|
||||||
@@ -79,7 +80,6 @@ int main(int argc, char *argv[])
|
|||||||
input::updateWheel(0);
|
input::updateWheel(0);
|
||||||
input::updatePadBtn(SDL_CONTROLLER_BUTTON_INVALID);
|
input::updatePadBtn(SDL_CONTROLLER_BUTTON_INVALID);
|
||||||
input::updatePadBtnPressed(SDL_CONTROLLER_BUTTON_INVALID);
|
input::updatePadBtnPressed(SDL_CONTROLLER_BUTTON_INVALID);
|
||||||
current_ticks = SDL_GetTicks();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,13 +16,17 @@ namespace modules
|
|||||||
|
|
||||||
void init()
|
void init()
|
||||||
{
|
{
|
||||||
audio::playMusic("mus_gameover.ogg", 0);
|
if (audio::getCurrentMusic() != "mus_gameover.ogg") audio::playMusic("mus_gameover.ogg", 0);
|
||||||
if (gat == nullptr) gat = actor::createFromTemplate("GAT-NEGRE");
|
gat = actor::createFromTemplate("GAT-BATMAN");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool loop()
|
bool loop()
|
||||||
{
|
{
|
||||||
if (controller::pressed(KEY_JUMP) || controller::pressed(KEY_PICK)) {
|
if (controller::pressed(KEY_JUMP) || controller::pressed(KEY_PICK))
|
||||||
|
{
|
||||||
|
if (gat) actor::remove(gat);
|
||||||
|
gat = nullptr;
|
||||||
|
audio::playMusic("mus_ingame.ogg");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ namespace modules
|
|||||||
|
|
||||||
void init(bool go_direct_to_credits)
|
void init(bool go_direct_to_credits)
|
||||||
{
|
{
|
||||||
|
audio::stopAllChannel();
|
||||||
stage = go_direct_to_credits ? 2 : 0;
|
stage = go_direct_to_credits ? 2 : 0;
|
||||||
time = SDL_GetTicks();
|
time = SDL_GetTicks();
|
||||||
if (go_direct_to_credits) time += 5000;
|
if (go_direct_to_credits) time += 5000;
|
||||||
@@ -55,7 +56,7 @@ namespace modules
|
|||||||
const bool shouldGoToNext()
|
const bool shouldGoToNext()
|
||||||
{
|
{
|
||||||
if (SDL_GetTicks()-time < 1000) return false;
|
if (SDL_GetTicks()-time < 1000) return false;
|
||||||
return (SDL_GetTicks()-time > (stage==15||stage==16?10000:5000)) ||
|
return ( (stage<16) && (SDL_GetTicks()-time > (stage==15?10000:5000)) ) ||
|
||||||
(controller::pressed(KEY_JUMP)) || (controller::pressed(KEY_PICK)) ||
|
(controller::pressed(KEY_JUMP)) || (controller::pressed(KEY_PICK)) ||
|
||||||
(input::keyPressed(SDL_SCANCODE_SPACE)) || (input::keyPressed(SDL_SCANCODE_RETURN));
|
(input::keyPressed(SDL_SCANCODE_SPACE)) || (input::keyPressed(SDL_SCANCODE_RETURN));
|
||||||
}
|
}
|
||||||
@@ -147,13 +148,19 @@ namespace modules
|
|||||||
draw::print2("GRACIES PER JUGAR!", 11, 9, PURPLE, FONT_ZOOM_VERTICAL);
|
draw::print2("GRACIES PER JUGAR!", 11, 9, PURPLE, FONT_ZOOM_VERTICAL);
|
||||||
|
|
||||||
draw::print2(actor::stats::getRoomsVisited(), 2, 8, 14, TEAL, FONT_ZOOM_NONE);
|
draw::print2(actor::stats::getRoomsVisited(), 2, 8, 14, TEAL, FONT_ZOOM_NONE);
|
||||||
draw::print2("HABITACIONS VISITADES", 11, 14, GREEN, FONT_ZOOM_NONE);
|
draw::print2("HABITACIONS VISITADES", 13, 14, GREEN, FONT_ZOOM_NONE);
|
||||||
|
|
||||||
draw::print2(actor::stats::getLivesLost(), 2, 11, 16, TEAL, FONT_ZOOM_NONE);
|
draw::print2(actor::stats::getLivesLost(), 2, 8, 16, TEAL, FONT_ZOOM_NONE);
|
||||||
draw::print2("VIDES PERDUDES", 14, 16, GREEN, FONT_ZOOM_NONE);
|
draw::print2("VIDES PERDUDES", 13, 16, GREEN, FONT_ZOOM_NONE);
|
||||||
|
|
||||||
draw::print2(time_text, 11, 18, TEAL, FONT_ZOOM_NONE);
|
draw::print2(time_text, 4, 18, TEAL, FONT_ZOOM_NONE);
|
||||||
draw::print2("TEMPS TOTAL", 18, 18, GREEN, FONT_ZOOM_NONE);
|
draw::print2("TEMPS TOTAL", 13, 18, GREEN, FONT_ZOOM_NONE);
|
||||||
|
|
||||||
|
if (actor::hero::getNumAmbernicsCollected()>0)
|
||||||
|
{
|
||||||
|
draw::print2(actor::hero::getNumAmbernicsCollected(), 2, 8, 20, TEAL, FONT_ZOOM_NONE);
|
||||||
|
draw::print2("ANBERNICS ARREPLEGADES", 13, 20, GREEN, FONT_ZOOM_NONE);
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -437,7 +437,7 @@ namespace modules
|
|||||||
draw::print2("c", 15, 26, col3, FONT_ZOOM_NONE);
|
draw::print2("c", 15, 26, col3, FONT_ZOOM_NONE);
|
||||||
|
|
||||||
draw::print2(actor::hero::getBoostJump(), 2, 8, 27, col3, FONT_ZOOM_NONE);
|
draw::print2(actor::hero::getBoostJump(), 2, 8, 27, col3, FONT_ZOOM_NONE);
|
||||||
draw::print2(actor::hero::getBoostGod()/2, 2, 11, 27, col1, FONT_ZOOM_NONE);
|
draw::print2(actor::hero::getBoostGod()/4, 2, 11, 27, col1, FONT_ZOOM_NONE);
|
||||||
draw::print2(actor::hero::getBoostRun()/2, 2, 14, 27, col2, FONT_ZOOM_NONE);
|
draw::print2(actor::hero::getBoostRun()/2, 2, 14, 27, col2, FONT_ZOOM_NONE);
|
||||||
|
|
||||||
draw::stencil::enable();
|
draw::stencil::enable();
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ namespace modules
|
|||||||
{
|
{
|
||||||
if (audio::getCurrentMusic() != "mus_gameover.ogg") audio::playMusic("mus_gameover.ogg", 0);
|
if (audio::getCurrentMusic() != "mus_gameover.ogg") audio::playMusic("mus_gameover.ogg", 0);
|
||||||
|
|
||||||
if (heroi) actor::remove(heroi);
|
|
||||||
if (actor::hero::isPrologo()) {
|
if (actor::hero::isPrologo()) {
|
||||||
heroi = actor::create("HERO", {16, 32, 0}, {6, 6, 8}, "gat.gif", {0, 0, 24, 28}, {-4, 32});
|
heroi = actor::create("HERO", {16, 32, 0}, {6, 6, 8}, "gat.gif", {0, 0, 24, 28}, {-4, 32});
|
||||||
} else {
|
} else {
|
||||||
@@ -43,13 +42,18 @@ namespace modules
|
|||||||
|
|
||||||
bool loop()
|
bool loop()
|
||||||
{
|
{
|
||||||
if (controller::pressed(KEY_JUMP) || controller::pressed(KEY_PICK)) { return false; }
|
if (controller::pressed(KEY_JUMP) || controller::pressed(KEY_PICK))
|
||||||
|
{
|
||||||
|
if (heroi) actor::remove(heroi);
|
||||||
|
heroi = nullptr;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
draw::cls(2);
|
draw::cls(2);
|
||||||
draw::color(1);
|
draw::color(1);
|
||||||
draw::swapcol(1, WHITE);
|
draw::swapcol(1, WHITE);
|
||||||
actor::update(heroi, false);
|
actor::update(heroi, false);
|
||||||
actor::drawAt(heroi, 150, 160);
|
actor::drawAt(heroi, 150, 176);
|
||||||
|
|
||||||
draw::print2("THE POOL", 16, 3, TEAL, FONT_ZOOM_VERTICAL);
|
draw::print2("THE POOL", 16, 3, TEAL, FONT_ZOOM_VERTICAL);
|
||||||
|
|
||||||
@@ -59,21 +63,27 @@ namespace modules
|
|||||||
{
|
{
|
||||||
int num_objectes = 0;
|
int num_objectes = 0;
|
||||||
for (int i=0;i<4;++i) if (actor::hero::getPrologoObjectState(i)==PROLOGO_OBJECT_LEFT) num_objectes++;
|
for (int i=0;i<4;++i) if (actor::hero::getPrologoObjectState(i)==PROLOGO_OBJECT_LEFT) num_objectes++;
|
||||||
draw::print2(num_objectes, 2, 11, 12, TEAL, FONT_ZOOM_NONE);
|
draw::print2(num_objectes, 2, 8, 12, TEAL, FONT_ZOOM_NONE);
|
||||||
draw::print2("OBJECTES DEJATS", 14, 12, GREEN, FONT_ZOOM_NONE);
|
draw::print2("OBJECTES DEJATS", 13, 12, GREEN, FONT_ZOOM_NONE);
|
||||||
} else {
|
} else {
|
||||||
draw::print2(actor::stats::getNumPartsCollected(), 2, 11, 12, TEAL, FONT_ZOOM_NONE);
|
draw::print2(actor::stats::getNumPartsCollected(), 2, 8, 12, TEAL, FONT_ZOOM_NONE);
|
||||||
draw::print2("PARTS TROBADES", 14, 12, GREEN, FONT_ZOOM_NONE);
|
draw::print2("PARTS TROBADES", 13, 12, GREEN, FONT_ZOOM_NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
draw::print2(actor::stats::getRoomsVisited(), 2, 8, 14, TEAL, FONT_ZOOM_NONE);
|
draw::print2(actor::stats::getRoomsVisited(), 2, 8, 14, TEAL, FONT_ZOOM_NONE);
|
||||||
draw::print2("HABITACIONS VISITADES", 11, 14, GREEN, FONT_ZOOM_NONE);
|
draw::print2("HABITACIONS VISITADES", 13, 14, GREEN, FONT_ZOOM_NONE);
|
||||||
|
|
||||||
draw::print2(actor::stats::getLivesLost(), 2, 11, 16, TEAL, FONT_ZOOM_NONE);
|
draw::print2(actor::stats::getLivesLost(), 2, 8, 16, TEAL, FONT_ZOOM_NONE);
|
||||||
draw::print2("VIDES PERDUDES", 14, 16, GREEN, FONT_ZOOM_NONE);
|
draw::print2("VIDES PERDUDES", 13, 16, GREEN, FONT_ZOOM_NONE);
|
||||||
|
|
||||||
draw::print2(time_text, 11, 18, TEAL, FONT_ZOOM_NONE);
|
draw::print2(time_text, 4, 18, TEAL, FONT_ZOOM_NONE);
|
||||||
draw::print2("TEMPS TOTAL", 18, 18, GREEN, FONT_ZOOM_NONE);
|
draw::print2("TEMPS TOTAL", 13, 18, GREEN, FONT_ZOOM_NONE);
|
||||||
|
|
||||||
|
if (actor::hero::getNumAmbernicsCollected()>0)
|
||||||
|
{
|
||||||
|
draw::print2(actor::hero::getNumAmbernicsCollected(), 2, 8, 20, TEAL, FONT_ZOOM_NONE);
|
||||||
|
draw::print2("ANBERNICS ARREPLEGADES", 13, 20, GREEN, FONT_ZOOM_NONE);
|
||||||
|
}
|
||||||
|
|
||||||
draw::print2("(C) JAILDOCTOR 2024", 11, 28, TEAL, FONT_ZOOM_NONE);
|
draw::print2("(C) JAILDOCTOR 2024", 11, 28, TEAL, FONT_ZOOM_NONE);
|
||||||
|
|
||||||
|
|||||||
@@ -76,9 +76,17 @@ namespace modules
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void cleanup()
|
||||||
|
{
|
||||||
|
for (int i=0; i<6; ++i) { actor::remove(parts[i]); parts[i]=nullptr;}
|
||||||
|
actor::remove(anbernic); anbernic=nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
int loop()
|
int loop()
|
||||||
{
|
{
|
||||||
if (controller::pressed(KEY_MENU)) {
|
if (controller::pressed(KEY_MENU))
|
||||||
|
{
|
||||||
|
cleanup();
|
||||||
return INGAME_CONTINUAR;
|
return INGAME_CONTINUAR;
|
||||||
}
|
}
|
||||||
if (controller::pressed(KEY_DOWN) || input::keyPressed(SDL_SCANCODE_DOWN))
|
if (controller::pressed(KEY_DOWN) || input::keyPressed(SDL_SCANCODE_DOWN))
|
||||||
@@ -94,11 +102,7 @@ namespace modules
|
|||||||
if (controller::pressed(KEY_JUMP) || controller::pressed(KEY_PICK) || input::keyPressed(SDL_SCANCODE_RETURN))
|
if (controller::pressed(KEY_JUMP) || controller::pressed(KEY_PICK) || input::keyPressed(SDL_SCANCODE_RETURN))
|
||||||
{
|
{
|
||||||
audio::playSound("snd_push.wav", SOUND_BASIC);
|
audio::playSound("snd_push.wav", SOUND_BASIC);
|
||||||
if (selected_option==INGAME_EIXIR)
|
cleanup();
|
||||||
{
|
|
||||||
for (int i=0; i<6; ++i) { actor::remove(parts[i]); parts[i]=nullptr;}
|
|
||||||
actor::remove(anbernic); anbernic=nullptr;
|
|
||||||
}
|
|
||||||
return selected_option;
|
return selected_option;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ namespace modules
|
|||||||
void init()
|
void init()
|
||||||
{
|
{
|
||||||
srand(SDL_GetTicks());
|
srand(SDL_GetTicks());
|
||||||
anys = draw::getSurface("25anys.gif");
|
anys = draw::getSurface("25anys.gif"); // getSurface() no crea res, així que no fa falta destruir ni fer res al eixir
|
||||||
num_pixels = 0;
|
num_pixels = 0;
|
||||||
draw::surface *surf = draw::getSurface("jailgames.gif");
|
draw::surface *surf = draw::getSurface("jailgames.gif");
|
||||||
for (int y=0; y<surf->h; ++y)
|
for (int y=0; y<surf->h; ++y)
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ namespace modules
|
|||||||
//draw::print2(input::getPadBtnPressed(), 3, 0, 24, RED, FONT_ZOOM_NONE);
|
//draw::print2(input::getPadBtnPressed(), 3, 0, 24, RED, FONT_ZOOM_NONE);
|
||||||
|
|
||||||
draw::print2("(C) JAILDOCTOR 2024", 11, 28, TEAL, FONT_ZOOM_NONE);
|
draw::print2("(C) JAILDOCTOR 2024", 11, 28, TEAL, FONT_ZOOM_NONE);
|
||||||
|
draw::print("v1.5b", 299, 233, WHITE, PAPER);
|
||||||
|
|
||||||
draw::render();
|
draw::render();
|
||||||
return OPTION_NONE;
|
return OPTION_NONE;
|
||||||
|
|||||||
@@ -104,9 +104,10 @@ void game::init()
|
|||||||
{
|
{
|
||||||
if (game::getParams(1) && strcmp(game::getParams(1), "editor")==0) editor::setDevMode();
|
if (game::getParams(1) && strcmp(game::getParams(1), "editor")==0) editor::setDevMode();
|
||||||
|
|
||||||
if (editor::isDevMode())
|
if (editor::isDevMode()) {
|
||||||
draw::init("The Pool", 520, 240, zoom);
|
draw::init("The Pool", 520, 240, zoom);
|
||||||
else {
|
SDL_ShowCursor(true);
|
||||||
|
} else {
|
||||||
loadConfig();
|
loadConfig();
|
||||||
draw::init("The Pool", 320, 240, zoom, fullscreen);
|
draw::init("The Pool", 320, 240, zoom, fullscreen);
|
||||||
console::init();
|
console::init();
|
||||||
|
|||||||
Reference in New Issue
Block a user