Coding game: catching coins and avoiding bombs

Does it show different images now?

Then you used isCoin already to distinguish between them.

Now use if (isCoin).... to either change score or health
upon a collision

1 Like