From 126c402548281f3a97e3a9e0ef60c45147c87fa0 Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Mon, 6 Jan 2025 20:52:39 +0100 Subject: endgamesubscene finished --- game/coins/CoinSubScene.cpp | 3 --- game/coins/CoinSystemScript.cpp | 6 +----- 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'game/coins') diff --git a/game/coins/CoinSubScene.cpp b/game/coins/CoinSubScene.cpp index 604af78..3914921 100644 --- a/game/coins/CoinSubScene.cpp +++ b/game/coins/CoinSubScene.cpp @@ -5,8 +5,6 @@ #include "api/Rigidbody.h" #include "api/Scene.h" #include "api/AudioSource.h" -#include -#include #include "CoinScript.h" #include "../Config.h" @@ -18,7 +16,6 @@ int CoinSubScene::create(Scene & scn){ static int coin_counter = 0; string unique_name = "coin_" + to_string(coin_counter++); - cout << "new coin: "<< unique_name << endl; GameObject coin = scn.new_object(unique_name.c_str(),"coin",vec2{650,0},0,1); coin.add_component(Rigidbody::Data{ diff --git a/game/coins/CoinSystemScript.cpp b/game/coins/CoinSystemScript.cpp index b77c597..c9c301e 100644 --- a/game/coins/CoinSystemScript.cpp +++ b/game/coins/CoinSystemScript.cpp @@ -5,7 +5,6 @@ #include "api/Sprite.h" #include "api/Transform.h" #include -#include "iostream" using namespace crepe; using namespace std; @@ -239,10 +238,7 @@ void CoinSystemScript::generate_locations(){ std::uniform_real_distribution space_dist(SPAWN_SPACING_MIN, SPAWN_SPACING_MAX); float spacing = space_dist(engine); - - - cout << "selected " << selected_index << std::endl; - cout << "spacing " << spacing << std::endl; + // Call the corresponding function and return the new x position this->system_position += functions[selected_index]({this->system_position,0}); this->system_position += spacing; -- cgit v1.2.3