aboutsummaryrefslogtreecommitdiff
path: root/game/coins
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-06 20:52:39 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-06 20:52:39 +0100
commit126c402548281f3a97e3a9e0ef60c45147c87fa0 (patch)
treef2f2e763bb6ae3a7ee1bc7719cef2fee8ae1ad5d /game/coins
parent867414de0e2e963b0d1c35b3a46884a8a03a9294 (diff)
endgamesubscene finished
Diffstat (limited to 'game/coins')
-rw-r--r--game/coins/CoinSubScene.cpp3
-rw-r--r--game/coins/CoinSystemScript.cpp6
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;