Workshop › Puzzle Bobble-style Bubble Shooter › Step 24 of 31
Now drop moves everything: the bubbles are placed lower, the ceiling that stops a shot is lower, and the ceiling is
drawn as a thicker block.
```js
const cellPos = (r, c) => ({ x: R + c * 2 * R + (r % 2) * R, y: TOP + drop * ROW_H + R + r * ROW_H })
if (y - R <= TOP + drop * ROW_H) return true
// The ceiling comes down as a solid block.
ctx.fillStyle = '#312e81'
ctx.fillRect(0, 0, canvas.width, TOP + drop * ROW_H)
```drop * ROW_H added.cellPos, add drop * ROW_H + after TOP + .touches, change the ceiling check.draw, add the comment and use the new height for the ceiling.Skills: Game states
← Count the shots Win or lose →