-
Notifications
You must be signed in to change notification settings - Fork 1
Level Saving Loading
Levels are saved and loaded to/from JSON format. Level save files contain:
- Tile Map Data
- Obstacle Data
- Obstacle Link Data
These files are loaded when a level is selected to be loaded by the LevelGameArea area. The loading process is as follows:
-
LevelGameArea.readAll()
is run to begin the loading sequence -
LevelGameAreaapplyTerrainSerializers(Json)
is run to apply the serializers used to convert the TiledMapTileLayer to/from Json. - The file is read, and converted to a
LevelFile
object, containing all of the relevant level information. - The information is read from the
LevelFile
object and loaded into the game
In future, step 4 could be moved to a different stage in the loading process so that, for example, assets could be loaded before attempting to spawn obstacles.
When the level is saved (by the level editor), the reverse process occurs within LevelGameArea.writeAll()
. Serializers are applied, a new LevelFile
object is created and all relevant data is saved to it, and it is then saved to a Json file.
Adding new data to the level file is simple. First, the LevelFile
class should be modified to add the data field in the correct location. Next, read and write the data to/from the LevelFile
in the readAll
and writeAll
methods, note that adding a serializer may be necessary for special datatypes, however is not needed for most things.
Testing Plans
Team 1
Team 2
Team 3
Team 4
Team 5
Team 1
Team 2
Team 3
Team 4
Team 5
User Testing
Sprint 1 - Game Audio
Sprint 1 - Character Design
Sprint 1 - Menu Assets
Sprint 1 - Map Design
Sprint 1 - Void
Sprint 2 - Game Audio
Sprint 2 - Character Design
Sprint 2 - Menu Assets
Sprint 2 - Interactable Design Animation
Sprint 2 - Levels 1 & 4, and Level Editor
Sprint 2 - Proposed Level 2 & 3 Designs
Sprint 2 - Current Game State
Sprint 3 - Menu Assets
Sprint 3 - Map Design
Sprint 3 - Score Display
Sprint 3 - Player Death and Spawn Animations
Sprint 3 - Pick Ups and Pause Screen
Sprint 4 - Gameplay
Sprint 4 - Game UI and Animation
Sprint 4 - Level Background and Music
Sprint 4 - Game User Testing
Sprint 4 - Final Game State Testing
Entities and Components
Status Components
Event System
Player Animations Implementation
Development Resources
Entities and Components
Level Editor (Saving and Loading
Multiple Levels)