refactor worldgen to class, make worldgen functional

This commit is contained in:
Antti Hakkarainen 2023-02-09 22:20:23 +02:00
parent 5cb839d8e2
commit 7651e574c1
5 changed files with 248 additions and 126 deletions

View file

@ -462,7 +462,14 @@ texture = ExtResource("3_yddbk")
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_hwjm3"]
texture = ExtResource("5_bqev6")
0:0/next_alternative_id = 4
0:0/0 = 0
0:0/1 = 1
0:0/1/flip_h = true
0:0/2 = 2
0:0/2/flip_v = true
0:0/3 = 3
0:0/3/transpose = true
1:0/0 = 0
2:0/0 = 0
3:0/0 = 0
@ -1514,7 +1521,6 @@ offset_right = 936.0
offset_bottom = 256.0
horizontal_alignment = 2
[connection signal="set_camera_position" from="World" to="World/CameraZoom2D" method="_on_world_set_camera_position"]
[connection signal="button_pressed" from="UILayer/Control" to="World" method="_on_control_button_pressed"]
[connection signal="pressed" from="UILayer/Control/ConstructionPanel/button_residental" to="UILayer/Control" method="_on_button_residental_pressed"]
[connection signal="pressed" from="UILayer/Control/ConstructionPanel/button_commercial" to="UILayer/Control" method="_on_button_commercial_pressed"]