aboutsummaryrefslogtreecommitdiff
path: root/game/coins/CoinPool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/coins/CoinPool.cpp')
-rw-r--r--game/coins/CoinPool.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/game/coins/CoinPool.cpp b/game/coins/CoinPool.cpp
new file mode 100644
index 0000000..439b3b3
--- /dev/null
+++ b/game/coins/CoinPool.cpp
@@ -0,0 +1,16 @@
+#include "CoinPool.h"
+#include "CoinScript.h"
+#include "CoinSubScene.h"
+#include "api/BehaviorScript.h"
+#include "api/GameObject.h"
+
+using namespace crepe;
+using namespace std;
+
+void CoinPool::create_coins(crepe::Scene & scn) {
+ int amount = 0;
+ CoinSubScene coin;
+ while(amount < this->MAXIMUM_AMOUNT){
+ amount = coin.create(scn,amount);
+ }
+}