enemies!

It’s a few hours into the second day, and I’ve done a bunch of things since last time. I made a quick and dirty image-to-map converter. I can now use my awesome polygon code, which makes practically any kind of geometry, to create simple squares which are basically tiles but without the bonus of tile indexing. Hooray. So inefficient and not what I want but it’ll have to do for now. It beats having to manually enter every piece of geometry. I’ve also added waypoints for pathing the AI. It works like a charm. I’ve also started working on the enemies and their AI, and I’ve got pretty much all the groundwork in place. They can ‘see’ a player, and geometry blocks their sight. They can use pathing. I just have to create their states now, and also limit their sight to what’s in front of them.

Here’s a picture of an enemy chasing me

Only being able to see a portion of yourself still feels a bit weird. I can’t explain why, but for some reason I (as a player) really really really want to see my whole circle and the game won’t let me. As a developer I still have to figure out if that’s good or bad.

Stuff to do:

  • Finish up AI
  • Limit AI vision to what’s in front of him, similar to the player
  • Add patrol points
  • Add footstep sounds and other noises
  • Add doors, traps, special things, and fill the level with enemies
  • Add win and lose conditions
  • Add a main menu
  • Add fancier graphics, like a proper floor, proper player/enemies, etc
  • Optional: Make a new, proper map that doesn’t consist of squares only

About 16 hours left and most of this should be doable