Adds a "Rooted Status" draw system to the Main Game Scene. #57

Merged
ZAdamMac merged 4 commits from f/rooted-status into v/0.5.0 2025-03-18 09:13:36 -03:00
ZAdamMac commented 2025-03-17 22:09:51 -03:00 (Migrated from github.com)

It was desirable to change the main game animation logic so that the status icon(s), if any were needed, could be drawn dynamically based on the position of the pet.

Changes specific to this branch compared to the current v/0.5.0 state:

  • Added definitions for the sleeping and low-battery status icons to display/icons.h
  • Added a new symbol (@) to the metanimation standard, to define a root position for status icons dynamically based on the metanimation used.
    • This was done as a define in metanimations.h instead of hardcoding to make it revisable later. In future updates it is likely desirable to repeat this.
  • directly replaced the existing MG_placeStatusIcons with new logic and added a MG_directStatusIcons to perform similar work with directives.
    • this is done such that symbol definitions from icons.h are used, for future-proofing.
  • Reworked MG_updatePlayfieldSleeping, MG_updatePlayfieldIdle, and the lights-out redraw logic to all use the new status icons systems.
  • Reworked other functions specific to scenes/main_game.c as-needed to support the new logic.
It was desirable to change the main game animation logic so that the status icon(s), if any were needed, could be drawn dynamically based on the position of the pet. Changes specific to this branch compared to the current v/0.5.0 state: - Added definitions for the sleeping and low-battery status icons to `display/icons.h` - Added a new symbol (`@`) to the metanimation standard, to define a root position for status icons dynamically based on the metanimation used. - This was done as a define in metanimations.h instead of hardcoding to make it revisable later. In future updates it is likely desirable to repeat this. - directly replaced the existing MG_placeStatusIcons with new logic and added a MG_directStatusIcons to perform similar work with directives. - this is done such that symbol definitions from icons.h are used, for future-proofing. - Reworked MG_updatePlayfieldSleeping, MG_updatePlayfieldIdle, and the lights-out redraw logic to all use the new status icons systems. - Reworked other functions specific to `scenes/main_game.c` as-needed to support the new logic.
Sign in to join this conversation.
No description provided.