summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorLuca Sas <sas.luca.alex@gmail.com>2020-03-24 16:26:18 +0000
committerLuca Sas <sas.luca.alex@gmail.com>2020-03-24 16:26:18 +0000
commit097dff02004c1ba618ea7355313150a61cac201f (patch)
tree51b3bf815ae0e4f4a70de279019a3254a2146867 /src/main.c
parentb573b7c968d267904c971e08c4b2fb96bb987c1a (diff)
downloadgamejam-slgj-2024-097dff02004c1ba618ea7355313150a61cac201f.tar.gz
gamejam-slgj-2024-097dff02004c1ba618ea7355313150a61cac201f.tar.bz2
gamejam-slgj-2024-097dff02004c1ba618ea7355313150a61cac201f.zip
Updated gitignore and added asset path variable
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 4b5071d..cc6efd1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3,13 +3,16 @@
#define SCREEN_WIDTH (800)
#define SCREEN_HEIGHT (450)
+// Change this depending on the path of your executable relative to the assets folder
+#define ASSET_PATH "../assets/"
+
int main(void)
{
// Initialization
//--------------------------------------------------------------------------------------
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "Window title");
- Texture2D texture = LoadTexture("../assets/test.png");
+ Texture2D texture = LoadTexture(ASSET_PATH"test.png");
SetTargetFPS(60); // Set our game to run at 60 frames-per-second