UQdeco2800 / 2022-studio-1

MIT License
4 stars 0 forks source link

Saving and Loading Game #222

Open Logan-De-Groot opened 2 years ago

Logan-De-Groot commented 2 years ago

Description

Task: Saving and Loading Game Feature: Save Game, Multiple Difficulties and Enemy Attack Improvements

From feature ticket a save and load game is desired to reduce the frustration from the player/user and allowt hem to play part of a game. Currently there is no ability to do this which has the potential to cause undue frustration as the user must either leave the game open in a paused state, quit the game or actively lose the game. This feature will write to files the relevant information and on start up will load the game state.

Dependencies

Pretty much everything including but not limited to:

Milestones

List of sub-features you intend to have done and in Master by the end of the sprint.

Completion Deadline: 30 September

Documentation

Member

SamBehm commented 2 years ago

hey guys! I'm from team 3 working on the map, just wanted to offer our part of the save state. In terms of the map tile layout, you can either save just the map level index (current island size), or you can save the tiledMap in its entirety with the map level index. The advantage of saving the tiledMap would be that it's ~probably~ faster to load back in, as you're just coping the data straight back into the structure. However, this would take up a lot of space; by saving just the map level index, you can regenerate the map without any consequences by using terrainFactory. Either way if you need any help with this part of the save state implementation, let us know!

Logan-De-Groot commented 2 years ago

image

MichelleAsWell commented 2 years ago

image

MichelleAsWell commented 2 years ago

Note that the tutors have agreed to mark this functionality based on this commit which is the last time we updated the SaveGameTest file before it was broken by other teams image