From fccd08466a8e9c7ba84f24a750ac3c3ce2db11d1 Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 25 Oct 2023 20:24:29 +0200 Subject: [PATCH] player now hardcoded to spawn in the level rather than on top of it --- src/fencer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fencer.c b/src/fencer.c index 48a3810..708c920 100644 --- a/src/fencer.c +++ b/src/fencer.c @@ -2,6 +2,7 @@ #include "camera.h" #include "debug.h" #include "input.h" +#include "physics_entity.h" #include "physics_world.h" #include "program.h" #include "rigidbody.h" @@ -20,7 +21,7 @@ void play() { g_camera.fov = 40; player = malloc(sizeof(Player)); - player_spawn(player, (Vector){5.f, -5.f}); + player_spawn(player, (Vector){1.25f, 20.f}); level = level_load("level_0"); }