feat: initial import
This commit is contained in:
+142
@@ -0,0 +1,142 @@
|
||||
[gd_scene format=3 uid="uid://vsburk37p4u"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://3v8kq1rfwhmr" path="res://Game/target.tscn" id="2_c77vg"]
|
||||
[ext_resource type="Script" uid="uid://cxfrtglku2gfa" path="res://Game/TargetSpawner.cs" id="3_iqet6"]
|
||||
[ext_resource type="Script" uid="uid://dk578xnlxjwrr" path="res://Game/GameRootScope.cs" id="3_t2jh2"]
|
||||
[ext_resource type="Script" uid="uid://bgrjeadxhgmvi" path="res://Game/Score.cs" id="4_t2jh2"]
|
||||
[ext_resource type="Texture2D" uid="uid://y1ros3y7hag2" path="res://icon.svg" id="5_4ty2a"]
|
||||
[ext_resource type="Script" uid="uid://ce7gnp1lcrrdv" path="res://Game/Turret.cs" id="6_rckqj"]
|
||||
[ext_resource type="PackedScene" uid="uid://brbufibn7hi3o" path="res://Game/projectile.tscn" id="7_rckqj"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_bbjqm"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Score:offset_transform_position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector2(0, 0)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Score:offset_transform_rotation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [0.0]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_4ty2a"]
|
||||
resource_name = "wiggle"
|
||||
length = 0.3
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Score:offset_transform_position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.049999997, 0.099999994, 0.15, 0.2, 0.24999999),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector2(0, 0), Vector2(10, -10), Vector2(-10, -10), Vector2(10, 10), Vector2(-10, 10), Vector2(0, 0)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Score:offset_transform_rotation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 0.049999997, 0.099999994, 0.15, 0.2, 0.24999999),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [0.0, 0.08726646, -0.08726646, 0.08726646, -0.08726646, 0.0]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_rckqj"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_bbjqm"),
|
||||
&"wiggle": SubResource("Animation_4ty2a")
|
||||
}
|
||||
|
||||
[node name="Node2D" type="Node2D" unique_id=920849082]
|
||||
|
||||
[node name="RootScope" type="Node" parent="." unique_id=1453141084 node_paths=PackedStringArray("_targetSpawner", "InjectedNodes")]
|
||||
script = ExtResource("3_t2jh2")
|
||||
_targetSpawner = NodePath("../Spawner")
|
||||
InjectedNodes = [NodePath("../Turret"), NodePath("../Target"), NodePath("../Target2"), NodePath("../Target3"), NodePath("../Target4"), NodePath("../Target5"), NodePath("../Target6"), NodePath("../Spawner"), NodePath("../Score")]
|
||||
|
||||
[node name="Target" parent="." unique_id=2101558052 instance=ExtResource("2_c77vg")]
|
||||
position = Vector2(198, 143)
|
||||
TimeOutDurationInSeconds = 2.0
|
||||
|
||||
[node name="Target2" parent="." unique_id=1480287846 instance=ExtResource("2_c77vg")]
|
||||
position = Vector2(669, 64)
|
||||
TimeOutDurationInSeconds = 2.0
|
||||
|
||||
[node name="Target3" parent="." unique_id=242951997 instance=ExtResource("2_c77vg")]
|
||||
position = Vector2(1060, 263)
|
||||
TimeOutDurationInSeconds = 2.0
|
||||
|
||||
[node name="Target4" parent="." unique_id=1190782819 instance=ExtResource("2_c77vg")]
|
||||
position = Vector2(961, 620)
|
||||
TimeOutDurationInSeconds = 2.0
|
||||
|
||||
[node name="Target5" parent="." unique_id=1183803617 instance=ExtResource("2_c77vg")]
|
||||
position = Vector2(469, 591)
|
||||
TimeOutDurationInSeconds = 2.0
|
||||
|
||||
[node name="Target6" parent="." unique_id=2017833482 instance=ExtResource("2_c77vg")]
|
||||
position = Vector2(53, 417)
|
||||
TimeOutDurationInSeconds = 2.0
|
||||
|
||||
[node name="Spawner" type="Node2D" parent="." unique_id=1331368036 node_paths=PackedStringArray("Timer")]
|
||||
script = ExtResource("3_iqet6")
|
||||
TimeBetweenSpawns = 1.5
|
||||
Timer = NodePath("Timer")
|
||||
|
||||
[node name="Timer" type="Timer" parent="Spawner" unique_id=1142098929]
|
||||
|
||||
[node name="Score" type="ColorRect" parent="." unique_id=1990204205 node_paths=PackedStringArray("_animationPlayer", "_label")]
|
||||
offset_right = 200.0
|
||||
offset_bottom = 40.0
|
||||
offset_transform_enabled = true
|
||||
color = Color(1, 1, 1, 0.2784314)
|
||||
script = ExtResource("4_t2jh2")
|
||||
_animationPlayer = NodePath("../AnimationPlayer")
|
||||
_label = NodePath("Label")
|
||||
|
||||
[node name="Label" type="Label" parent="Score" unique_id=1929317028]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 10.0
|
||||
offset_right = -10.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
text = "Score: 0"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1749711689]
|
||||
libraries/ = SubResource("AnimationLibrary_rckqj")
|
||||
|
||||
[node name="Turret" type="Sprite2D" parent="." unique_id=1932581411]
|
||||
modulate = Color(1.92523e-07, 0.88004553, 0.8802661, 1)
|
||||
position = Vector2(539, 307)
|
||||
texture = ExtResource("5_4ty2a")
|
||||
script = ExtResource("6_rckqj")
|
||||
_projectilePackedScene = ExtResource("7_rckqj")
|
||||
|
||||
[connection signal="timeout" from="Spawner/Timer" to="Spawner" method="OnTimer"]
|
||||
Reference in New Issue
Block a user