Workshop › Mario-style Platformer › Step 30 of 37
Now enemies are dangerous: touching one costs a life.
```js
for (const enemy of enemies) {
if (!overlaps(player, enemy)) continue
die()
return
}
```continue.die() and leave update.In update, after the coin loop, leave an empty line and write the enemy loop (above the pit check).
Skills: Collision detection