feat: add engine SaveStorageData and LoadStorageData and started saving stats of player

This commit is contained in:
2026-03-08 15:25:20 +01:00
parent 40d48b4f2f
commit 341b675fa9
6 changed files with 90 additions and 2 deletions
+2 -2
View File
@@ -75,9 +75,9 @@ void CreatePlayer(void)
.animation = playerAnimation,
.physics = playerPhysics,
.rotation = rotation,
.soundFlapping = LoadSound(playerSoundAssets[FLAPPING].path)
.soundFlapping = LoadSound(playerSoundAssets[FLAPPING].path),
.gold = LoadStorageValue(STORAGE_DATA_FILE, STORAGE_POSITION_GOLD)
};
}
void UpdatePlayer(void)