diff options
| author | realtradam <[email protected]> | 2024-05-12 15:35:37 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-05-12 15:35:37 -0400 |
| commit | f5311cc940fd94aa70808f19a38581c80b764615 (patch) | |
| tree | 469b4cf4a1f96d9870cebb237cad620a51adb12f /src/main.c | |
| parent | c0ff8b58a37a7d66b3ba5d2089132fb589b03ede (diff) | |
| download | tojam2024-f5311cc940fd94aa70808f19a38581c80b764615.tar.gz tojam2024-f5311cc940fd94aa70808f19a38581c80b764615.zip | |
working movement system
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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(); |
