This week was the week of menus, saving, pausing and loading. Not necessarily as exciting as the rest of the game, but a vital part. I had to learn about how to save the game by writing and reading data files, keeping 'singletons' throughout different scenes, as well as how menus work with different control setups. Bugged Out
Saving data to a file turned out to be a lot more complex than I thought, and a lot more manual work. Creating a file is not too difficult, but making sure everything you need is "Serializable", as well as manually writing every piece of data to that file? A little more time-consuming than I thought. Right now the only thing written is the party members the player recruited, but that list will need to grow out a lot as more gets added to the game... Such as every stat for every NPC you recruit. That's gonna be... a lot. Loading data is pretty much the same, except the other way around. Open an available file, take out the data from the classes found inside and put that data back into different objects. Since I'm already working on different scenes, I'm going to spend next week working on the overworld, as a way for the player to access levels. It's a pretty common design for both platformers and RPG's, and it should be a decent break after the headaches I've had this week.
0 Comments
Leave a Reply. |
AboutThis is a development blog for my own game project, "Viola". Archives
February 2019
Categories |