Draw the countdown frames for the time bomb, and improve its artwork
This commit is contained in:
parent
0e1bd91075
commit
d1646532d5
@ -137,8 +137,13 @@ export const CC2_TILESET_LAYOUT = {
|
||||
},
|
||||
|
||||
dynamite: [0, 4],
|
||||
// FIXME lit frames
|
||||
dynamite_lit: [0, 4],
|
||||
dynamite_lit: {
|
||||
0: [0, 4],
|
||||
1: [1, 4],
|
||||
2: [2, 4],
|
||||
3: [3, 4],
|
||||
4: [4, 4],
|
||||
},
|
||||
bomb: [5, 4],
|
||||
green_bomb: [6, 4],
|
||||
// TODO bomb fuse tile, ugh
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { COLLISION, DIRECTIONS, DIRECTION_ORDER, DRAW_LAYERS } from './defs.js';
|
||||
import { COLLISION, DIRECTIONS, DIRECTION_ORDER, DRAW_LAYERS, TICS_PER_SECOND } from './defs.js';
|
||||
import { random_choice } from './util.js';
|
||||
|
||||
function activate_me(me, level) {
|
||||
@ -2301,6 +2301,10 @@ const TILE_TYPES = {
|
||||
}
|
||||
}
|
||||
},
|
||||
visual_state(me) {
|
||||
// 0 1 2 3 4
|
||||
return Math.min(4, Math.max(0, Math.floor((me.timer ?? 0) / TICS_PER_SECOND)));
|
||||
},
|
||||
},
|
||||
bowling_ball: {
|
||||
draw_layer: DRAW_LAYERS.item,
|
||||
|
||||
BIN
tileset-lexy.png
BIN
tileset-lexy.png
Binary file not shown.
|
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
Binary file not shown.
Loading…
Reference in New Issue
Block a user