Skip to content

Update main with save functionality via xml file.py #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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