diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 22 |
1 files changed, 4 insertions, 18 deletions
@@ -5,24 +5,13 @@ int main(void) { - // Initialization - //-------------------------------------------------------------------------------------- InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "Window title"); + SetTargetFPS(60); - Texture2D texture = LoadTexture(ASSET_PATH"test.png"); + Texture2D texture = LoadTexture(ASSETS_PATH"test.png"); - SetTargetFPS(60); // Set our game to run at 60 frames-per-second - - // Main game loop - while (!WindowShouldClose()) // Detect window close button or ESC key + while (!WindowShouldClose()) { - // Update - //---------------------------------------------------------------------------------- - // TODO: Update your variables here - //---------------------------------------------------------------------------------- - - // Draw - //---------------------------------------------------------------------------------- BeginDrawing(); ClearBackground(RAYWHITE); @@ -36,12 +25,9 @@ int main(void) DrawText(text, SCREEN_WIDTH / 2 - text_size.x / 2, texture_y + texture.height + text_size.y + 10, 20, BLACK); EndDrawing(); - //---------------------------------------------------------------------------------- } - // De-Initialization - //-------------------------------------------------------------------------------------- - CloseWindow(); // Close window and OpenGL context + CloseWindow(); return 0; } |