aboutsummaryrefslogtreecommitdiff
path: root/game/coins/CoinPoolSubScene.cpp
diff options
context:
space:
mode:
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);
+ }
+}