Workshop › Missile Command-style Defense › Step 33 of 35
A marked missile that passes y = 150 stops being marked and launches two more missiles from where it is: one missile becomes three, heading for different targets.
```js
// Some missiles split into three halfway down.
if (m.split && m.y > 150) {
m.split = false
for (let i = 0; i < 2; i++) launch(m.x, m.y)
}
```launch(m.x, m.y) twice: two new missiles start at this missile's position, each with its own target.In update, write the block in the missile loop, above if (stepTowards(m, m.speed)) {.
Skills: Game states
← Some missiles will split A high score →