RPG game 4/12/24

Today, I worked on a function that checks if you, or the enemy player is dead. If you tried to attack the enemy while you have 0 hp or under, you would be reminded that you’re dead, and can’t attack. The same goes for the enemy. The code encircled in red is where the magic happens. In other news, enemy AI. Spoilers much?

Leave a Reply

Your email address will not be published. Required fields are marked *