- Comencem amb les habitacions definitives

This commit is contained in:
2024-07-29 07:01:05 +02:00
parent 1f9f19e715
commit 0a24e2b3fe
15 changed files with 262 additions and 136 deletions

57
data/old_rooms/00.txt Normal file
View File

@@ -0,0 +1,57 @@
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
}

112
data/old_rooms/01.txt Normal file
View File

@@ -0,0 +1,112 @@
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
}

View File

@@ -1,57 +1,79 @@
width: 2 width: 3
height: 1 height: 1
door-height-xp: 1 door-height-xp: 0
door-height-xn: 1
color: CYAN color: CYAN
floor-texture: 0 floor-texture: 0
wall-texture: 2 wall-texture: 2
door-texture: 0 door-texture: 0
under-door-texture: 0 under-door-texture: 0
exit-xp: 5 exit-xp: 1
exit-xn: 1
exit-zn: 2
actor{ actor{
name: PLATFORM02 name: MESITA
bmp: test.gif bmp: caixes.gif
bmp-rect: 64 0 32 24 bmp-rect: 0 64 32 32
bmp-offset: 0 24 bmp-offset: 0 32
pos: 16 20 0 pos: 0 16 0
size: 8 8 4 size: 8 8 4
movement: CW
} }
actor{ actor{
name: PLATFORM00 name: FINESTRA01
bmp: test.gif bmp: altres.gif
bmp-rect: 64 0 32 24 bmp-rect: 0 75 20 33
bmp-offset: 0 24 bmp-offset: 0 39
pos: 8 28 0 pos: 0 23 6
size: 8 8 4 size: 1 1 9
movement: CW
} }
actor{ actor{
name: PLATFORM01 name: FINESTRA
bmp: test.gif bmp: altres.gif
bmp-rect: 64 0 32 24 bmp-rect: 0 75 20 33
bmp-offset: 0 24 bmp-offset: 0 39
pos: 16 28 0 pos: 0 30 6
size: 8 8 4 size: 1 1 9
movement: CW
} }
actor{ actor{
name: PLATFORM04 name: LAMPARA
bmp: test.gif bmp: altres.gif
bmp-rect: 64 0 32 24 bmp-rect: 128 0 20 41
bmp-offset: 0 24 bmp-offset: -6 45
pos: 40 28 0 pos: 1 41 0
size: 8 8 4 size: 6 6 16
movement: CW
} }
actor{ actor{
name: PLATFORM03 name: LLIT
bmp: test.gif bmp: altres.gif
bmp-rect: 64 0 32 24 bmp-rect: 48 0 57 47
bmp-offset: 0 24 bmp-offset: 11 32
pos: 48 28 0 pos: 8 16 0
size: 8 8 4 size: 16 16 4
movement: CW
}
actor{
name: MESITA01
bmp: caixes.gif
bmp-rect: 0 64 32 32
bmp-offset: 0 32
pos: 24 16 0
size: 8 8 4
movement: CW
}
actor{
name: MANCUERNA
bmp: altres.gif
bmp-rect: 106 33 17 14
bmp-offset: -6 20
pos: 24 25 0
size: 6 4 2
movement: CW
} }

View File

@@ -1,112 +1,35 @@
width: 2 width: 3
height: 2 height: 0
door-height-xp: 0 door-height-xp: 0
door-height-xn: 0
door-height-yp: 0 door-height-yp: 0
color: CYAN color: WHITE
floor-texture: 9 floor-texture: 0
wall-texture: 3 wall-texture: 2
door-texture: 1 door-texture: 0
under-door-texture: 0 under-door-texture: 0
exit-xp: 0 exit-xn: 0
exit-yp: 3
actor{ actor{
name: ARMARI01 name: CUADRO
bmp: caixes.gif bmp: altres.gif
bmp-rect: 64 32 24 32 bmp-rect: 102 75 18 32
bmp-offset: -8 36 bmp-offset: 0 39
pos: 8 8 0 pos: 18 23 6
size: 8 4 5 size: 1 1 9
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 orient: YP
flags: ORIENTABLE flags: ORIENTABLE
movement: CW movement: CW
} }
actor{ actor{
name: TAULA02 name: CUADRO01
bmp: caixes.gif bmp: altres.gif
bmp-rect: 160 32 32 32 bmp-rect: 66 75 18 32
bmp-offset: 0 32 bmp-offset: 0 39
pos: 8 32 0 pos: 42 23 6
size: 8 8 8 size: 1 1 9
orient: YP orient: YP
flags: ORIENTABLE flags: ORIENTABLE
movement: CW 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
}

View File

@@ -172,9 +172,9 @@ actor{
name: LLIT name: LLIT
bmp: altres.gif bmp: altres.gif
bmp-rect: 48 0 57 47 bmp-rect: 48 0 57 47
bmp-offset: 12 33 bmp-offset: 11 32
pos: 16 0 0 pos: 8 8 0
size: 16 16 6 size: 16 16 8
movement: CW movement: CW
} }
@@ -221,3 +221,15 @@ actor{
flags: ANIMATED flags: ANIMATED
movement: CW movement: CW
} }
actor{
name: CUADRO
bmp: altres.gif
bmp-rect: 66 75 18 32
bmp-offset: 0 39
pos: 14 23 6
size: 1 1 9
orient: YP
flags: ORIENTABLE
movement: CW
}

View File

@@ -7,7 +7,7 @@
namespace room namespace room
{ {
static int current_room = 1; static int current_room = 0;
static int inner_w = 2; static int inner_w = 2;
static int inner_h = 2; static int inner_h = 2;