diff options
Diffstat (limited to 'game/coins/CoinPool.cpp')
-rw-r--r-- | game/coins/CoinPool.cpp | 16 |
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); + } +} |