I need help with my game, it's a console arcade game and it's the first game I ever coded.
I only have 2 things left:
1.make enemy spawn every 10 seconds with a maximum of 5 enemies(already coded time counting)
2.make enemies chase the player.
if you're willing to help, send me a DM and tell me if you need the code.
2) can be really simple or really hard. You can literally just copy the movements of the player, N steps behind, for a super simple approach. A lot of high end games, the enemy takes a straight line path and in many of them, it cheats (can cross things the player cannot). If you know where the player is going, you can use a crude AI to take a shortcut. You can also do the old "I am here, he is there, I want to be where he is, find that path" approach. If the game involves ranged weaponry, you can also perform a crude AI or pathing algorithm that instead says "get me to a place with line of sight to shoot at target" rather than "get me to the same place". There are others as well, these are just some ideas and commonly used approaches.