The World Under
About
For an efficient way to place enemies on the map, I've made a script that scans the entire map, and look for tiles that will spawn enemies(first tab after the comment "map scan for enemy tiles".
controls are all shared by the enemies and the player, in order to save code tokens. It surprised me how well it worked out.
Actors management. the function create_enemies on the 4th tab is the properties of each actor(powerups, enemies, NPCs, etc...). Each actor has a type, and according to it's type, it gets it's custume properties, such as sprites, width, height, ai etc...
The Ai of the enemies is also modular, as each block of the ai can be called with it's name, in the AI table.
sprite_builder() is the function that builds each enemy from different sprties and handles it's animation properties. Took me some time to get it to work well, and I was able to do with some really amazing enemies.
In conclusion This game was really fun to made and I hope it will be fun for you to play