diff options
author | BoredGuy <osome3717@gmail.com> | 2025-07-29 11:50:57 +0300 |
---|---|---|
committer | BoredGuy <osome3717@gmail.com> | 2025-07-29 11:50:57 +0300 |
commit | 815aec62f8ae3a403e913559d5fe6138c8825007 (patch) | |
tree | 3041d4b8a843c05a4da02e66d5e2f63e1e713b72 /src/main.c | |
parent | 9e1627c229d8d094c7b55751d82db9d3579a16e1 (diff) |
Added background entity and asset system
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 +} |