Workshop › Puzzle Bobble-style Bubble Shooter › Step 23 of 31
To keep the pressure on, the ceiling will come down one row every 8 shots. First we count the shots and the rows it has come down.
```js
const DROP_EVERY = 8 // shots between the ceiling coming down
let shots
let drop // how many rows the ceiling has come down
shots = 0
drop = 0
shots += 1
if (shots % DROP_EVERY === 0) drop += 1
```shots % DROP_EVERY === 0 is true on shots 8, 16, 24...: then drop goes up by one.SPEED, write DROP_EVERY; under let score, write shots and drop; in reset, under score = 0, set both to 0.attach, count the shot under grid[r][c] = color, and write the drop line at the very end.Skills: Game states
← Only useful colors The ceiling comes down →