This site requires JavaScript, please enable it in your browser!
Greenfoot back
SaxOps1
SaxOps1 wrote ...

2015/10/16

Saving data for a pokemon clone

SaxOps1 SaxOps1

2015/10/16

#
Hey guys, I'm working on a pokemon clone, and I'm trying to figure out how to save data. I need to save data like username, pokemon in party, pokemon stats & moves, player location, etc. I'm trying to figure out the best way to do this. Any ideas? Thanks!
danpost danpost

2015/10/16

#
The answer is not a simple one. It depends on where the end product will be (on the Greenfoot site? as an application? etc.). Other factors may be the amount of data that needs to saved and data compression size. Running your scenario within the greenfoot application, you can save data either to data files or use the UserInfo data storage provided by greenfoot. On the site, you can only use the UserInfo data storage provided by greenfoot. As a stand-alone application, you can only save the data to data files.
SaxOps1 SaxOps1

2015/10/16

#
Thanks! I don't think it will end up being uploaded to the Greenfoot site, and just kept as an application. How much can I use the UserInfo data storage to save things- like player name, a list of pokemon in party, individual pokemon stats, that kind of thing?
danpost danpost

2015/10/17

#
SaxOps1 wrote...
How much can I use the UserInfo data storage to save things- like player name, a list of pokemon in party, individual pokemon stats, that kind of thing?
Like I said:
Other factors may be the amount of data that needs to saved and data compression size.
You can refer to the UserInfo class documentation for its specifications (as well as how the use the class and what methods are available).
You need to login to post a reply.