diff --git a/examples/tetris/tetris.v b/examples/tetris/tetris.v index 85a6a3eac8..6b452932e5 100644 --- a/examples/tetris/tetris.v +++ b/examples/tetris/tetris.v @@ -115,7 +115,7 @@ mut: // gg context for drawing gg &gg.Context = voidptr(0) font_loaded bool - show_ghost bool + show_ghost bool = true // frame/time counters: frame int frame_old int @@ -226,7 +226,8 @@ fn (g &Game) draw_ghost() { pos_y := g.move_ghost() for i in 0 .. tetro_size { tetro := g.tetro[i] - g.draw_block_color(pos_y + tetro.y, g.pos_x + tetro.x, gx.gray) + g.draw_block_color(pos_y + tetro.y, g.pos_x + tetro.x, gx.rgba(125, 125, 225, + 40)) } } }