Tetris: add block texture

This commit is contained in:
2020-09-29 18:22:26 +02:00
parent eb60c88dac
commit 7621dc8dd4
8 changed files with 61 additions and 27 deletions
+1 -1
View File
@@ -381,7 +381,7 @@ tetrisZLeft( std::shared_ptr< SDLPP::Renderer > renderer,
}
void updateColors() {
for(auto &x : g_main_scene->getObjects({BRICK_ID})) {
for(auto &x : g_main_scene->getObjects({BRICK_ID, SHADOW_ID})) {
x->specialAction(PIECE_ACTION_UPDATE_COLOR);
}
for(auto &x : g_main_scene->getObjects({BARRIER_ID})) {