summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLucaSas <sas.luca.alex@gmail.com>2021-11-04 16:14:58 +0200
committerLucaSas <sas.luca.alex@gmail.com>2021-11-04 16:14:58 +0200
commitd96b4ebce5ee6245fa80d27d41b67aa56555c912 (patch)
treef28cb388a14c4bd9da8f4b57b213eb1539fc5367 /src
parent6bcb1207addb4afe041c94e68e23c77175164956 (diff)
downloadgamejam-slgj-2024-d96b4ebce5ee6245fa80d27d41b67aa56555c912.tar.gz
gamejam-slgj-2024-d96b4ebce5ee6245fa80d27d41b67aa56555c912.tar.bz2
gamejam-slgj-2024-d96b4ebce5ee6245fa80d27d41b67aa56555c912.zip
Changed the template to now download raylib instead of having it in the repo.
Diffstat (limited to 'src')
-rw-r--r--src/main.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/main.c b/src/main.c
deleted file mode 100644
index aeaa9df..0000000
--- a/src/main.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include "raylib.h"
-
-#define SCREEN_WIDTH (800)
-#define SCREEN_HEIGHT (450)
-
-int main(void)
-{
- InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "Window title");
- SetTargetFPS(60);
-
- Texture2D texture = LoadTexture(ASSETS_PATH"test.png");
-
- while (!WindowShouldClose())
- {
- BeginDrawing();
-
- ClearBackground(RAYWHITE);
-
- const int texture_x = SCREEN_WIDTH / 2 - texture.width / 2;
- const int texture_y = SCREEN_HEIGHT / 2 - texture.height / 2;
- DrawTexture(texture, texture_x, texture_y, WHITE);
-
- const char* text = "OMG! IT WORKS!";
- const Vector2 text_size = MeasureTextEx(GetFontDefault(), text, 20, 1);
- DrawText(text, SCREEN_WIDTH / 2 - text_size.x / 2, texture_y + texture.height + text_size.y + 10, 20, BLACK);
-
- EndDrawing();
- }
-
- CloseWindow();
-
- return 0;
-}