diff options
Diffstat (limited to 'game/coins')
-rw-r--r-- | game/coins/CoinSubScene.cpp | 3 | ||||
-rw-r--r-- | game/coins/CoinSystemScript.cpp | 6 |
2 files changed, 1 insertions, 8 deletions
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 <concepts> -#include <iostream> #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>(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 <random> -#include "iostream" using namespace crepe; using namespace std; @@ -239,10 +238,7 @@ void CoinSystemScript::generate_locations(){ std::uniform_real_distribution<float> 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; |