summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorBoredGuy <osome3717@gmail.com>2026-03-16 17:47:57 +0300
committerBoredGuy <osome3717@gmail.com>2026-03-16 17:47:57 +0300
commitac02199694ffef81a00a8ea47420e88ef0a35f67 (patch)
treeab8be37dd6960954d7baa54bb1273980063c66ba /src/main.c
parent2c2be83a370318ca69824538ed3e61784295a772 (diff)
More work on systems
- Will be done soon (I think) - Added first entity
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 9438c45..8187ccf 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3,6 +3,7 @@
#include "settings.h"
#include "physics.h"
#include "game.h"
+#include "player.h"
struct settings settings;
extern struct game game;
@@ -13,9 +14,14 @@ int main() {
InitWindow(settings.window_width, settings.window_height, "Platformer");
SetTargetFPS(settings.target_fps);
+ add_player(20.0, 20.0);
+
while (!WindowShouldClose()) {
+ update_game(GetFrameTime());
+
BeginDrawing();
ClearBackground(RAYWHITE);
+ draw_game();
EndDrawing();
}