Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Totally Confused About Saving/Loading Game Data On Desktop/Android...

Author
Message
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 11th May 2017 17:07
Hi,

We have been looking around the Internet for a great example
of how to load/save game data on both desktop and Android platforms
but can't seem to find anything?

Can some one help us load/save game data on desktop/Android, thanks!
JeZxLee
16BitSoft Inc.
Video Game Design Studio
http://www.16BitSoft.com
Open-Source AppGameKit2 Project!
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 11th May 2017 18:01
Ok, got something working:

JeZxLee
16BitSoft Inc.
Video Game Design Studio
http://www.16BitSoft.com
Open-Source AppGameKit2 Project!
Dybing
12
Years of Service
User Offline
Joined: 12th Sep 2011
Location: Bergen, Norway
Posted: 12th May 2017 22:18
Two words: Nesting loops!

Also, whilst on the desktop clients you can save and load your files just about anywhere - on android and I'm guessing iOS as well, you're pretty much limited to the media folder of your project.
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 13th May 2017 11:12 Edited at: 13th May 2017 11:13
To illustrate the point Dybing is making, this:



is the same as this:



To achieve this, you need to reorder the way you save your high scores.
You have many examples in your code where you can refactor it in this way.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt

Login to post a reply

Server time is: 2024-03-28 11:48:36
Your offset time is: 2024-03-28 11:48:36