diff options
| author | BoredGuy <osome3717@gmail.com> | 2026-03-16 17:47:57 +0300 |
|---|---|---|
| committer | BoredGuy <osome3717@gmail.com> | 2026-03-16 17:47:57 +0300 |
| commit | ac02199694ffef81a00a8ea47420e88ef0a35f67 (patch) | |
| tree | ab8be37dd6960954d7baa54bb1273980063c66ba /src/main.c | |
| parent | 2c2be83a370318ca69824538ed3e61784295a772 (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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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(); } |
