cleaning missing infos

This commit is contained in:
Clément Le Bihan
2021-06-16 17:46:41 +02:00
parent 43de339cf7
commit fa8ca67fbb
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -154,7 +154,7 @@ namespace BBM
auto &aiLess = scene->addEntity("AI-")
.addComponent<PositionComponent>(1920 / 1.75, 2.10 * 1080 / 3, 0)
.addComponent<Drawable2DComponent, RAY::Texture>(false, "assets/buttons/cpu_remove.png")
.addComponent<Drawable2DComponent, RAY::Texture>("assets/buttons/cpu_remove.png")
.addComponent<OnClickComponent>([](WAL::Entity &entity, WAL::Wal &wal)
{
wal.getSystem<LobbySystem>().removeAI();
@@ -173,7 +173,7 @@ namespace BBM
for (int i = 0; i < 4; i++) {
auto &playerTile = scene->addEntity("player tile")
.addComponent<PositionComponent>(224 * (i + 1) + 200 * i, 1080 / 3, 0)
.addComponent<Drawable2DComponent, RAY2D::Rectangle>(false, RAY::Vector2(224 * (i + 1) + 200 * i, 1080 / 3), RAY::Vector2(200, 200), RAY::Color(0, 0, 0, 0));
.addComponent<Drawable2DComponent, RAY2D::Rectangle>(RAY::Vector2(224 * (i + 1) + 200 * i, 1080 / 3), RAY::Vector2(200, 200), RAY::Color(0, 0, 0, 0));
auto &player = scene->addEntity("player")
.addComponent<PositionComponent>(224 * (i + 1) + 200 * i, 1080 / 3, 0)
.addComponent<Drawable2DComponent, RAY::Texture>("assets/player/icons/none.png");
+1 -1
View File
@@ -73,7 +73,7 @@ namespace BBM
});
auto &exit = scene->addEntity("exit button")
.addComponent<PositionComponent>(1920 / 2.5, 1080 - 180, 0)
.addComponent<Drawable2DComponent, RAY::Texture>(false, "assets/buttons/button_exit.png")
.addComponent<Drawable2DComponent, RAY::Texture>("assets/buttons/button_exit.png")
.addComponent<OnIdleComponent>([](WAL::Entity &entity, WAL::Wal &)
{
RAY::Texture *texture = dynamic_cast<RAY::Texture *>(entity.getComponent<Drawable2DComponent>().drawable.get());
@@ -27,19 +27,19 @@ namespace BBM
RAY2D::Text *text = nullptr;
static auto &rayText = scene->addEntity("raylibtext Rectangle")
.addComponent<PositionComponent>(1920 / 2 - 44, 1080 / 2 + 48, 0)
.addComponent<Drawable2DComponent, RAY2D::Text>(false, "", 50, RAY::Vector2(), BLACK);
.addComponent<Drawable2DComponent, RAY2D::Text>("", 50, RAY::Vector2(), BLACK);
static auto &bottomRectangle = scene->addEntity("bottom Rectangle")
.addComponent<PositionComponent>(1920 / 2 - 128, 1080 / 2 - 128, 0)
.addComponent<Drawable2DComponent, RAY2D::Rectangle>(false, logoPos, RAY::Vector2(16, 16), BLACK);
.addComponent<Drawable2DComponent, RAY2D::Rectangle>(logoPos, RAY::Vector2(16, 16), BLACK);
static auto &leftRectangle = scene->addEntity("left Rectangle")
.addComponent<PositionComponent>(1920 / 2 - 128, 1080 / 2 - 128, 0)
.addComponent<Drawable2DComponent, RAY2D::Rectangle>(false, logoPos, RAY::Vector2(16, 16), BLACK);
.addComponent<Drawable2DComponent, RAY2D::Rectangle>(logoPos, RAY::Vector2(16, 16), BLACK);
static auto &rightRectangle = scene->addEntity("right Rectangle")
.addComponent<PositionComponent>(1920 / 2 - 128, 1080 / 2 - 128, 0)
.addComponent<Drawable2DComponent, RAY2D::Rectangle>(false, logoPos, RAY::Vector2(16, 16), BLACK);
.addComponent<Drawable2DComponent, RAY2D::Rectangle>(logoPos, RAY::Vector2(16, 16), BLACK);
static auto &topRectangle = scene->addEntity("top Rectangle")
.addComponent<PositionComponent>(1920 / 2 - 128, 1080 / 2 - 128, 0)
.addComponent<Drawable2DComponent, RAY2D::Rectangle>(false, logoPos, RAY::Vector2(16, 16), BLACK);
.addComponent<Drawable2DComponent, RAY2D::Rectangle>(logoPos, RAY::Vector2(16, 16), BLACK);
static short letterCounter = 0;
switch (component.currentStep)