TIny cleanup

This commit is contained in:
2023-02-22 15:55:14 -08:00
parent d1bec11558
commit a3c0ed4f52
9 changed files with 97 additions and 57 deletions

View File

@ -11,7 +11,6 @@ using namespace Dawn;
TicTacToeGame::TicTacToeGame(SceneItem *item) : SceneItemComponent(item) {}
void TicTacToeGame::onStart() {
std::cout << "Test" << std::endl;
this->tiles = getScene()->findComponents<TicTacToeTile>();
getScene()->eventSceneUpdate.addListener(this, &TicTacToeGame::onSceneUpdate);

View File

@ -29,7 +29,7 @@ namespace Dawn {
camera->orthoLeft = -s * ratio;
camera->orthoRight = s * ratio;
// auto cube = SimpleSpinningCubePrefab::create(this);
auto cube = SimpleSpinningCubePrefab::create(this);
// TriangleMesh::createTriangleMesh(&cube->meshHost->mesh);
// SphereMesh::createSphere(&cube->meshHost->mesh, 1.0f, 16, 16);
@ -44,12 +44,6 @@ namespace Dawn {
// tile->ticTacToe->setState(i % 2 == 0 ? TIC_TAC_TOE_CROSS : TIC_TAC_TOE_NOUGHT);
}
}
this->debugCube((struct SceneDebugCube){
.min = glm::vec3(-0.5f, -0.5f, -0.5f),
.max = glm::vec3(0.5f, 0.5f, 0.5f),
COLOR_BLUE
});
}
std::vector<Asset*> getRequiredAssets() override {