A brand new game
for Windows, Linux, Mac, HTML5, 3DS Homebrew and more
every week,
unless exhausted!
About Games Music Pixelart Poetry Home Patreon Scores JNKPlat Petit Switch
Further Complications
  21st August, 2018

Last night, I saved my test level!
Unfortunately, it uncovered further complications.


I thought I could easily use the following method.

1. Open level file
2. Jump to position of level
3. Write level
4. Close level file

And that worked.. .. On Windows!
And then I double checked it on 3DS, only to find that when I wrote the data, then closed the file, the file would "end" at the position of the last write.

With that quirk in mind, I'm going to have to juggle a few bits and pieces of data, and add extra checks, to ensure that the data being saved to the file is correct.
A couple of "total levels in this file" values at the top and bottom of the file should suffice.

This isn't an easy task!!

Views 38, Upvotes 3
Daily Blog , 575 , Jnkplat2018
Site credits : Site built from the ground up, in php, using Programmer's Notepad 2, and a very bored Jayenkai.
(c) Jayenkai 2017 and onwards. RSS feed
Blog - Further Complications - AGameAWeek