浏览代码

Update basic_game.c

pull/238/head^2
Ray 8 年前
committed by GitHub
父节点
当前提交
47e3fbfc12
共有 1 个文件被更改,包括 9 次插入9 次删除
  1. +9
    -9
      templates/basic_game/basic_game.c

+ 9
- 9
templates/basic_game/basic_game.c 查看文件

@ -8,7 +8,7 @@
* This game has been created using raylib v1.2 (www.raylib.com) * This game has been created using raylib v1.2 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
* *
* Copyright (c) 2014 Ramon Santamaria (n">Ray San - raysan@raysanweb.com) * Copyright (c) 2014 Ramon Santamaria (err">@raysan5)
* *
********************************************************************************************/ ********************************************************************************************/
@ -28,17 +28,17 @@ int main()
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
const int screenWidth = 800; const int screenWidth = 800;
const int screenHeight = 450; const int screenHeight = 450;
const char windowTitle[30] = "<game name goes here>"; const char windowTitle[30] = "<game name goes here>";
GameScreen currentScreen = LOGO;
InitWindow(screenWidth, screenHeight, windowTitle); InitWindow(screenWidth, screenHeight, windowTitle);
GameScreen currentScreen = LOGO;
// TODO: Initialize all required variables and load all required data here! // TODO: Initialize all required variables and load all required data here!
int framesCounter = 0; // Used to count frames int framesCounter = 0; // Useful to count frames
SetTargetFPS(60); // Set desired framerate (frames-per-second)
SetTargetFPS(60);
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
// Main game loop // Main game loop
@ -149,4 +149,4 @@ int main()
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
return 0; return 0;
} }

||||||
x
 
000:0
正在加载...
取消
保存