From f5311cc940fd94aa70808f19a38581c80b764615 Mon Sep 17 00:00:00 2001 From: realtradam Date: Sun, 12 May 2024 15:35:37 -0400 Subject: working movement system --- src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 3f5e94d..38f6576 100644 --- a/src/main.c +++ b/src/main.c @@ -116,7 +116,6 @@ int main(void) //----------------------------------------------------- //controller_read(&controllers); - movePlayers(); camera = lookThroughPlayer(camera, world.players[0]); // Update @@ -148,13 +147,14 @@ int main(void) //DrawCubeTextureRec(texture, (Rectangle){ 0, texture.height/2, texture.width/2, texture.height/2 }, // (Vector3){ 2.0f, 1.0f, 0.0f }, 2.0f, 2.0f, 2.0f, WHITE); + movePlayers(); updateController(); char text[50]; sprintf(text, "Joystick %d,%d", inputs_p1.stick_x, inputs_p1.stick_y); DrawText(text, 10, 30, 12, GREEN); + /* DrawText("Position", 150, 30, 12, GREEN); - sprintf(text, "x: %f", camera.position.x); DrawText(text, 150, 45, 12, GREEN); sprintf(text, "y: %f", camera.position.y); DrawText(text, 150, 60, 12, GREEN); @@ -167,6 +167,7 @@ int main(void) DrawText(text, 220, 60, 12, GREEN); sprintf(text, "%f", camera.target.z); DrawText(text, 220, 75, 12, GREEN); + */ DrawFPS(10, 10); EndDrawing(); -- cgit v1.2.3