Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
picking sticks in naalaa and a few questions
Well, naalaa's meant for smaller, less complex games. But for, let's say, different enemies in a game, I usually put them all in an array of objects, add a 'type' field and call different functions based on the type for dealing with their logic. All enemies have some things (fields) in common, for example position and size, making some functions generic for all enemies.

I uploaded the source code for Zombie Tumult the other day. It's kind of a "complex" game, and I believe it uses objects that way.

I'll add two old games (half finished of course) by John to to the Showcase. I Think they're good examples of this setup too.

Messages In This Thread
RE: picking sticks in naalaa and a few questions - by Marcus - 03-26-2019, 08:28 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)