#include "EndGameScript.h" #include #include using namespace crepe; using namespace std; void 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"); // ... }