Monday, 20 April 2020

Game #9 : Asteroids

Asteroids is now working (no flying saucer).

As you can see from the demo here, the collision detection isn't great. I really wanted to avoid square root calculations and can't do pixel collision so its a simple box, and because of the shapes it is fairly generous with the collision detection.

Note, running the emscripten version does occasionally require a reload ignoring cache (Ctrl+Shift+R on Firefox) . I've just had it not work on me , nothing worked apparently, but reloading it fixed it.

No comments:

Post a Comment

Breaking change

We all make mistakes. One early mistake I made was copying (partly) the old thing in Microsoft BASIC where you didn't have to declare ...