// Required for: calloc(), free() #define STORAGE_DATA_FILE "storage.data" // Storage file // NOTE: Storage positions must start with 0, directly related to file memory layout typedef enum { STORAGE_POSITION_SCORE = 0, STORAGE_POSITION_HISCORE = 1 } StorageData; // Persistent storage functions static bool SaveStorageValue(unsigned int position, int value); static int LoadStorageValue(unsigned int position); //------------------------------------------------------------------------------------ // Program main entry point //------------------------------------------------------------------------------------ int main(void) { // Initialization //-------------------------------------------------------------------------------------- const int screenWidth = 800; const int screenHeight = 450; InitWindow(screenWidth, screenHeight, "raylib [core] example - storage save/load values"); int score = 0; int hiscore = 0; int framesCounter = "name=description> // Required for: calloc(), free() #define STORAGE_DATA_FILE "storage.data" // Storage file // NOTE: Storage positions must start with 0, directly related to file memory layout typedef enum { STORAGE_POSITION_SCORE = 0, STORAGE_POSITION_HISCORE = 1 } StorageData; // Persistent storage functions static bool SaveStorageValue(unsigned int position, int value); static int LoadStorageValue(unsigned int position); //------------------------------------------------------------------------------------ // Program main entry point //------------------------------------------------------------------------------------ int main(void) { // Initialization //-------------------------------------------------------------------------------------- const int screenWidth = 800; const int screenHeight = 450; InitWindow(screenWidth, screenHeight, "raylib [core] example - storage save/load values"); int score = 0; int hiscore = 0; int framesCounter = "property=og:image:alt> // Required for: calloc(), free() #define STORAGE_DATA_FILE "storage.data" // Storage file // NOTE: Storage positions must start with 0, directly related to file memory layout typedef enum { STORAGE_POSITION_SCORE = 0, STORAGE_POSITION_HISCORE = 1 } StorageData; // Persistent storage functions static bool SaveStorageValue(unsigned int position, int value); static int LoadStorageValue(unsigned int position); //------------------------------------------------------------------------------------ // Program main entry point //------------------------------------------------------------------------------------ int main(void) { // Initialization //-------------------------------------------------------------------------------------- const int screenWidth = 800; const int screenHeight = 450; InitWindow(screenWidth, screenHeight, "raylib [core] example - storage save/load values"); int score = 0; int hiscore = 0; int framesCounter = "property=og:description> // Required for: calloc(), free() #define STORAGE_DATA_FILE "storage.data" // Storage file // NOTE: Storage positions must start with 0, directly related to file memory layout typedef enum { STORAGE_POSITION_SCORE = 0, STORAGE_POSITION_HISCORE = 1 } StorageData; // Persistent storage functions static bool SaveStorageValue(unsigned int position, int value); static int LoadStorageValue(unsigned int position); //------------------------------------------------------------------------------------ // Program main entry point //------------------------------------------------------------------------------------ int main(void) { // Initialization //-------------------------------------------------------------------------------------- const int screenWidth = 800; const int screenHeight = 450; InitWindow(screenWidth, screenHeight, "raylib [core] example - storage save/load values"); int score = 0; int hiscore = 0; int framesCounter = "name=twitter:image:alt> // Required for: calloc(), free() #define STORAGE_DATA_FILE "storage.data" // Storage file // NOTE: Storage positions must start with 0, directly related to file memory layout typedef enum { STORAGE_POSITION_SCORE = 0, STORAGE_POSITION_HISCORE = 1 } StorageData; // Persistent storage functions static bool SaveStorageValue(unsigned int position, int value); static int LoadStorageValue(unsigned int position); //------------------------------------------------------------------------------------ // Program main entry point //------------------------------------------------------------------------------------ int main(void) { // Initialization //-------------------------------------------------------------------------------------- const int screenWidth = 800; const int screenHeight = 450; InitWindow(screenWidth, screenHeight, "raylib [core] example - storage save/load values"); int score = 0; int hiscore = 0; int framesCounter = "name=twitter:description>