From 74f70c61a37c94727e1411696f050cf588cf3446 Mon Sep 17 00:00:00 2001 From: max-001 Date: Fri, 20 Dec 2024 12:05:52 +0100 Subject: Fix merge issues --- src/example/PlayerScript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/example/PlayerScript.cpp') diff --git a/src/example/PlayerScript.cpp b/src/example/PlayerScript.cpp index a147e06..1c388f5 100644 --- a/src/example/PlayerScript.cpp +++ b/src/example/PlayerScript.cpp @@ -5,7 +5,7 @@ using namespace crepe; using namespace std; -void PlayerScript::update() { +void PlayerScript::fixed_update(crepe::duration_t dt) { Rigidbody & rb = this->get_components_by_name("player").front(); if (this->get_key_state(Keycode::SPACE)) rb.add_force_linear(vec2(0, -10)); } -- cgit v1.2.3