summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorBoredGuy <osome3717@gmail.com>2025-07-29 11:50:57 +0300
committerBoredGuy <osome3717@gmail.com>2025-07-29 11:50:57 +0300
commit815aec62f8ae3a403e913559d5fe6138c8825007 (patch)
tree3041d4b8a843c05a4da02e66d5e2f63e1e713b72 /src/main.c
parent9e1627c229d8d094c7b55751d82db9d3579a16e1 (diff)
Added background entity and asset system
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 1bfbb61..661c615 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3,6 +3,7 @@
#include "constants.h"
#include "game.h"
#include "player.h"
+#include "background.h"
int main() {
SetConfigFlags(FLAG_VSYNC_HINT); //Always better than fixed FPS imo
@@ -11,7 +12,11 @@ int main() {
InitGame();
AddPlayer(0.0, 0.0);
+
AddWall(200, 100, 10000, 100);
+ AddWall(200, 400, 10000, 100);
+
+ AddBackground("bar-background");
while(!WindowShouldClose()) {
UpdateGame(GetFrameTime());
@@ -21,4 +26,4 @@ int main() {
CloseWindow();
return 0;
-} \ No newline at end of file
+}