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.

AppGameKit Classic Chat / Byte order guaranteed

Author
Message
Ekkr
9
Years of Service
User Offline
Joined: 17th Apr 2015
Location:
Posted: 17th Apr 2015 11:48
Hello!

My (own) level editor (running under Windows) saves the level data to a binary file, and my AppGameKit game loads them.
Now, when running my game on Windows, Mac or Android, does the AppGameKit Basic Compiler guarantee the same byte order in integers across all operating systems? And what about floats?

Thanx in advance,
Ekkr
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 17th Apr 2015 13:49
The file is written and read in exactly the same way on all platforms, if you are using the AppGameKit commands to read and write. You can save on one and read on another safely.

Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Ekkr
9
Years of Service
User Offline
Joined: 17th Apr 2015
Location:
Posted: 18th Apr 2015 00:08
Thanx, this was the right answer

Login to post a reply

Server time is: 2024-11-25 20:45:07
Your offset time is: 2024-11-25 20:45:07