Workshop › Angry Birds-style Slingshot › Step 32 of 47
A body with 0 hp or less is broken. The filter in step already removes bodies off the screen; now it also removes
broken ones.
```js
if (b.hp > 0 && b.x < canvas.width + 50 && b.x + b.w > -50) return true
```In the filter at the end of step, add b.hp > 0 && at the start of the if.
Skills: Game states, Arrays and objects