Workshop › Bomberman-style Arena › Step 15 of 42
The player may only have maxBombs bombs down at once, one to begin with. Power-ups will raise it later.
```js
let maxBombs
maxBombs = 1
function dropBomb() {
if (bombs.length >= maxBombs) return
```bombs.length is how many bombs are down; with as many as allowed, dropBomb leaves at once.let held write let maxBombs; in reset, under held = [], write maxBombs = 1.if as the first line of dropBomb.Skills: Game states
← Space drops, bombs show Bombs are in the way →