aboutsummaryrefslogtreecommitdiff
path: root/src/example/PlayerScript.cpp
diff options
context:
space:
mode:
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));
}