Browse Source

Define life of new blocks with square law

DricomDragon 3 years ago
parent
commit
6a44dfe0d6
2 changed files with 2 additions and 2 deletions
  1. 1 1
      godot/scenes/main.tscn
  2. 1 1
      godot/scripts/Grid.gd

+ 1 - 1
godot/scenes/main.tscn

@@ -100,7 +100,7 @@ position = Vector2( 200, 400 )
 texture = ExtResource( 1 )
 
 [node name="ShootDelay" type="Timer" parent="Launcher"]
-wait_time = 0.3
+wait_time = 0.1
 one_shot = true
 
 [node name="UI" type="Control" parent="."]

+ 1 - 1
godot/scripts/Grid.gd

@@ -38,7 +38,7 @@ func generate_cell(x, y):
 
 func build_brick(x, y):
 	set_cell(x, y, Tile.BRICK)
-	living_cells[Vector2(x, y)] = current_row
+	living_cells[Vector2(x, y)] = current_row * current_row
 
 
 func damage_cell(tile_pos : Vector2):