aboutsummaryrefslogtreecommitdiff
path: root/src/example/PlayerScript.cpp
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-12-20 12:05:52 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-12-20 12:05:52 +0100
commit74f70c61a37c94727e1411696f050cf588cf3446 (patch)
tree389c1e1a9b4b3a94dc9c10a94f00b28fe1e007ff /src/example/PlayerScript.cpp
parent79d3a9f4311e6684b6df83a15ca7844f58c1959c (diff)
Fix merge issues
Diffstat (limited to 'src/example/PlayerScript.cpp')
-rw-r--r--src/example/PlayerScript.cpp2
1 files changed, 1 insertions, 1 deletions
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<Rigidbody>("player").front();
if (this->get_key_state(Keycode::SPACE)) rb.add_force_linear(vec2(0, -10));
}