Saving and Loading Data

Summary

In the long long ago, many video games were not capable of being saved into memory. But technology has advanced to even allow most web browsers to keep track of game-data in a HTML5 game.

The Game Pencil Engine uses a simple slot-data approach to saving and loading useful game data.

GPE Data Functions

 

gpe.erase_data( dataIdentifier, dataTitle);
-Sends in the data related to the dataIdentifier( number or string) by dataTitle(string) to the GPE’s shadowrealm.

gpe.load_data( dataIdentifier, dataTitle);
-Loads in the data related to the dataIdentifier( number or string) by dataTitle(string).

gpe.save_data( dataIdentifier, dataTitle, actualData);
-Saves the actualData(Any data type) related to the dataIdentifier( number or string)’s dataTitle(string) block.

Notes

…..

Suggest Edit