Barely progress on tilesets

This commit is contained in:
2022-12-04 21:25:13 -08:00
parent b5d7c927c5
commit bcdb0742f3
23 changed files with 330 additions and 23 deletions

View File

@ -16,6 +16,7 @@
#include "visualnovel/events/PokerInitialEvent.hpp"
#include "visualnovel/events/SimpleLoopEvent.hpp"
#include "ui/PokerPlayerDisplay.hpp"
#include "prefabs/VNPenny.hpp"
namespace Dawn {
class TestScene : public Scene {
@ -30,6 +31,7 @@ namespace Dawn {
vectorAppend(&assets, &PokerGameTextbox::getAssets(assMan));
vectorAppend(&assets, &PokerPlayerDisplay::getAssets(assMan));
vectorAppend(&assets, &VNPenny::getAssets(assMan));
return assets;
}
@ -52,12 +54,11 @@ namespace Dawn {
auto pokerGame = pokerGameItem->addComponent<PokerGame>();
for(int32_t i = 0; i < 5; i++) {
auto pokerPlayerInstance = this->createSceneItem();
auto pokerPlayer = pokerPlayerInstance->addComponent<PokerPlayer>();
auto player = VNPenny::create(this);
auto uiPlayer = canvas->addElement<PokerPlayerDisplay>();
uiPlayer->setTransform(UI_COMPONENT_ALIGN_STRETCH, UI_COMPONENT_ALIGN_STRETCH, glm::vec4(i * 220, 0, 0, 0), 0);
uiPlayer->setPlayer(pokerPlayer);
uiPlayer->setPlayer(player->getComponent<PokerPlayer>());
}
auto betting = vnManager