internal test

origin
patty21 23 years ago
parent d1b81521eb
commit 4589f290be

@ -33,13 +33,17 @@ draw_bomb (_bomb * bomb)
} }
dest.w = src.w = gfx.bomb.image->w; dest.w = src.w = gfx.bomb.image->w;
dest.h = src.h = gfx.block.y; dest.h = src.h = gfx.block.y;
dest.x = gfx.offset.x + gfx.postab[bomb->pos.x & 0x0FF];
dest.x = gfx.offset.x + (x* gfx.block.x/0x100); dest.x = gfx.offset.y + gfx.postab[bomb->pos.y & 0x0FF];
dest.y = gfx.offset.y + (y* gfx.block.y/0x100);
src.x = 0; src.x = 0;
src.y = src.h * bomb->frame; src.y = src.h * bomb->frame;
draw_stone (x>>8, y>>8); draw_stone (x>>8, y>>8);
if (bomb->moves) {
draw_stone ((x>>8)+1, y>>8);
draw_stone (x>>8, (y>>8)+1);
draw_stone ((x>>8)+1, (y>>8)+1);
}
SDL_BlitSurface (gfx.bomb.image, &src, gfx.screen, &dest); SDL_BlitSurface (gfx.bomb.image, &src, gfx.screen, &dest);
gfx_AddUpdateRect (dest.x, dest.y, dest.w, dest.h); gfx_AddUpdateRect (dest.x, dest.y, dest.w, dest.h);

Loading…
Cancel
Save