Sly 1:GS
GS (Game State) is a data structure in Sly 1. It stores an array of World States, which in turn each store an array of Level States.
Structure
The GS struct is declared as follows:
To Do: Add the C++ struct declaration |
Game State Flags
The current game state is represented the FGS enum, which has the following possible values:
To Do: Add the FLS enum values |
World States
The GS struct stores an array of 5 WS structs, one for each world. The order is as follows:
- 0: Intro
- 1: Underwater
- 2: Mesa
- 3: Voodoo
- 4: Snow
- 5: Clockwerk
Unlockable flags
To Do: Add the meaning corresponding to each bit/enum value |
There are three[check] sets of flags after the world states.
Powerup flags
There are 16 bits for the powerup flags, with each bit corresponding to a particular powerup being unlocked.
Cutscene flags
There are 16 bits for the cutscene flags, with each bit corresponding to a particular cutscene being unlocked.
GRFGS
There is a set of flags defined by the GRFGS enum whose purpose is unclear. At least some of the bits appear to be used for game settings.