Add edge-scrolling camera
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://bf8lqbexvnx6e" path="res://docs/gyms/tiny_sword/buildings/monastery/monastery.tscn" id="13_no27p"]
|
||||
[ext_resource type="PackedScene" uid="uid://rejxvjwybkll" path="res://sandbox/tiny_swords/Terrain/Resources/Wood/Trees/tree_1.tscn" id="14_0cs5o"]
|
||||
[ext_resource type="PackedScene" uid="uid://bp5ng4vu4ot4a" path="res://docs/gyms/tiny_sword/buildings/alchemy_tower/alchemy_tower.tscn" id="14_hum8s"]
|
||||
[ext_resource type="Script" uid="uid://b6systw05frh0" path="res://core/edge_scroll_camera.gd" id="17_x77df"]
|
||||
|
||||
[node name="TinySwords" type="Node" unique_id=498237642]
|
||||
|
||||
@@ -32,6 +33,22 @@ script = ExtResource("5_x77df")
|
||||
config = ExtResource("6_xnhlc")
|
||||
game_state = NodePath("..")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="LevelGameState" unique_id=993804078]
|
||||
|
||||
[node name="UI" type="Control" parent="LevelGameState/CanvasLayer" unique_id=1299828389]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
|
||||
[node name="CurrencyPanel" parent="LevelGameState/CanvasLayer/UI" unique_id=2000000001 instance=ExtResource("9_cpnl")]
|
||||
layout_mode = 1
|
||||
|
||||
[node name="GoalsDebugUI" parent="LevelGameState/CanvasLayer/UI" unique_id=1494700185 instance=ExtResource("10_qifrv")]
|
||||
layout_mode = 1
|
||||
offset_left = 1433.0
|
||||
offset_top = 5.0
|
||||
offset_right = 1913.0
|
||||
offset_bottom = 263.0
|
||||
|
||||
[node name="World" type="Node2D" parent="LevelGameState" unique_id=2118297724]
|
||||
|
||||
[node name="ForestProps" type="Node2D" parent="LevelGameState/World" unique_id=649424542]
|
||||
@@ -72,18 +89,6 @@ position = Vector2(105, 920)
|
||||
[node name="AlchemyTower" parent="LevelGameState/World" unique_id=51852160 instance=ExtResource("14_hum8s")]
|
||||
position = Vector2(1239, 775)
|
||||
|
||||
[node name="UI" type="Control" parent="LevelGameState" unique_id=1299828389]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="CurrencyPanel" parent="LevelGameState/UI" unique_id=2000000001 instance=ExtResource("9_cpnl")]
|
||||
layout_mode = 1
|
||||
|
||||
[node name="GoalsDebugUI" parent="LevelGameState/UI" unique_id=1494700185 instance=ExtResource("10_qifrv")]
|
||||
layout_mode = 1
|
||||
offset_left = 1433.0
|
||||
offset_top = 5.0
|
||||
offset_right = 1913.0
|
||||
offset_bottom = 263.0
|
||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=1494908331]
|
||||
offset = Vector2(960, 540)
|
||||
script = ExtResource("17_x77df")
|
||||
|
||||
Reference in New Issue
Block a user