1 | if (create >= 0) |
2 | { |
3 | draw_sprite_ext(spr_blackbox_o_shatter, 0, x + 10, y + 10, 1 + (create / 10), 1 + (create / 10), create * 10, c_white, 1 - (create / 10)); |
4 | create -= 1; |
5 | } |
6 | if (create < 0) |
7 | draw_sprite(sprite_index, image_index, curx, cury); |
8 | if (curx > x) |
9 | curx -= 5; |
10 | if (curx < x) |
11 | curx += 5; |
12 | if (cury > y) |
13 | cury -= 5; |
14 | if (cury < y) |
15 | cury += 5; |