Compare commits
No commits in common. "40a80801e72a9d07c0991d7f6bf49dfcd0dac154" and "b4dbd50a8f06ce647a4d1bd0d772ebe54c2fec38" have entirely different histories.
40a80801e7
...
b4dbd50a8f
2 changed files with 5 additions and 5 deletions
|
|
@ -21,10 +21,6 @@
|
||||||
[node name="Earth" parent="." instance=ExtResource("3_lquwl")]
|
[node name="Earth" parent="." instance=ExtResource("3_lquwl")]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
|
|
||||||
[node name="Debug_Camera" type="Camera2D" parent="."]
|
|
||||||
scale = Vector2(41.02, 41.02)
|
|
||||||
zoom = Vector2(0.12, 0.12)
|
|
||||||
|
|
||||||
[node name="Player" parent="." instance=ExtResource("2_1bvp3")]
|
[node name="Player" parent="." instance=ExtResource("2_1bvp3")]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
position = Vector2(578, -3017)
|
position = Vector2(578, -3017)
|
||||||
|
|
@ -34,6 +30,10 @@ scale = Vector2(3, 3)
|
||||||
position = Vector2(0, -50)
|
position = Vector2(0, -50)
|
||||||
ignore_rotation = false
|
ignore_rotation = false
|
||||||
|
|
||||||
|
[node name="Debug_Camera" type="Camera2D" parent="."]
|
||||||
|
scale = Vector2(41.02, 41.02)
|
||||||
|
zoom = Vector2(0.12, 0.12)
|
||||||
|
|
||||||
[node name="Building Generator" type="Node" parent="."]
|
[node name="Building Generator" type="Node" parent="."]
|
||||||
script = ExtResource("4_1bvp3")
|
script = ExtResource("4_1bvp3")
|
||||||
initial_buildings = 10
|
initial_buildings = 10
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ func place_object_list(obj_list : Node2D, building):
|
||||||
# The building remembers these objects: If it is destroyed, so are they.
|
# The building remembers these objects: If it is destroyed, so are they.
|
||||||
if object is Platform or object is Trap or object is Item:
|
if object is Platform or object is Trap or object is Item:
|
||||||
building.objects.append(object)
|
building.objects.append(object)
|
||||||
if "building" in object: object.building = building
|
if "building" in object: object.building = self
|
||||||
# This scales platforms hoizontally to make sure they still form a floor without gaps.
|
# This scales platforms hoizontally to make sure they still form a floor without gaps.
|
||||||
if(object.has_method("init_at_horizontal_distortion")):
|
if(object.has_method("init_at_horizontal_distortion")):
|
||||||
object.init_at_horizontal_distortion(object.position.length() / Grid.ground_radius)
|
object.init_at_horizontal_distortion(object.position.length() / Grid.ground_radius)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue