Browse Source

Put colors on bricks

DricomDragon 3 years ago
parent
commit
6cf165c39e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      godot/scripts/LifeContainer.gd

+ 2 - 1
godot/scripts/LifeContainer.gd

@@ -38,4 +38,5 @@ func _ready():
 
 func _draw():
 	for p in living_cells:
-		draw_string(default_font, p * Vector2(40, 20) + print_offset, str(living_cells[p]), Color.red)
+		draw_rect(Rect2(p * Vector2(40, 20) + Vector2(2, 2), Vector2(36, 16)), Color.red, true)
+		draw_string(default_font, p * Vector2(40, 20) + print_offset, str(living_cells[p]))