Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
avoider game
#1
Photo 
a very simple game don't let enemies touch you.

this time it's not a port I thought of the idea yesterday

this is the git repo for the game:

https://github.com/yoel123/naalaa-avoider-game

[Image: av.gif]

the hardest part was figuring out naalaa doesn't have a way to check if an object attribute is null.

to go around it I just initiated everything and add a object.active =  false as a flag that this entity doesn't "exist" yet.

retro game programming is not easy, looking at the scrolls of doom again I appreciate even more the mighty Carmack and other code mages of his age.

creating the start and game over screen was also a task (not hard) I will try to improve it, maybe add a menu screen func/s (i think it will take more than one function). maybe make it its own lib so others may use it too.

off to the next one.
Reply


Messages In This Thread
avoider game - by rolen - 01-27-2019, 01:05 PM
RE: avoider game - by rolen - 01-28-2019, 04:47 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)