aboutsummaryrefslogtreecommitdiff
path: root/game/coins/CoinSubScene.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-07 14:06:45 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-07 14:06:45 +0100
commit41f890863706ee8ede43021fe83b776b638a18b7 (patch)
tree4ee74df7e60c8c22c61a1748dd648dda2783b21f /game/coins/CoinSubScene.cpp
parentbc66e7195c80facca244f933b882011e5e81fa3c (diff)
fixed coins and improved coin
Diffstat (limited to 'game/coins/CoinSubScene.cpp')
-rw-r--r--game/coins/CoinSubScene.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/game/coins/CoinSubScene.cpp b/game/coins/CoinSubScene.cpp
index 72319ca..9c9caa3 100644
--- a/game/coins/CoinSubScene.cpp
+++ b/game/coins/CoinSubScene.cpp
@@ -11,10 +11,9 @@
using namespace crepe;
using namespace std;
-int CoinSubScene::create(Scene & scn){
+int CoinSubScene::create(Scene & scn,int coin_counter){
vec2 size = {20, 20};
- static int coin_counter = 0;
string unique_name = "coin_" + to_string(coin_counter++);
GameObject coin = scn.new_object(unique_name.c_str(),"coin",vec2{650,0},0,1);