Update core_storage_values.c
This commit is contained in:
parent
5aed36e76d
commit
2294947660
@ -43,14 +43,14 @@ int main(void)
|
|||||||
|
|
||||||
if (IsKeyPressed(KEY_ENTER))
|
if (IsKeyPressed(KEY_ENTER))
|
||||||
{
|
{
|
||||||
StorageSaveValue(STORAGE_SCORE, score);
|
SaveStorageValue(STORAGE_SCORE, score);
|
||||||
StorageSaveValue(STORAGE_HISCORE, hiscore);
|
SaveStorageValue(STORAGE_HISCORE, hiscore);
|
||||||
}
|
}
|
||||||
else if (IsKeyPressed(KEY_SPACE))
|
else if (IsKeyPressed(KEY_SPACE))
|
||||||
{
|
{
|
||||||
// NOTE: If requested position could not be found, value 0 is returned
|
// NOTE: If requested position could not be found, value 0 is returned
|
||||||
score = StorageLoadValue(STORAGE_SCORE);
|
score = LoadStorageValue(STORAGE_SCORE);
|
||||||
hiscore = StorageLoadValue(STORAGE_HISCORE);
|
hiscore = LoadStorageValue(STORAGE_HISCORE);
|
||||||
}
|
}
|
||||||
|
|
||||||
framesCounter++;
|
framesCounter++;
|
||||||
|
Loading…
Reference in New Issue
Block a user