{ "mm_pacman.right", "RocksMM.png" },
{ "mm_pacman.right.xpos", "0" },
{ "mm_pacman.right.ypos", "4" },
- { "mm_pacman.right.frames", "2" },
- { "mm_pacman.right.delay", "4" },
- { "mm_pacman.right.offset", "128" },
+ { "mm_pacman.right.frames", "1" },
{ "mm_pacman.up", "RocksMM.png" },
{ "mm_pacman.up.xpos", "1" },
{ "mm_pacman.up.ypos", "4" },
- { "mm_pacman.up.frames", "2" },
- { "mm_pacman.up.delay", "4" },
- { "mm_pacman.up.offset", "128" },
+ { "mm_pacman.up.frames", "1" },
{ "mm_pacman.left", "RocksMM.png" },
{ "mm_pacman.left.xpos", "2" },
{ "mm_pacman.left.ypos", "4" },
- { "mm_pacman.left.frames", "2" },
- { "mm_pacman.left.delay", "4" },
- { "mm_pacman.left.offset", "128" },
+ { "mm_pacman.left.frames", "1" },
{ "mm_pacman.down", "RocksMM.png" },
{ "mm_pacman.down.xpos", "3" },
{ "mm_pacman.down.ypos", "4" },
- { "mm_pacman.down.frames", "2" },
- { "mm_pacman.down.delay", "4" },
- { "mm_pacman.down.offset", "128" },
+ { "mm_pacman.down.frames", "1" },
+ { "mm_pacman.eating.right", "RocksMM.png" },
+ { "mm_pacman.eating.right.xpos", "4" },
+ { "mm_pacman.eating.right.ypos", "4" },
+ { "mm_pacman.eating.right.frames", "1" },
+ { "mm_pacman.eating.up", "RocksMM.png" },
+ { "mm_pacman.eating.up.xpos", "5" },
+ { "mm_pacman.eating.up.ypos", "4" },
+ { "mm_pacman.eating.up.frames", "1" },
+ { "mm_pacman.eating.left", "RocksMM.png" },
+ { "mm_pacman.eating.left.xpos", "6" },
+ { "mm_pacman.eating.left.ypos", "4" },
+ { "mm_pacman.eating.left.frames", "1" },
+ { "mm_pacman.eating.down", "RocksMM.png" },
+ { "mm_pacman.eating.down.xpos", "7" },
+ { "mm_pacman.eating.down.ypos", "4" },
+ { "mm_pacman.eating.down.frames", "1" },
{ "mm_mask_mcduffin.right", "RocksMM.png" },
{ "mm_mask_mcduffin.right.xpos", "8" },
Feld[ELX][ELY] = 0;
Feld[x][y] = element;
- DrawGraphic_MM(ELX, ELY, -1);
+ DrawGraphic_MM(ELX, ELY, IMG_EMPTY);
DrawField_MM(x, y);
if (element == EL_BLOCK_STONE && Box[ELX][ELY])
{
static int p = -1;
int mx, my, ox, oy, nx, ny;
- int g, element;
+ int element;
int l;
if (++p >= game_mm.num_pacman)
game_mm.pacman[p].x = nx;
game_mm.pacman[p].y = ny;
- g = Feld[nx][ny] - EL_PACMAN_RIGHT;
+
DrawGraphic_MM(ox, oy, IMG_EMPTY);
if (element != EL_EMPTY)
{
+ int graphic = el2gfx(Feld[nx][ny]);
+ Bitmap *bitmap;
+ int src_x, src_y;
int i;
+ getGraphicSource(graphic, 0, &bitmap, &src_x, &src_y);
+
CT = Counter();
ox = SX + ox * TILEX;
oy = SY + oy * TILEY;
for(i=1; i<33; i+=2)
- {
-#if 1
- // !!! temporary fix to compile -- change to game graphics !!!
- BlitBitmap(drawto, window,
- SX + g * TILEX, SY + 4 * TILEY, TILEX, TILEY,
- ox + i * mx, oy + i * my);
-#else
- BlitBitmap(pix[PIX_BACK], window,
- SX + g * TILEX, SY + 4 * TILEY, TILEX, TILEY,
+ BlitBitmap(bitmap, window,
+ src_x, src_y, TILEX, TILEY,
ox + i * mx, oy + i * my);
-#endif
- }
Ct = Ct + Counter() - CT;
}
DrawField_MM(nx, ny);