Workshop › Bomberman-style Arena › Step 35 of 42
An item shows only once its crate has burnt, which is exactly when its tile has become floor: a blue B for a bomb, an orange F for fire.
```js
const item = items.get(key(r, c))
if (item && tile === ' ') {
ctx.fillStyle = item === 'bomb' ? '#2563eb' : '#ea580c'
ctx.fillRect(x + 6, y + 6, TILE - 12, TILE - 12)
ctx.fillStyle = 'white'
ctx.font = 'bold 14px sans-serif'
ctx.textAlign = 'center'
ctx.fillText(item === 'bomb' ? 'B' : 'F', x + TILE / 2, y + 21)
}
```items.get(key(r, c)) is the tile's item or undefined.textAlign = 'center' with x + TILE / 2 centers the letter on the tile.In draw, inside the tile loop, under the crate's stripe block, write the item lines.
Skills: Drawing on a canvas
← Hidden power-ups Pick them up →