#define TEXT_CRACKING "Score for cracking"
#define TEXT_AMOEBA_SPEED "Speed of amoeba growth"
#define TEXT_DURATION "Duration when activated"
+#define TEXT_DELAY_ON "Delay before activating"
+#define TEXT_DELAY_OFF "Delay before deactivating"
+#define TEXT_DELAY_EXPLODING "Delay before exploding"
+#define TEXT_DELAY_MOVING "Delay before moving"
#define TEXT_BALL_DELAY "Element generation delay"
#define TEXT_MOVE_SPEED "Speed of android moving"
#define TEXT_CLONE_SPEED "Speed of android cloning"
{ EL_SPRING, &level.slurp_score, TEXT_SLURPING },
{ EL_EMC_LENSES, &level.lenses_time, TEXT_DURATION },
{ EL_EMC_MAGNIFIER, &level.magnify_time, TEXT_DURATION },
-#if 0
- /* defined, but currently not used in MM engine */
- { EL_MM_FUSE_ACTIVE, &level.mm_time_fuse, TEXT_DURATION },
-#endif
+ { EL_MM_FUSE_ACTIVE, &level.mm_time_fuse, TEXT_DELAY_OFF },
+ { EL_MM_BOMB, &level.mm_time_bomb, TEXT_DELAY_EXPLODING },
+ { EL_MM_GRAY_BALL, &level.mm_time_ball, TEXT_DELAY_ON },
+ { EL_MM_STEEL_BLOCK, &level.mm_time_block, TEXT_DELAY_MOVING },
+ { EL_MM_WOODEN_BLOCK, &level.mm_time_block, TEXT_DELAY_MOVING },
{ -1, NULL, NULL }
};
},
{
- EL_MM_FUSE, -1,
+ EL_MM_FUSE_ACTIVE, -1,
TYPE_INTEGER, CONF_VALUE_16_BIT(1),
- &li.mm_time_fuse, 0
+ &li.mm_time_fuse, 25
+ },
+ {
+ EL_MM_BOMB, -1,
+ TYPE_INTEGER, CONF_VALUE_16_BIT(1),
+ &li.mm_time_bomb, 75
+ },
+ {
+ EL_MM_GRAY_BALL, -1,
+ TYPE_INTEGER, CONF_VALUE_16_BIT(1),
+ &li.mm_time_ball, 75
+ },
+ {
+ EL_MM_STEEL_BLOCK, -1,
+ TYPE_INTEGER, CONF_VALUE_16_BIT(1),
+ &li.mm_time_block, 75
},
{
EL_MM_LIGHTBALL, -1,
level_mm->score[SC_ELEM_BONUS] = level->score[SC_ELEM_BONUS];
level_mm->amoeba_speed = level->amoeba_speed;
- level_mm->time_fuse = level->mm_time_fuse;
+ level_mm->time_fuse = level->mm_time_fuse;
+ level_mm->time_bomb = level->mm_time_bomb;
+ level_mm->time_ball = level->mm_time_ball;
+ level_mm->time_block = level->mm_time_block;
for (x = 0; x < level->fieldx; x++)
for (y = 0; y < level->fieldy; y++)
level->score[SC_TIME_BONUS] = level_mm->score[SC_TIME_BONUS];
level->score[SC_ELEM_BONUS] = level_mm->score[SC_ELEM_BONUS];
- level->amoeba_speed = level_mm->amoeba_speed;
- level->mm_time_fuse = level_mm->time_fuse;
+ level->amoeba_speed = level_mm->amoeba_speed;
+ level->mm_time_fuse = level_mm->time_fuse;
+ level->mm_time_bomb = level_mm->time_bomb;
+ level->mm_time_ball = level_mm->time_ball;
+ level->mm_time_block = level_mm->time_block;
for (x = 0; x < level->fieldx; x++)
for (y = 0; y < level->fieldy; y++)
int score[MM_LEVEL_SCORE_ELEMENTS];
int amoeba_speed;
int time_fuse;
+ int time_bomb;
+ int time_ball;
+ int time_block;
short field[MAX_PLAYFIELD_WIDTH][MAX_PLAYFIELD_HEIGHT];
};
native_mm_level.kettles_needed = 0;
native_mm_level.auto_count_kettles = TRUE;
native_mm_level.amoeba_speed = 0;
- native_mm_level.time_fuse = 0;
+ native_mm_level.time_fuse = 25;
+ native_mm_level.time_bomb = 75;
+ native_mm_level.time_ball = 75;
+ native_mm_level.time_block = 75;
native_mm_level.laser_red = FALSE;
native_mm_level.laser_green = FALSE;
native_mm_level.laser_blue = TRUE;
level->amoeba_speed = getFile8Bit(file);
level->time_fuse = getFile8Bit(file);
+ // fuse time was 0 and hardcoded in game engine in level files up to 2.0.x
+ if (level->file_version <= MM_FILE_VERSION_2_0)
+ level->time_fuse = 25;
+
laser_color = getFile8Bit(file);
level->laser_red = (laser_color >> 2) & 0x01;
level->laser_green = (laser_color >> 1) & 0x01;
CT -= Ct;
- if (element == EL_BOMB && CT > 75)
+ if (element == EL_BOMB && CT > native_mm_level.time_bomb)
{
if (game_mm.cheat_no_explosion)
return;
return;
}
- if (element == EL_FUSE_ON && CT > 25)
+ if (element == EL_FUSE_ON && CT > native_mm_level.time_fuse)
{
laser.fuse_off = TRUE;
laser.fuse_x = ELX;
DrawGraphic_MM(ELX, ELY, IMG_MM_FUSE);
}
- if (element == EL_BALL_GRAY && CT > 75)
+ if (element == EL_BALL_GRAY && CT > native_mm_level.time_ball)
{
static int new_elements[] =
{
}
if ((element == EL_BLOCK_WOOD || element == EL_BLOCK_STONE) &&
- laser.stops_inside_element && CT > 75)
+ laser.stops_inside_element && CT > native_mm_level.time_block)
{
int x, y;
int k;
boolean mm_laser_red, mm_laser_green, mm_laser_blue;
boolean df_laser_red, df_laser_green, df_laser_blue;
int mm_time_fuse;
+ int mm_time_bomb;
+ int mm_time_ball;
+ int mm_time_block;
/* ('int' instead of 'boolean' because used as selectbox value in editor) */
int use_step_counter; /* count steps instead of seconds for level */