瀏覽代碼

Update core_storage_values.c

pull/1113/head
Ray 5 年之前
父節點
當前提交
2294947660
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      examples/core/core_storage_values.c

+ 4
- 4
examples/core/core_storage_values.c 查看文件

@ -43,14 +43,14 @@ int main(void)
if (IsKeyPressed(KEY_ENTER))
{
StorageSaveValue(STORAGE_SCORE, score);
StorageSaveValue(STORAGE_HISCORE, hiscore);
SaveStorageValue(STORAGE_SCORE, score);
SaveStorageValue(STORAGE_HISCORE, hiscore);
}
else if (IsKeyPressed(KEY_SPACE))
{
// NOTE: If requested position could not be found, value 0 is returned
score = StorageLoadValue(STORAGE_SCORE);
hiscore = StorageLoadValue(STORAGE_HISCORE);
score = LoadStorageValue(STORAGE_SCORE);
hiscore = LoadStorageValue(STORAGE_HISCORE);
}
framesCounter++;

||||||
x
 
000:0
Loading…
取消
儲存