aboutsummaryrefslogtreecommitdiff
path: root/game/coins/CoinPoolSubScene.cpp
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2025-01-08 09:52:00 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2025-01-08 09:52:00 +0100
commitb1824253875901b4fb6f4c5fee72aea6d807d370 (patch)
tree8acc156e68d48022f453dcf06b541f77a5803484 /game/coins/CoinPoolSubScene.cpp
parente9082de7d114ce024a884cac38c545c99de4026a (diff)
parente75ca1c947f3cde19bebf15049732bc069c6e913 (diff)
Merge remote-tracking branch 'origin/master' into max/game2
Diffstat (limited to 'game/coins/CoinPoolSubScene.cpp')
-rw-r--r--game/coins/CoinPoolSubScene.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/game/coins/CoinPoolSubScene.cpp b/game/coins/CoinPoolSubScene.cpp
new file mode 100644
index 0000000..f8b5b70
--- /dev/null
+++ b/game/coins/CoinPoolSubScene.cpp
@@ -0,0 +1,13 @@
+#include "CoinPoolSubScene.h"
+#include "CoinSubScene.h"
+
+using namespace crepe;
+using namespace std;
+
+void CoinPoolSubScene::create_coins(crepe::Scene & scn) {
+ int amount = 0;
+ CoinSubScene coin;
+ while (amount < this->MAXIMUM_AMOUNT) {
+ amount = coin.create(scn, amount);
+ }
+}