mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-06 19:22:20 +00:00
ui tile in game are transluscent
This commit is contained in:
+2
-1
@@ -9,4 +9,5 @@ emsdk/
|
|||||||
build_web/*
|
build_web/*
|
||||||
wasm-python.py
|
wasm-python.py
|
||||||
lua54*
|
lua54*
|
||||||
include/*
|
include/*
|
||||||
|
save/*
|
||||||
@@ -216,7 +216,7 @@ namespace BBM
|
|||||||
int y = (playerCount % 3 != 0) ? 1080 - 10 - 248 : 10;
|
int y = (playerCount % 3 != 0) ? 1080 - 10 - 248 : 10;
|
||||||
scene->addEntity("player color tile")
|
scene->addEntity("player color tile")
|
||||||
.addComponent<PositionComponent>(x, y - 2, 0)
|
.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")
|
scene->addEntity("player ui tile")
|
||||||
.addComponent<PositionComponent>(x, y, 0)
|
.addComponent<PositionComponent>(x, y, 0)
|
||||||
.addComponent<Drawable2DComponent, RAY::Texture>(texturePath);
|
.addComponent<Drawable2DComponent, RAY::Texture>(texturePath);
|
||||||
|
|||||||
Reference in New Issue
Block a user