ui tile in game are transluscent

This commit is contained in:
arthur.jamet
2021-06-19 17:42:22 +02:00
parent 2c83021579
commit b4897e4b0e
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@@ -9,4 +9,5 @@ emsdk/
build_web/*
wasm-python.py
lua54*
include/*
include/*
save/*

View File

@@ -216,7 +216,7 @@ namespace BBM
int y = (playerCount % 3 != 0) ? 1080 - 10 - 248 : 10;
scene->addEntity("player color tile")
.addComponent<PositionComponent>(x, y - 2, 0)
.addComponent<Drawable2DComponent, RAY2D::Rectangle>(x, y, 320, 248, _rayColors[color]);
.addComponent<Drawable2DComponent, RAY2D::Rectangle>(x, y, 320, 248, RAY::Color(_rayColors[color]).setA(150));
scene->addEntity("player ui tile")
.addComponent<PositionComponent>(x, y, 0)
.addComponent<Drawable2DComponent, RAY::Texture>(texturePath);