diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-08 09:52:00 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-08 09:52:00 +0100 |
commit | b1824253875901b4fb6f4c5fee72aea6d807d370 (patch) | |
tree | 8acc156e68d48022f453dcf06b541f77a5803484 /game/coins/CoinPoolSubScene.cpp | |
parent | e9082de7d114ce024a884cac38c545c99de4026a (diff) | |
parent | e75ca1c947f3cde19bebf15049732bc069c6e913 (diff) |
Merge remote-tracking branch 'origin/master' into max/game2
Diffstat (limited to 'game/coins/CoinPoolSubScene.cpp')
-rw-r--r-- | game/coins/CoinPoolSubScene.cpp | 13 |
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); + } +} |