summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index 661c615..b7bef75 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,8 +1,8 @@
#include <stdio.h>
#include <raylib.h>
#include "constants.h"
+#include "assets.h"
#include "game.h"
-#include "player.h"
#include "background.h"
int main() {
@@ -10,13 +10,8 @@ int main() {
InitWindow(WINDOW_WIDTH, WINDOW_HEIGHT, "My BeatEmup");
SetTargetFPS(0);
+ LoadAssets();
InitGame();
- AddPlayer(0.0, 0.0);
-
- AddWall(200, 100, 10000, 100);
- AddWall(200, 400, 10000, 100);
-
- AddBackground("bar-background");
while(!WindowShouldClose()) {
UpdateGame(GetFrameTime());
@@ -24,6 +19,7 @@ int main() {
DrawGame();
}
+ UnloadAssets();
CloseWindow();
return 0;
}