Coding 2 - Saving/Loading Devlog
In class, we created a saving and loading feature so that when you land on a checkpoint, the game saves. Then, if you die or fall off the map, you respawn at the checkpoint. We also made it so that the coins picked up by the player reload in a different color, allowing you to distinguish which coins have already been collected. Additionally, we created a widget that deletes your save points, allowing the player to restart their progress if desired.
For homework, I created an obstacle course using the same checkpoint system we implemented in class to save progress. The objective of the course is to save a bear. Once we’re taught a points system, the bear will be worth more points to give the player an incentive to retrieve it. The bear also saves all progress, so if you die, you respawn at the finish line of the obstacle course. I also set the AI patroller to have a specific spawn location so that it always resets and starts in the same place whenever you leave and reload the level.
In the video, I demonstrated how coin states are saved and loaded when you die or change levels. The level saves after you open the door, and the door state is saved after a checkpoint. This way, if you die, you can go back through the door without needing to open it again. The video also shows how, after collecting the bear and dying, you respawn at the bear's location. You can also see that after I deleted the level save, the door closed, and the bear respawned. Lastly, when I left the level and returned, the door state reset, and the player respawned at his location. However, it’s a bit hard to see in the video since the AI patroller had already started its patrol, but it was about 10 steps from its spawn point.
Game Design 3/ Coding 2
Game Design 3 Work
More posts
- Behavior Tree Assignment19 days ago
- Game Design 3 - Spilt Screen Pt. 257 days ago
- Game Design 3 - Two Player Gameplay63 days ago
- Game Design 3 - Toy Devlog71 days ago
Leave a comment
Log in with itch.io to leave a comment.