Trying things

This commit is contained in:
Zoe Roux
2021-06-10 19:03:16 +02:00
parent e38c2e56fe
commit 46491ce367
+2 -3
View File
@@ -302,14 +302,13 @@ namespace BBM
.addComponent<PositionComponent>(8, 20, 7)
.addComponent<CameraComponent>(Vector3f(8, 0, 8));
//when a player is ready:
//p1tile.getComponent<Drawable2DComponent>().drawable.get()->setColor(BLUE);
p1tile.getComponent<Drawable2DComponent>().drawable.get()->setColor(BLUE);
//p2tile.getComponent<Drawable2DComponent>().drawable.get()->setColor(RED);
//p3tile.getComponent<Drawable2DComponent>().drawable.get()->setColor(GREEN);
//p4tile.getComponent<Drawable2DComponent>().drawable.get()->setColor(YELLOW);
//pX
//RAY::Texture *txt = dynamic_cast<RAY::Texture *>(entity.getComponent<Drawable2DComponent>().drawable.get());
//txt->use("assets/player/valid_selection_icon.png")
p1.getComponent<Drawable2DComponent>().drawable = std::make_shared<RAY::Texture>("assets/player/valid_selection_icon.png");
//to do
// quand no player is reaydy, the play button should be diasbled