Update test project for Godot 4.3 (#159)

Co-authored-by: Andi Susanto <and1zero@users.noreply.github.com>
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
Andi Susanto
2024-10-24 05:06:47 +08:00
committed by GitHub
parent dd1db58f33
commit 9a460209d7
25 changed files with 876 additions and 522 deletions

74
test-project/scenes/Main.tscn Executable file → Normal file
View File

@@ -1,68 +1,46 @@
[gd_scene load_steps=5 format=2]
[gd_scene load_steps=5 format=3 uid="uid://bo3no7bm4rb0n"]
[ext_resource path="res://scripts/Main.gd" type="Script" id=1]
[ext_resource path="res://scenes/Game.tscn" type="PackedScene" id=2]
[ext_resource path="res://scenes/HUD.tscn" type="PackedScene" id=3]
[ext_resource type="Script" path="res://scripts/Main.gd" id="1"]
[ext_resource type="PackedScene" path="res://scenes/Game.tscn" id="2"]
[ext_resource type="PackedScene" path="res://scenes/HUD.tscn" id="3"]
[sub_resource type="Curve2D" id=1]
bake_interval = 5.0
[sub_resource type="Curve2D" id="1"]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, 18.8947, 55.4928, 0, 0, 0, 0, -269.905, -419.567 )
"points": PackedVector2Array(0, 0, 0, 0, 18.8947, 55.4928, 0, 0, 0, 0, -269.905, -419.567)
}
point_count = 2
[node name="Main" type="Node2D"]
script = ExtResource( 1 )
script = ExtResource("1")
[node name="Game" parent="." instance=ExtResource( 2 )]
[node name="Game" parent="." instance=ExtResource("2")]
[node name="Path2D" type="Path2D" parent="."]
editor/display_folded = true
self_modulate = Color( 0.5, 0.6, 1, 0.7 )
position = Vector2( 460.871, 779.989 )
self_modulate = Color(0.5, 0.6, 1, 0.7)
position = Vector2(460.871, 779.989)
rotation = -3.14159
scale = Vector2( 2.52308, -0.891921 )
curve = SubResource( 1 )
scale = Vector2(2.52308, -0.891921)
curve = SubResource("1")
[node name="PathFollow2D" type="PathFollow2D" parent="Path2D"]
position = Vector2( -17.0181, -3.58169 )
offset = 69.1956
h_offset = 0.0
v_offset = 0.0
rotate = false
cubic_interp = true
position = Vector2(18.8947, 55.4928)
rotation = -2.11702
loop = false
lookahead = 4.0
[node name="MenuCamera" type="Camera2D" parent="Path2D/PathFollow2D"]
position = Vector2( 21.2, 58.5266 )
anchor_mode = 1
rotating = false
current = true
zoom = Vector2( 0.5, 0.5 )
limit_left = -10000000
limit_top = -10000000
limit_right = 10000000
limit_bottom = 10000000
limit_smoothed = false
drag_margin_h_enabled = true
drag_margin_v_enabled = true
smoothing_enabled = false
smoothing_speed = 5.0
offset_v = 0.0
offset_h = 0.0
drag_margin_left = 0.2
drag_margin_top = 0.2
drag_margin_right = 0.2
drag_margin_bottom = 0.2
editor_draw_screen = true
position = Vector2(21.2, 58.5266)
zoom = Vector2(0.5, 0.5)
drag_horizontal_enabled = true
drag_vertical_enabled = true
editor_draw_limits = true
editor_draw_drag_margin = true
[node name="HUD" parent="." instance=ExtResource( 3 )]
margin_left = 625.0
margin_top = 820.0
margin_right = 625.0
margin_bottom = 820.0
[node name="HUD" parent="." instance=ExtResource("3")]
layout_mode = 3
anchors_preset = 15
offset_left = 625.0
offset_top = 820.0
offset_right = 625.0
offset_bottom = 820.0
[connection signal="start_zoom_out" from="." to="." method="_on_Main_start_zoom_out"]