battery art
This commit is contained in:
@@ -30,7 +30,6 @@ region = NodePath("../..")
|
||||
y_sort_enabled = true
|
||||
|
||||
[node name="Player" parent="Entities" unique_id=75851644 instance=ExtResource("5_ovqi1")]
|
||||
z_index = 1
|
||||
|
||||
[node name="RechargeStation" parent="Entities" unique_id=2068738444 instance=ExtResource("7_6d8m3")]
|
||||
unique_name_in_owner = true
|
||||
|
||||
@@ -76,10 +76,13 @@ func _ready():
|
||||
data.add_plant_data(e.data, false)
|
||||
|
||||
ground_layer = GroundLayer.new(self)
|
||||
ground_layer.name = "GroundLayer"
|
||||
add_child(ground_layer)
|
||||
rock_layer = RockLayer.new(self)
|
||||
rock_layer.name = "RockLayer"
|
||||
add_child(rock_layer)
|
||||
decontamination_layer = DecontaminationLayer.new(self)
|
||||
decontamination_layer.name = "DecontaminationLayer"
|
||||
add_child(decontamination_layer)
|
||||
|
||||
%AstraDoor.global_position = data.player_spawn
|
||||
@@ -92,6 +95,7 @@ func _ready():
|
||||
edit_map_origin()
|
||||
|
||||
spawn_object_random_move(%RechargeStation)
|
||||
%RechargeStation.update()
|
||||
spawn_object_random_move(%BoreaDoor)
|
||||
spawn_object_random_move(%ShipGarageDoor)
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ const CRISTAL_LOOT_CHANCE : float = 1
|
||||
enum TileType { EMPTY,ROCK,CRISTAL }
|
||||
|
||||
func setup():
|
||||
z_index = 2
|
||||
z_index = -1
|
||||
|
||||
func place_rocks(coords : Array[Vector2i], type := TileType.ROCK,on_finished : Callable = (func(): pass)):
|
||||
if type != TileType.EMPTY:
|
||||
|
||||
Reference in New Issue
Block a user