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

29
test-project/scenes/EnemyGenerator.tscn Executable file → Normal file
View File

@@ -1,38 +1,29 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=3 format=3 uid="uid://b2fpxxnc2fq3o"]
[ext_resource path="res://scripts/EnemyGenerator.gd" type="Script" id=1]
[ext_resource type="Script" path="res://scripts/EnemyGenerator.gd" id="1"]
[sub_resource type="Curve2D" id=1]
bake_interval = 5.0
[sub_resource type="Curve2D" id="1"]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, 802.371, -163.584, 0, 0, 0, 0, 959.909, -42.497, 0, 0, 0, 0, 1955.58, -35.2126, 0, 0, 0, 0, 1977.69, -34.257, 0, 0, 0, 0, 2072.89, -95.3282, 0, 0, 0, 0, 2171.96, -161.2, 0, 0, 0, 0, 1329.54, -162.398, 0, 0, 0, 0, 958.623, -161.461, 0, 0, 0, 0, 801.772, -163.584, 0, 0, 0, 0, 802.371, -163.584 )
"points": PackedVector2Array(0, 0, 0, 0, 802.371, -163.584, 0, 0, 0, 0, 959.909, -42.497, 0, 0, 0, 0, 1955.58, -35.2126, 0, 0, 0, 0, 1977.69, -34.257, 0, 0, 0, 0, 2072.89, -95.3282, 0, 0, 0, 0, 2171.96, -161.2, 0, 0, 0, 0, 1329.54, -162.398, 0, 0, 0, 0, 958.623, -161.461, 0, 0, 0, 0, 801.772, -163.584, 0, 0, 0, 0, 802.371, -163.584)
}
point_count = 10
[node name="EnemyGenerator" type="Node2D"]
script = ExtResource( 1 )
script = ExtResource("1")
[node name="Enemies" type="Node" parent="."]
[node name="SpawnArea" type="Path2D" parent="."]
self_modulate = Color( 0.5, 0.6, 1, 0.7 )
curve = SubResource( 1 )
self_modulate = Color(0.5, 0.6, 1, 0.7)
curve = SubResource("1")
[node name="SpawnLocation" type="PathFollow2D" parent="SpawnArea"]
position = Vector2( 802.371, -163.584 )
rotation = 0.655325
offset = 0.0
h_offset = 0.0
v_offset = 0.0
rotate = true
cubic_interp = true
loop = true
lookahead = 4.0
position = Vector2(802.371, -163.584)
rotation = 0.655312
[node name="SpawnTimer" type="Timer" parent="."]
process_mode = 1
wait_time = 1.5
one_shot = false
autostart = true
[connection signal="start" from="." to="." method="_on_EnemyGenerator_start"]