Skip to content

Conversation

@jackborthwick
Copy link

Added save functionality using an xml file. Upon starting the game if a savedworld.xml file exists then the game will generate all blocks in the game from that except the floor which is always regenerated, if the file does not exist the game will start with the randomly placed hills as before. Press q while in game to save. Hope this helps people save their worlds, also you can generate fields via .xml files if you so desired. Also Sorry about the mess of imports, I wasn't sure which I ended up needing.

Added save functionality using an xml file.  Upon starting the game if a savedworld.xml file exists then the game will generate all blocks in the game from that except the floor which is always regenerated, if the file does not exist the game will start with the randomly placed hills as before.  Press q while in game to save.  Hope this helps people save their worlds, also you can generate fields via .xml files if you so desired.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant