- [NEW] Boost de vida extra

This commit is contained in:
2024-07-24 20:13:41 +02:00
parent 7263242bd6
commit 3a51938d80
3 changed files with 30 additions and 27 deletions

View File

@@ -30,23 +30,15 @@ actor{
} }
actor{ actor{
name: NEVERA1 name: LIFT
bmp: caixes.gif bmp: caixes.gif
bmp-rect: 0 96 32 32 bmp-rect: 32 32 32 24
bmp-offset: 0 32 bmp-offset: 0 24
pos: 32 32 0 pos: 56 0 0
size: 8 8 8 size: 8 8 4
movement: CW orient: ZP
} flags: MOVING
movement: Z
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
} }
actor{ actor{
@@ -63,7 +55,7 @@ actor{
} }
actor{ actor{
name: B1-00 name: B8-00
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
@@ -102,13 +94,21 @@ actor{
} }
actor{ actor{
name: LIFT name: NEVERA1
bmp: caixes.gif bmp: caixes.gif
bmp-rect: 32 32 32 24 bmp-rect: 0 96 32 32
bmp-offset: 0 24 bmp-offset: 0 32
pos: 56 0 0 pos: 32 32 0
size: 8 8 4 size: 8 8 8
orient: ZP movement: CW
flags: MOVING }
movement: Z
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
} }

View File

@@ -1376,8 +1376,8 @@ namespace actor
const int getBoosterFromString(char *booster) const int getBoosterFromString(char *booster)
{ {
static const char *boostset_name[3] = {"RUN", "GOD", "JUMP"}; static const char *boostset_name[4] = {"RUN", "GOD", "JUMP", "LIVE"};
for (int i=0;i<3;++i) for (int i=0;i<4;++i)
{ {
if (strcmp(booster, boostset_name[i])==0) if (strcmp(booster, boostset_name[i])==0)
{ {
@@ -1395,6 +1395,7 @@ namespace actor
case BOOST_GOD: boost_god = 99*2; break; case BOOST_GOD: boost_god = 99*2; break;
case BOOST_RUN: boost_steps = 99*2; break; case BOOST_RUN: boost_steps = 99*2; break;
case BOOST_JUMP: boost_jumps = 10; break; case BOOST_JUMP: boost_jumps = 10; break;
case BOOST_LIVE: lives++; break;
} }
return value!=0; return value!=0;
} }
@@ -1407,6 +1408,7 @@ namespace actor
case BOOST_GOD: boost_god = 99*2; break; case BOOST_GOD: boost_god = 99*2; break;
case BOOST_RUN: boost_steps = 99*2; break; case BOOST_RUN: boost_steps = 99*2; break;
case BOOST_JUMP: boost_jumps = 10; break; case BOOST_JUMP: boost_jumps = 10; break;
case BOOST_LIVE: lives++; break;
} }
} }

View File

@@ -49,6 +49,7 @@
#define BOOST_RUN 1 #define BOOST_RUN 1
#define BOOST_GOD 2 #define BOOST_GOD 2
#define BOOST_JUMP 4 #define BOOST_JUMP 4
#define BOOST_LIVE 8
// Skills // Skills
#define SKILL_NONE 0 #define SKILL_NONE 0