static const byte is_amoeba[TILE_MAX] =
{
[Xfake_amoeba] = 1,
- [Xfake_amoebaB] = 1,
+ [Yfake_amoeba] = 1,
[Xamoeba_1] = 1,
[Xamoeba_2] = 1,
[Xamoeba_3] = 1,
switch (cave[x][y])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_6:
case Xfake_acid_7:
case Xfake_acid_8:
- case Zplayer:
case Xdynamite_1:
case Xdynamite_2:
case Xdynamite_3:
switch (cave[x][y-1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_8:
case Xplant:
case Yplant:
- case Zplayer:
cave[x][y] = Yeater_nB;
next[x][y] = Xblank;
cave[x][y-1] = Yeater_n;
switch (cave[x+1][y])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_8:
case Xplant:
case Yplant:
- case Zplayer:
cave[x][y] = Yeater_eB;
next[x][y] = Xblank;
cave[x+1][y] = Yeater_e;
switch (cave[x][y+1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_8:
case Xplant:
case Yplant:
- case Zplayer:
cave[x][y] = Yeater_sB;
next[x][y] = Xblank;
cave[x][y+1] = Yeater_s;
switch (cave[x-1][y])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_8:
case Xplant:
case Yplant:
- case Zplayer:
cave[x][y] = Yeater_wB;
next[x][y] = Xblank;
cave[x-1][y] = Yeater_w;
{
switch (cave[x][y-1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_8:
case Xplant:
case Yplant:
- case Zplayer:
cave[x][y] = Yalien_nB;
next[x][y] = Xblank;
cave[x][y-1] = Yalien_n;
{
switch (cave[x][y+1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_8:
case Xplant:
case Yplant:
- case Zplayer:
cave[x][y] = Yalien_sB;
next[x][y] = Xblank;
cave[x][y+1] = Yalien_s;
{
switch (cave[x+1][y])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_8:
case Xplant:
case Yplant:
- case Zplayer:
cave[x][y] = Yalien_eB;
next[x][y] = Xblank;
cave[x+1][y] = Yalien_e;
{
switch (cave[x-1][y])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_8:
case Xplant:
case Yplant:
- case Zplayer:
cave[x][y] = Yalien_wB;
next[x][y] = Xblank;
cave[x-1][y] = Yalien_w;
{
switch (cave[x][y-1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_8:
case Xplant:
case Yplant:
- case Zplayer:
cave[x][y] = Ybug_nB;
next[x][y] = Xblank;
cave[x][y-1] = Ybug_n;
switch (cave[x+1][y])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xacid_6:
case Xacid_7:
case Xacid_8:
- case Zplayer:
cave[x][y] = Ybug_n_e;
next[x][y] = Xbug_2_e;
play_element_sound(x, y, SOUND_bug, Xbug_1_n);
{
switch (cave[x+1][y])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_8:
case Xplant:
case Yplant:
- case Zplayer:
cave[x][y] = Ybug_eB;
next[x][y] = Xblank;
cave[x+1][y] = Ybug_e;
switch (cave[x][y+1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xacid_6:
case Xacid_7:
case Xacid_8:
- case Zplayer:
cave[x][y] = Ybug_e_s;
next[x][y] = Xbug_2_s;
play_element_sound(x, y, SOUND_bug, Xbug_1_e);
{
switch (cave[x][y+1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_8:
case Xplant:
case Yplant:
- case Zplayer:
cave[x][y] = Ybug_sB;
next[x][y] = Xblank;
cave[x][y+1] = Ybug_s;
switch (cave[x-1][y])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xacid_6:
case Xacid_7:
case Xacid_8:
- case Zplayer:
cave[x][y] = Ybug_s_w;
next[x][y] = Xbug_2_w;
play_element_sound(x, y, SOUND_bug, Xbug_1_s);
{
switch (cave[x-1][y])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_8:
case Xplant:
case Yplant:
- case Zplayer:
cave[x][y] = Ybug_wB;
next[x][y] = Xblank;
cave[x-1][y] = Ybug_w;
switch (cave[x][y-1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xacid_6:
case Xacid_7:
case Xacid_8:
- case Zplayer:
cave[x][y] = Ybug_w_n;
next[x][y] = Xbug_2_n;
play_element_sound(x, y, SOUND_bug, Xbug_1_w);
{
switch (cave[x][y-1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_8:
case Xplant:
case Yplant:
- case Zplayer:
cave[x][y] = Ytank_nB;
next[x][y] = Xblank;
cave[x][y-1] = Ytank_n;
switch (cave[x-1][y])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xacid_6:
case Xacid_7:
case Xacid_8:
- case Zplayer:
cave[x][y] = Ytank_n_w;
next[x][y] = Xtank_2_w;
play_element_sound(x, y, SOUND_tank, Xtank_1_n);
{
switch (cave[x+1][y])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_8:
case Xplant:
case Yplant:
- case Zplayer:
cave[x][y] = Ytank_eB;
next[x][y] = Xblank;
cave[x+1][y] = Ytank_e;
switch (cave[x][y-1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xacid_6:
case Xacid_7:
case Xacid_8:
- case Zplayer:
cave[x][y] = Ytank_e_n;
next[x][y] = Xtank_2_n;
play_element_sound(x, y, SOUND_tank, Xtank_1_e);
{
switch (cave[x][y+1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_8:
case Xplant:
case Yplant:
- case Zplayer:
cave[x][y] = Ytank_sB;
next[x][y] = Xblank;
cave[x][y+1] = Ytank_s;
switch (cave[x+1][y])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xacid_6:
case Xacid_7:
case Xacid_8:
- case Zplayer:
cave[x][y] = Ytank_s_e;
next[x][y] = Xtank_2_e;
play_element_sound(x, y, SOUND_tank, Xtank_1_s);
{
switch (cave[x-1][y])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_8:
case Xplant:
case Yplant:
- case Zplayer:
cave[x][y] = Ytank_wB;
next[x][y] = Xblank;
cave[x-1][y] = Ytank_w;
switch (cave[x][y+1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xacid_6:
case Xacid_7:
case Xacid_8:
- case Zplayer:
cave[x][y] = Ytank_w_s;
next[x][y] = Xtank_2_s;
play_element_sound(x, y, SOUND_tank, Xtank_1_w);
case Xwonderwall:
case Xswitch:
case Xbumper:
+ case Ybumper:
case Xacid_ne:
case Xacid_nw:
case Xslide_ns:
next[x][y] = Xblank;
cave[x+1][y] = Yemerald_e;
next[x+1][y] = Xemerald_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
next[x][y] = Xblank;
cave[x-1][y] = Yemerald_w;
next[x-1][y] = Xemerald_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
}
next[x][y] = Xblank;
cave[x-1][y] = Yemerald_w;
next[x-1][y] = Xemerald_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
next[x][y] = Xblank;
cave[x+1][y] = Yemerald_e;
next[x+1][y] = Xemerald_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
}
{
switch (cave[x][y+1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_6:
case Xfake_acid_7:
case Xfake_acid_8:
- case Zplayer:
cave[x][y] = Yemerald_sB;
next[x][y] = Xblank;
cave[x][y+1] = Yemerald_s;
case Xwonderwall:
case Xswitch:
case Xbumper:
+ case Ybumper:
case Xacid_ne:
case Xacid_nw:
case Xslide_ns:
next[x][y] = Xblank;
cave[x+1][y] = Ydiamond_e;
next[x+1][y] = Xdiamond_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
next[x][y] = Xblank;
cave[x-1][y] = Ydiamond_w;
next[x-1][y] = Xdiamond_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
}
next[x][y] = Xblank;
cave[x-1][y] = Ydiamond_w;
next[x-1][y] = Xdiamond_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
next[x][y] = Xblank;
cave[x+1][y] = Ydiamond_e;
next[x+1][y] = Xdiamond_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
}
{
switch (cave[x][y+1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_6:
case Xfake_acid_7:
case Xfake_acid_8:
- case Zplayer:
cave[x][y] = Ydiamond_sB;
next[x][y] = Xblank;
cave[x][y+1] = Ydiamond_s;
case Xball_2:
case Xswitch:
case Xbumper:
+ case Ybumper:
case Xacid_ne:
case Xacid_nw:
case Xlenses:
next[x][y] = Xblank;
cave[x+1][y] = Ystone_e;
next[x+1][y] = Xstone_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
next[x][y] = Xblank;
cave[x-1][y] = Ystone_w;
next[x-1][y] = Xstone_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
}
next[x][y] = Xblank;
cave[x-1][y] = Ystone_w;
next[x-1][y] = Xstone_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
next[x][y] = Xblank;
cave[x+1][y] = Ystone_e;
next[x+1][y] = Xstone_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
}
{
switch (cave[x][y+1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_6:
case Xfake_acid_7:
case Xfake_acid_8:
- case Zplayer:
cave[x][y] = Ystone_sB;
next[x][y] = Xblank;
cave[x][y+1] = Ystone_s;
case Xdiamond_pause:
switch (cave[x][y+2])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_6:
case Xfake_acid_7:
case Xfake_acid_8:
- case Zplayer:
case Xplant:
case Yplant:
case Xacid_1:
case Xball_2:
case Xswitch:
case Xbumper:
+ case Ybumper:
case Xacid_ne:
case Xacid_nw:
case Xslide_ns:
next[x][y] = Xblank;
cave[x+1][y] = Ybomb_e;
next[x+1][y] = Xbomb_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
next[x][y] = Xblank;
cave[x-1][y] = Ybomb_w;
next[x-1][y] = Xbomb_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
}
next[x][y] = Xblank;
cave[x-1][y] = Ybomb_w;
next[x-1][y] = Xbomb_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
next[x][y] = Xblank;
cave[x+1][y] = Ybomb_e;
next[x+1][y] = Xbomb_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
}
case Xball_2:
case Xswitch:
case Xbumper:
+ case Ybumper:
case Xacid_ne:
case Xacid_nw:
case Xslide_ns:
next[x][y] = Xblank;
cave[x+1][y] = Ynut_e;
next[x+1][y] = Xnut_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
next[x][y] = Xblank;
cave[x-1][y] = Ynut_w;
next[x-1][y] = Xnut_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
}
next[x][y] = Xblank;
cave[x-1][y] = Ynut_w;
next[x-1][y] = Xnut_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
next[x][y] = Xblank;
cave[x+1][y] = Ynut_e;
next[x+1][y] = Xnut_pause;
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
}
{
switch (cave[x][y+1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_6:
case Xfake_acid_7:
case Xfake_acid_8:
- case Zplayer:
cave[x][y] = Ynut_sB;
next[x][y] = Xblank;
cave[x][y+1] = Ynut_s;
case Xball_2:
case Xswitch:
case Xbumper:
+ case Ybumper:
case Xacid_ne:
case Xacid_nw:
case Xslide_ns:
cave[x][y] = Yspring_eB;
next[x][y] = Xblank;
cave[x+1][y] = Yspring_e;
- if (cave[x][y+1] == Xbumper)
- cave[x][y+1] = XbumperB;
-
#ifdef SPRING_ROLL
next[x+1][y] = Xspring_e;
#else
next[x+1][y] = Xspring_pause;
#endif
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
cave[x][y] = Yspring_wB;
next[x][y] = Xblank;
cave[x-1][y] = Yspring_w;
- if (cave[x][y+1] == Xbumper)
- cave[x][y+1] = XbumperB;
-
#ifdef SPRING_ROLL
next[x-1][y] = Xspring_w;
#else
next[x-1][y] = Xspring_pause;
#endif
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
}
cave[x][y] = Yspring_wB;
next[x][y] = Xblank;
cave[x-1][y] = Yspring_w;
- if (cave[x][y+1] == Xbumper)
- cave[x][y+1] = XbumperB;
-
#ifdef SPRING_ROLL
next[x-1][y] = Xspring_w;
#else
next[x-1][y] = Xspring_pause;
#endif
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
cave[x][y] = Yspring_eB;
next[x][y] = Xblank;
cave[x+1][y] = Yspring_e;
- if (cave[x][y+1] == Xbumper)
- cave[x][y+1] = XbumperB;
-
#ifdef SPRING_ROLL
next[x+1][y] = Xspring_e;
#else
next[x+1][y] = Xspring_pause;
#endif
+ if (cave[x][y+1] == Xbumper)
+ cave[x][y+1] = Ybumper;
return;
}
}
return;
case Xbumper:
- cave[x][y+1] = XbumperB;
+ cave[x][y+1] = Ybumper;
}
switch (cave[x+1][y])
return;
case Xbumper:
- case XbumperB:
- cave[x+1][y] = XbumperB;
+ case Ybumper:
+ cave[x+1][y] = Ybumper;
next[x][y] = Xspring_w;
play_element_sound(x, y, SOUND_spring, Xspring);
return;
return;
case Xbumper:
- cave[x][y+1] = XbumperB;
+ cave[x][y+1] = Ybumper;
}
switch (cave[x-1][y])
return;
case Xbumper:
- case XbumperB:
- cave[x-1][y] = XbumperB;
+ case Ybumper:
+ cave[x-1][y] = Ybumper;
next[x][y] = Xspring_e;
play_element_sound(x, y, SOUND_spring, Xspring);
return;
{
switch (cave[x][y+1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_6:
case Xfake_acid_7:
case Xfake_acid_8:
- case Zplayer:
cave[x][y] = Yspring_sB;
next[x][y] = Xblank;
cave[x][y+1] = Yspring_s;
{
switch (cave[x+1][y])
{
+ case Zplayer:
case Zborder:
case Znormal:
case Zdynamite:
case Xboom_bomb:
case Xboom_android:
case Xboom_1:
- case Zplayer:
cave[x][y] = Xemerald;
next[x][y] = Xemerald;
return;
{
switch (cave[x-1][y])
{
+ case Zplayer:
case Zborder:
case Znormal:
case Zdynamite:
case Xboom_bomb:
case Xboom_android:
case Xboom_1:
- case Zplayer:
cave[x][y] = Xemerald;
next[x][y] = Xemerald;
return;
{
switch (cave[x+1][y])
{
+ case Zplayer:
case Zborder:
case Znormal:
case Zdynamite:
case Xboom_bomb:
case Xboom_android:
case Xboom_1:
- case Zplayer:
cave[x][y] = Xdiamond;
next[x][y] = Xdiamond;
return;
{
switch (cave[x-1][y])
{
+ case Zplayer:
case Zborder:
case Znormal:
case Zdynamite:
case Xboom_bomb:
case Xboom_android:
case Xboom_1:
- case Zplayer:
cave[x][y] = Xdiamond;
next[x][y] = Xdiamond;
return;
{
switch (cave[x+1][y])
{
+ case Zplayer:
case Zborder:
case Znormal:
case Zdynamite:
case Xboom_bomb:
case Xboom_android:
case Xboom_1:
- case Zplayer:
cave[x][y] = Xstone;
next[x][y] = Xstone;
return;
{
switch (cave[x-1][y])
{
+ case Zplayer:
case Zborder:
case Znormal:
case Zdynamite:
case Xboom_bomb:
case Xboom_android:
case Xboom_1:
- case Zplayer:
cave[x][y] = Xstone;
next[x][y] = Xstone;
return;
{
switch (cave[x+1][y])
{
+ case Zplayer:
case Zborder:
case Znormal:
case Zdynamite:
case Xboom_bomb:
case Xboom_android:
case Xboom_1:
- case Zplayer:
cave[x][y] = Xbomb;
next[x][y] = Xbomb;
return;
{
switch (cave[x-1][y])
{
+ case Zplayer:
case Zborder:
case Znormal:
case Zdynamite:
case Xboom_bomb:
case Xboom_android:
case Xboom_1:
- case Zplayer:
cave[x][y] = Xbomb;
next[x][y] = Xbomb;
return;
{
switch (cave[x+1][y])
{
+ case Zplayer:
case Zborder:
case Znormal:
case Zdynamite:
case Xboom_bomb:
case Xboom_android:
case Xboom_1:
- case Zplayer:
cave[x][y] = Xnut;
next[x][y] = Xnut;
return;
{
switch (cave[x-1][y])
{
+ case Zplayer:
case Zborder:
case Znormal:
case Zdynamite:
case Xboom_bomb:
case Xboom_android:
case Xboom_1:
- case Zplayer:
cave[x][y] = Xnut;
next[x][y] = Xnut;
return;
{
switch (cave[x+1][y])
{
+ case Zplayer:
case Zborder:
case Znormal:
case Zdynamite:
case Xboom_bomb:
case Xboom_android:
case Xboom_1:
- case Zplayer:
cave[x][y] = Xspring;
next[x][y] = Xspring;
return;
{
switch (cave[x-1][y])
{
+ case Zplayer:
case Zborder:
case Znormal:
case Zdynamite:
case Xboom_bomb:
case Xboom_android:
case Xboom_1:
- case Zplayer:
cave[x][y] = Xspring;
next[x][y] = Xspring;
return;
switch (cave[x][y+1])
{
+ case Zplayer:
case Xblank:
case Xsplash_e:
case Xsplash_w:
case Xfake_acid_8:
case Xplant:
case Yplant:
- case Zplayer:
cave[x][y] = Ydrip_1_sB;
next[x][y] = Xdrip_stretchB;
cave[x][y+1] = Ydrip_1_s;
{
if (lev.wonderwall_time && lev.wonderwall_state)
{
- cave[x][y] = XwonderwallB;
+ cave[x][y] = Ywonderwall;
play_element_sound(x, y, SOUND_wonder, Xwonderwall);
}
}
static void Lwheel(int x, int y)
{
if (lev.wheel_cnt && x == lev.wheel_x && y == lev.wheel_y)
- cave[x][y] = XwheelB;
+ cave[x][y] = Ywheel;
}
static void Lswitch(int x, int y)
{
if (lev.ball_state)
- cave[x][y] = XswitchB;
+ cave[x][y] = Yswitch;
}
static void Lfake_blank(int x, int y)
{
if (lev.lenses_cnt)
- cave[x][y] = Xfake_blankB;
+ cave[x][y] = Yfake_blank;
}
static void Lfake_grass(int x, int y)
{
if (lev.magnify_cnt)
- cave[x][y] = Xfake_grassB;
+ cave[x][y] = Yfake_grass;
}
static void Lfake_amoeba(int x, int y)
{
if (lev.lenses_cnt)
- cave[x][y] = Xfake_amoebaB;
+ cave[x][y] = Yfake_amoeba;
}
static void Lsand_stone(int x, int y)