Weekly Update #13



This content originally appeared on DEV Community and was authored by Aby Noctel

Finished another game since the last update!

What I did

  • added player collision with window bounds so it can’t go out of the screen
  • added a background to the game, a change of pace compared to other ones which had a black BG
  • added a score system with a randomizer for enemy shape, size, and color
  • optimized and edited the code for better bullet and player spawning
  • added an hp bar which changes with the hits you take
  • made a game over screen when hp and hp bar reach zero

Problems I had

  • one problem was with the randomizer where it gave me warnings and such, solved it by figuring out if it is zero or not before doing anything else with it
  • had an error for indexing issues in vectors, can’t remember what it said exactly, but I just needed to remove the part where I tried deleting the enemy twice or more in one loop, oops

And with that, another small game comes to a close
I really enjoyed making this one, I especially enjoy playing it XD
There’s nothing else to say tbh so as always, take care of yourselves and I’ll see you all again next week!


This content originally appeared on DEV Community and was authored by Aby Noctel