From 81c25a7aa3722e2a65ccae29d22aa37bc5d1bc70 Mon Sep 17 00:00:00 2001 From: Max-001 Date: Tue, 24 Dec 2024 12:23:15 +0100 Subject: Slowed down at end --- game/EndGameScript.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'game') diff --git a/game/EndGameScript.cpp b/game/EndGameScript.cpp index 6b9c47f..55f08cd 100644 --- a/game/EndGameScript.cpp +++ b/game/EndGameScript.cpp @@ -1,11 +1,20 @@ #include "EndGameScript.h" +#include +#include + +using namespace crepe; +using namespace std; + void EndGameScript::init() { - logf("EndGameScript::init"); - // ... + Rigidbody & rb_player = this->get_components_by_name("player").front(); + Rigidbody & rb_camera = this->get_components_by_name("camera").front(); + + rb_player.data.linear_velocity_coefficient = vec2(0.8, 0.8); + rb_camera.data.linear_velocity_coefficient = vec2(0.8, 0.8); } void EndGameScript::fixed_update(crepe::duration_t dt) { - logf("EndGameScript::fixed_update"); + //logf("EndGameScript::fixed_update"); // ... } -- cgit v1.2.3