play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
- case Xspring:
- case Xspring_pause:
- case Xspring_e:
- case Xspring_w:
case Xandroid:
case Xandroid_1_n:
case Xandroid_2_n:
case Xandroid_2_s:
case Xandroid_1_w:
case Xandroid_2_w:
- case Xstone:
- case Xstone_pause:
case Xemerald:
case Xemerald_pause:
case Xdiamond:
case Xdiamond_pause:
+ case Xstone:
+ case Xstone_pause:
case Xbomb:
case Xbomb_pause:
- case Xballoon:
- case Xacid_ne:
- case Xacid_nw:
- case Xball_1:
- case Xball_2:
case Xnut:
case Xnut_pause:
- case Xslide_ns:
- case Xslide_ew:
- case Xwonderwall:
+ case Xspring:
+ case Xspring_pause:
+ case Xspring_e:
+ case Xspring_w:
case Xkey_1:
case Xkey_2:
case Xkey_3:
case Xkey_6:
case Xkey_7:
case Xkey_8:
- case Xbumper:
+ case Xballoon:
+ case Xball_1:
+ case Xball_2:
+ case Xwonderwall:
case Xswitch:
- case Xsteel_1:
- case Xsteel_2:
- case Xsteel_3:
- case Xsteel_4:
+ case Xbumper:
+ case Xacid_ne:
+ case Xacid_nw:
+ case Xslide_ns:
+ case Xslide_ew:
case Xwall_1:
case Xwall_2:
case Xwall_3:
case Xroundwall_2:
case Xroundwall_3:
case Xroundwall_4:
+ case Xsteel_1:
+ case Xsteel_2:
+ case Xsteel_3:
+ case Xsteel_4:
if (RANDOM(2))
{
if (is_blank[cave[x+1][y]] && is_blank_or_acid[cave[x+1][y+1]])
{
lev.wonderwall_state = 1;
cave[x][y] = Yemerald_sB;
+ next[x][y] = Xblank;
if (is_blank[cave[x][y+2]])
{
cave[x][y+2] = Ydiamond_s;
next[x][y+2] = Xdiamond_fall;
}
-
- next[x][y] = Xblank;
play_element_sound(x, y, SOUND_wonderfall, Xwonderwall);
return;
}
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
- case Xspring:
- case Xspring_pause:
- case Xspring_e:
- case Xspring_w:
case Xandroid:
case Xandroid_1_n:
case Xandroid_2_n:
case Xandroid_2_s:
case Xandroid_1_w:
case Xandroid_2_w:
- case Xstone:
- case Xstone_pause:
case Xemerald:
case Xemerald_pause:
case Xdiamond:
case Xdiamond_pause:
+ case Xstone:
+ case Xstone_pause:
case Xbomb:
case Xbomb_pause:
- case Xballoon:
- case Xacid_ne:
- case Xacid_nw:
- case Xball_1:
- case Xball_2:
case Xnut:
case Xnut_pause:
- case Xslide_ns:
- case Xslide_ew:
- case Xwonderwall:
+ case Xspring:
+ case Xspring_pause:
+ case Xspring_e:
+ case Xspring_w:
case Xkey_1:
case Xkey_2:
case Xkey_3:
case Xkey_6:
case Xkey_7:
case Xkey_8:
- case Xbumper:
+ case Xballoon:
+ case Xball_1:
+ case Xball_2:
+ case Xwonderwall:
case Xswitch:
- case Xsteel_1:
- case Xsteel_2:
- case Xsteel_3:
- case Xsteel_4:
+ case Xbumper:
+ case Xacid_ne:
+ case Xacid_nw:
+ case Xslide_ns:
+ case Xslide_ew:
case Xwall_1:
case Xwall_2:
case Xwall_3:
case Xroundwall_2:
case Xroundwall_3:
case Xroundwall_4:
+ case Xsteel_1:
+ case Xsteel_2:
+ case Xsteel_3:
+ case Xsteel_4:
if (RANDOM(2))
{
if (is_blank[cave[x+1][y]] && is_blank_or_acid[cave[x+1][y+1]])
{
lev.wonderwall_state = 1;
cave[x][y] = Ydiamond_sB;
+ next[x][y] = Xblank;
if (is_blank[cave[x][y+2]])
{
cave[x][y+2] = Ystone_s;
next[x][y+2] = Xstone_fall;
}
-
- next[x][y] = Xblank;
play_element_sound(x, y, SOUND_wonderfall, Xwonderwall);
return;
}
next[x][y+1] = Xsand_sandstone_2;
return;
- case Xspring:
- case Xspring_pause:
- case Xspring_e:
- case Xspring_w:
case Xandroid:
case Xandroid_1_n:
case Xandroid_2_n:
case Xandroid_2_s:
case Xandroid_1_w:
case Xandroid_2_w:
- case Xstone:
- case Xstone_pause:
case Xemerald:
case Xemerald_pause:
case Xdiamond:
case Xdiamond_pause:
+ case Xstone:
+ case Xstone_pause:
case Xbomb:
case Xbomb_pause:
- case Xballoon:
- case Xacid_ne:
- case Xacid_nw:
- case Xball_1:
- case Xball_2:
case Xnut:
case Xnut_pause:
- case Xslide_ns:
- case Xslide_ew:
+ case Xspring:
+ case Xspring_pause:
+ case Xspring_e:
+ case Xspring_w:
case Xkey_1:
case Xkey_2:
case Xkey_3:
case Xkey_6:
case Xkey_7:
case Xkey_8:
- case Xbumper:
+ case Xballoon:
+ case Xball_1:
+ case Xball_2:
case Xswitch:
+ case Xbumper:
+ case Xacid_ne:
+ case Xacid_nw:
case Xlenses:
case Xmagnify:
+ case Xslide_ns:
+ case Xslide_ew:
case Xroundwall_1:
case Xroundwall_2:
case Xroundwall_3:
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
- case Xnut:
- case Xnut_pause:
- next[x][y] = Xstone;
- cave[x][y+1] = Ynut_stone;
- next[x][y+1] = Xemerald;
- play_element_sound(x, y, SOUND_crack, Xnut);
- score += lev.nut_score;
+ case Xeater_n:
+ case Xeater_e:
+ case Xeater_s:
+ case Xeater_w:
+ cave[x][y] = Ystone_sB;
+ cave[x][y+1] = Yeater_stone;
+ Lboom_eater(x, y+1, Xstone_fall);
+ score += lev.eater_score;
+ return;
+
+ case Xalien:
+ case Xalien_pause:
+ cave[x][y] = Ystone_sB;
+ cave[x][y+1] = Yalien_stone;
+ Lboom_tank(x, y+1, Xstone_fall);
+ score += lev.alien_score;
return;
case Xbug_1_n:
score += lev.tank_score;
return;
- case Xspring:
- if (RANDOM(2))
- {
- switch (cave[x+1][y+1])
- {
- case Xblank:
- case Xsplash_e:
- case Xsplash_w:
- case Xfake_acid_1:
- case Xfake_acid_2:
- case Xfake_acid_3:
- case Xfake_acid_4:
- case Xfake_acid_5:
- case Xfake_acid_6:
- case Xfake_acid_7:
- case Xfake_acid_8:
- case Xalien:
- case Xalien_pause:
- cave[x][y+1] = Xspring_e;
- break;
-
- default:
- cave[x][y+1] = Xspring_w;
- break;
- }
- }
- else
- {
- switch (cave[x-1][y+1])
- {
- case Xblank:
- case Xsplash_e:
- case Xsplash_w:
- case Xfake_acid_1:
- case Xfake_acid_2:
- case Xfake_acid_3:
- case Xfake_acid_4:
- case Xfake_acid_5:
- case Xfake_acid_6:
- case Xfake_acid_7:
- case Xfake_acid_8:
- case Xalien:
- case Xalien_pause:
- cave[x][y+1] = Xspring_w;
- break;
- default:
- cave[x][y+1] = Xspring_e;
- break;
- }
- }
-
- next[x][y] = Xstone;
- return;
-
- case Xeater_n:
- case Xeater_e:
- case Xeater_s:
- case Xeater_w:
- cave[x][y] = Ystone_sB;
- cave[x][y+1] = Yeater_stone;
- Lboom_eater(x, y+1, Xstone_fall);
- score += lev.eater_score;
- return;
-
- case Xalien:
- case Xalien_pause:
- cave[x][y] = Ystone_sB;
- cave[x][y+1] = Yalien_stone;
- Lboom_tank(x, y+1, Xstone_fall);
- score += lev.alien_score;
- return;
-
case Xdiamond:
case Xdiamond_pause:
switch (cave[x][y+2])
case Xfake_acid_7:
case Xfake_acid_8:
case Zplayer:
+ case Xplant:
+ case Yplant:
+ case Xacid_1:
+ case Xacid_2:
+ case Xacid_3:
+ case Xacid_4:
+ case Xacid_5:
+ case Xacid_6:
+ case Xacid_7:
+ case Xacid_8:
+ case Xandroid:
+ case Xandroid_1_n:
+ case Xandroid_2_n:
+ case Xandroid_1_e:
+ case Xandroid_2_e:
+ case Xandroid_1_s:
+ case Xandroid_2_s:
+ case Xandroid_1_w:
+ case Xandroid_2_w:
case Xbug_1_n:
case Xbug_1_e:
case Xbug_1_s:
case Xtank_2_e:
case Xtank_2_s:
case Xtank_2_w:
- case Xspring_fall:
- case Xandroid:
- case Xandroid_1_n:
- case Xandroid_2_n:
- case Xandroid_1_e:
- case Xandroid_2_e:
- case Xandroid_1_s:
- case Xandroid_2_s:
- case Xandroid_1_w:
- case Xandroid_2_w:
- case Xstone_fall:
case Xemerald_fall:
case Xdiamond_fall:
+ case Xstone_fall:
case Xbomb_fall:
- case Xacid_s:
- case Xacid_1:
- case Xacid_2:
- case Xacid_3:
- case Xacid_4:
- case Xacid_5:
- case Xacid_6:
- case Xacid_7:
- case Xacid_8:
case Xnut_fall:
- case Xplant:
- case Yplant:
+ case Xspring_fall:
+ case Xacid_s:
next[x][y] = Xstone;
play_element_sound(x, y, SOUND_stone, Xstone);
return;
Lboom_tank(x, y+1, Xstone_fall);
return;
+ case Xnut:
+ case Xnut_pause:
+ next[x][y] = Xstone;
+ cave[x][y+1] = Ynut_stone;
+ next[x][y+1] = Xemerald;
+ play_element_sound(x, y, SOUND_crack, Xnut);
+ score += lev.nut_score;
+ return;
+
+ case Xspring:
+ if (RANDOM(2))
+ {
+ switch (cave[x+1][y+1])
+ {
+ case Xblank:
+ case Xsplash_e:
+ case Xsplash_w:
+ case Xfake_acid_1:
+ case Xfake_acid_2:
+ case Xfake_acid_3:
+ case Xfake_acid_4:
+ case Xfake_acid_5:
+ case Xfake_acid_6:
+ case Xfake_acid_7:
+ case Xfake_acid_8:
+ case Xalien:
+ case Xalien_pause:
+ cave[x][y+1] = Xspring_e;
+ break;
+
+ default:
+ cave[x][y+1] = Xspring_w;
+ break;
+ }
+ }
+ else
+ {
+ switch (cave[x-1][y+1])
+ {
+ case Xblank:
+ case Xsplash_e:
+ case Xsplash_w:
+ case Xfake_acid_1:
+ case Xfake_acid_2:
+ case Xfake_acid_3:
+ case Xfake_acid_4:
+ case Xfake_acid_5:
+ case Xfake_acid_6:
+ case Xfake_acid_7:
+ case Xfake_acid_8:
+ case Xalien:
+ case Xalien_pause:
+ cave[x][y+1] = Xspring_w;
+ break;
+ default:
+ cave[x][y+1] = Xspring_e;
+ break;
+ }
+ }
+
+ next[x][y] = Xstone;
+ return;
+
case Xwonderwall:
if (lev.wonderwall_time)
{
lev.wonderwall_state = 1;
cave[x][y] = Ystone_sB;
-
+ next[x][y] = Xblank;
if (is_blank[cave[x][y+2]])
{
cave[x][y+2] = Yemerald_s;
next[x][y+2] = Xemerald_fall;
}
-
- next[x][y] = Xblank;
play_element_sound(x, y, SOUND_wonderfall, Xwonderwall);
return;
}
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
- case Xspring:
- case Xspring_pause:
- case Xspring_e:
- case Xspring_w:
case Xandroid:
case Xandroid_1_n:
case Xandroid_2_n:
case Xandroid_2_s:
case Xandroid_1_w:
case Xandroid_2_w:
- case Xstone:
- case Xstone_pause:
case Xemerald:
case Xemerald_pause:
case Xdiamond:
case Xdiamond_pause:
+ case Xstone:
+ case Xstone_pause:
case Xbomb:
case Xbomb_pause:
- case Xballoon:
- case Xacid_ne:
- case Xacid_nw:
- case Xball_1:
- case Xball_2:
case Xnut:
case Xnut_pause:
- case Xslide_ns:
- case Xslide_ew:
+ case Xspring:
+ case Xspring_pause:
+ case Xspring_e:
+ case Xspring_w:
case Xkey_1:
case Xkey_2:
case Xkey_3:
case Xkey_6:
case Xkey_7:
case Xkey_8:
- case Xbumper:
+ case Xballoon:
+ case Xball_1:
+ case Xball_2:
case Xswitch:
+ case Xbumper:
+ case Xacid_ne:
+ case Xacid_nw:
+ case Xslide_ns:
+ case Xslide_ew:
case Xroundwall_1:
case Xroundwall_2:
case Xroundwall_3:
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
- case Xspring:
- case Xspring_pause:
- case Xspring_e:
- case Xspring_w:
case Xandroid:
case Xandroid_1_n:
case Xandroid_2_n:
case Xandroid_2_s:
case Xandroid_1_w:
case Xandroid_2_w:
- case Xstone:
- case Xstone_pause:
case Xemerald:
case Xemerald_pause:
case Xdiamond:
case Xdiamond_pause:
+ case Xstone:
+ case Xstone_pause:
case Xbomb:
case Xbomb_pause:
- case Xballoon:
- case Xacid_ne:
- case Xacid_nw:
- case Xball_1:
- case Xball_2:
case Xnut:
case Xnut_pause:
- case Xslide_ns:
- case Xslide_ew:
+ case Xspring:
+ case Xspring_pause:
+ case Xspring_e:
+ case Xspring_w:
case Xkey_1:
case Xkey_2:
case Xkey_3:
case Xkey_6:
case Xkey_7:
case Xkey_8:
- case Xbumper:
+ case Xballoon:
+ case Xball_1:
+ case Xball_2:
case Xswitch:
+ case Xbumper:
+ case Xacid_ne:
+ case Xacid_nw:
+ case Xslide_ns:
+ case Xslide_ew:
case Xroundwall_1:
case Xroundwall_2:
case Xroundwall_3:
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
- case Xspring:
- case Xspring_pause:
- case Xspring_e:
- case Xspring_w:
case Xandroid:
case Xandroid_1_n:
case Xandroid_2_n:
case Xandroid_2_s:
case Xandroid_1_w:
case Xandroid_2_w:
- case Xstone:
- case Xstone_pause:
case Xemerald:
case Xemerald_pause:
case Xdiamond:
case Xdiamond_pause:
+ case Xstone:
+ case Xstone_pause:
case Xbomb:
case Xbomb_pause:
- case Xballoon:
- case Xacid_ne:
- case Xacid_nw:
- case Xball_1:
- case Xball_2:
case Xnut:
case Xnut_pause:
- case Xslide_ns:
- case Xslide_ew:
+ case Xspring:
+ case Xspring_pause:
+ case Xspring_e:
+ case Xspring_w:
case Xkey_1:
case Xkey_2:
case Xkey_3:
case Xkey_6:
case Xkey_7:
case Xkey_8:
- case Xbumper:
+ case Xballoon:
+ case Xball_1:
+ case Xball_2:
case Xswitch:
+ case Xbumper:
+ case Xacid_ne:
+ case Xacid_nw:
+ case Xslide_ns:
+ case Xslide_ew:
case Xroundwall_1:
case Xroundwall_2:
case Xroundwall_3:
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
- case Xbomb:
- case Xbomb_pause:
- cave[x][y+1] = Ybomb_blank;
+ case Xeater_n:
+ case Xeater_e:
+ case Xeater_s:
+ case Xeater_w:
+ cave[x][y] = Yspring_sB;
+ cave[x][y+1] = Yeater_spring;
+ Lboom_eater(x, y+1, Xspring_fall);
+ score += lev.eater_score;
+ return;
+
+ case Xalien:
+ case Xalien_pause:
+ cave[x][y] = Yspring_sB;
+ cave[x][y+1] = Yalien_spring;
Lboom_tank(x, y+1, Xspring_fall);
+ score += lev.alien_score;
return;
case Xbug_1_n:
score += lev.tank_score;
return;
- case Xeater_n:
- case Xeater_e:
- case Xeater_s:
- case Xeater_w:
- cave[x][y] = Yspring_sB;
- cave[x][y+1] = Yeater_spring;
- Lboom_eater(x, y+1, Xspring_fall);
- score += lev.eater_score;
- return;
-
- case Xalien:
- case Xalien_pause:
- cave[x][y] = Yspring_sB;
- cave[x][y+1] = Yalien_spring;
+ case Xbomb:
+ case Xbomb_pause:
+ cave[x][y+1] = Ybomb_blank;
Lboom_tank(x, y+1, Xspring_fall);
- score += lev.alien_score;
return;
default:
case Xfake_acid_6:
case Xfake_acid_7:
case Xfake_acid_8:
+ case Xplant:
+ case Yplant:
case Xgrass:
case Xdirt:
case Xsand:
- case Xplant:
- case Yplant:
if (is_amoeba[cave[x][y-1]] ||
is_amoeba[cave[x+1][y]] ||
is_amoeba[cave[x][y+1]] ||
case Xacid_6:
case Xacid_7:
case Xacid_8:
- case Xacid_ne:
- case Xacid_nw:
- case Xacid_s:
- case Xacid_se:
- case Xacid_sw:
case Xplant:
case Yplant:
case Xdoor_1:
case Xfake_door_6:
case Xfake_door_7:
case Xfake_door_8:
+ case Xacid_ne:
+ case Xacid_nw:
+ case Xacid_s:
+ case Xacid_se:
+ case Xacid_sw:
case Xsteel_1:
case Xsteel_2:
case Xsteel_3: