if (temp & 2048)
{
lev.android_array[Xfake_amoeba] = Xdrip;
- lev.android_array[Xfake_amoebaB] = Xdrip;
+ lev.android_array[Yfake_amoeba] = Xdrip;
lev.android_array[Xamoeba_1] = Xdrip;
lev.android_array[Xamoeba_2] = Xdrip;
lev.android_array[Xamoeba_3] = Xdrip;
/*
-----------------------------------------------------------------------------
definition of elements used in the Emerald Mine Club engine;
- the element names have the following properties:
+ the element names (mostly) have the following properties:
- elements that start with 'X' can be stored in a level file
- - elements that start with 'Y' indicate moving elements
+ - elements that start with 'Y' indicate moving or active elements
- elements that end with 'B' are the "backside" of moving elements
-----------------------------------------------------------------------------
*/
Ydrip_2_sB,
Xwonderwall,
- XwonderwallB,
+ Ywonderwall,
Xwheel,
- XwheelB,
+ Ywheel,
Xswitch,
- XswitchB,
+ Yswitch,
Xbumper,
- XbumperB,
+ Ybumper,
Xacid_nw,
Xacid_ne,
Xacid_se,
Xfake_blank,
- Xfake_blankB,
+ Yfake_blank,
Xfake_grass,
- Xfake_grassB,
+ Yfake_grass,
Xfake_amoeba, /* dripper */
- Xfake_amoebaB,
+ Yfake_amoeba,
Xlenses,
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,
next[x][y] = Xblank;
cave[x+1][y] = Yspring_e;
if (cave[x][y+1] == Xbumper)
- cave[x][y+1] = XbumperB;
+ cave[x][y+1] = Ybumper;
#ifdef SPRING_ROLL
next[x+1][y] = Xspring_e;
next[x][y] = Xblank;
cave[x-1][y] = Yspring_w;
if (cave[x][y+1] == Xbumper)
- cave[x][y+1] = XbumperB;
+ cave[x][y+1] = Ybumper;
#ifdef SPRING_ROLL
next[x-1][y] = Xspring_w;
next[x][y] = Xblank;
cave[x-1][y] = Yspring_w;
if (cave[x][y+1] == Xbumper)
- cave[x][y+1] = XbumperB;
+ cave[x][y+1] = Ybumper;
#ifdef SPRING_ROLL
next[x-1][y] = Xspring_w;
next[x][y] = Xblank;
cave[x+1][y] = Yspring_e;
if (cave[x][y+1] == Xbumper)
- cave[x][y+1] = XbumperB;
+ cave[x][y+1] = Ybumper;
#ifdef SPRING_ROLL
next[x+1][y] = Xspring_e;
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;
{
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)
EL_MAGIC_WALL, -1, -1
},
{
- XwonderwallB, FALSE, FALSE,
+ Ywonderwall, FALSE, FALSE,
EL_MAGIC_WALL, ACTION_ACTIVE, -1
},
EL_ROBOT_WHEEL, -1, -1
},
{
- XwheelB, FALSE, FALSE,
+ Ywheel, FALSE, FALSE,
EL_ROBOT_WHEEL, ACTION_ACTIVE, -1
},
EL_EMC_MAGIC_BALL_SWITCH, -1, -1
},
{
- XswitchB, FALSE, FALSE,
+ Yswitch, FALSE, FALSE,
EL_EMC_MAGIC_BALL_SWITCH, ACTION_ACTIVE, -1
},
EL_EMC_SPRING_BUMPER, -1, -1
},
{
- XbumperB, FALSE, FALSE,
+ Ybumper, FALSE, FALSE,
EL_EMC_SPRING_BUMPER, ACTION_ACTIVE, -1
},
EL_INVISIBLE_WALL, -1, -1
},
{
- Xfake_blankB, FALSE, FALSE,
+ Yfake_blank, FALSE, FALSE,
EL_INVISIBLE_WALL, ACTION_ACTIVE, -1
},
EL_EMC_FAKE_GRASS, -1, -1
},
{
- Xfake_grassB, FALSE, FALSE,
+ Yfake_grass, FALSE, FALSE,
EL_EMC_FAKE_GRASS, ACTION_ACTIVE, -1
},
EL_EMC_DRIPPER, -1, -1
},
{
- Xfake_amoebaB, FALSE, FALSE,
+ Yfake_amoeba, FALSE, FALSE,
EL_EMC_DRIPPER, ACTION_ACTIVE, -1
},