itch.io is community of indie game creators and players

Devlogs

Alpha Devlog

Amygdelay
A downloadable game

During the alpha phase my main goal was to get the battle system fully functioning and ready for testing later.

To do this I created 3 major scripts:
The game manager, which exists in every scene of the game and keeps track of data and game state between scenes.
The battle manager, which holds all the data for one battle and controls how the battle flows.
And the UI manager, which handles player input and relays it to the battle manager.

Within the battle manager I created a class, Fighter, that contains data for each participant in the battle, their ID, position, health, the move they current have selected, which moves are available to them, a path to which sprite they should use, etc.
I made a constructor function that takes in all this data, creates a new fighter object, and sets up all of the in-game objects needed for it.
I also made a function to add pre-defined fighters to the battle, using an enumerator to select between them.

Every option has an inactive and an active sprite that I show and hide based on which item is selected.

After three questions the proceed() function will check the recruitment chance and randomly decide if the negotiation succeeds or fails.

Download Amygdelay
Leave a comment