spacegame/enemies/basic/basic.tscn
2025-03-22 13:32:53 +01:00

142 lines
4.4 KiB
Text

[gd_scene load_steps=14 format=3 uid="uid://cwedpavtb5vfc"]
[ext_resource type="Script" uid="uid://buxbgc2aypffw" path="res://enemies/basic/basic.gd" id="1_7627k"]
[ext_resource type="Texture2D" uid="uid://1541pn8483aq" path="res://enemies/basic/basic.png" id="2_ytr2k"]
[ext_resource type="Script" uid="uid://v8qsd63ypr1y" path="res://enemies/dirmodule.gd" id="3_jyvyq"]
[ext_resource type="PackedScene" uid="uid://y08tu4ftj3t4" path="res://player/thruster.tscn" id="4_prw5c"]
[ext_resource type="Script" uid="uid://cuohktgei6yfn" path="res://enemies/shootmodule.gd" id="5_a6vy3"]
[ext_resource type="PackedScene" uid="uid://dnndsvtgqr8eq" path="res://bullet/bullet.tscn" id="6_n1d5r"]
[ext_resource type="PackedScene" uid="uid://800ou0i3omcs" path="res://effects/flash.tscn" id="6_v3l44"]
[sub_resource type="CircleShape2D" id="CircleShape2D_ytr2k"]
radius = 6.0
[sub_resource type="Curve" id="Curve_jyvyq"]
_data = [Vector2(0, 0.251087), 0.0, 0.0, 0, 0, Vector2(0.271233, 1), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="Curve" id="Curve_prw5c"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.336986, 0), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="Animation" id="Animation_0bibs"]
length = 0.001
tracks/0/type = "bezier"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("image:scale:x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"handle_modes": PackedInt32Array(0),
"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0)
}
tracks/1/type = "bezier"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("image:scale:y")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"handle_modes": PackedInt32Array(0),
"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0)
}
[sub_resource type="Animation" id="Animation_n1d5r"]
resource_name = "shoot"
tracks/0/type = "bezier"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("image:scale:x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"handle_modes": PackedInt32Array(0, 0, 0, 0),
"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0, 1.1, -0.25, 0, 0.25, 0, 0.835, -0.25, 0, 0.25, 0, 1, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0, 0.5, 0.766667, 1)
}
tracks/1/type = "bezier"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("image:scale:y")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"handle_modes": PackedInt32Array(0, 0, 0, 0),
"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0, 0.806, -0.25, 0, 0.25, 0, 1.177, -0.25, 0, 0.25, 0, 1, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0, 0.5, 0.766667, 1)
}
tracks/2/type = "method"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("shootmodule")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0.6),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
"method": &"shoot"
}]
}
tracks/3/type = "method"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath(".")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0.8),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
"method": &"done_shooting"
}]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_0bibs"]
_data = {
&"RESET": SubResource("Animation_0bibs"),
&"shoot": SubResource("Animation_n1d5r")
}
[node name="basic" type="RigidBody2D"]
visible = false
script = ExtResource("1_7627k")
thrust = 0.5
[node name="image" type="Sprite2D" parent="."]
rotation = -6.28318
texture = ExtResource("2_ytr2k")
[node name="collision" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_ytr2k")
[node name="dirmodule" type="Node" parent="."]
script = ExtResource("3_jyvyq")
pos_controll = SubResource("Curve_jyvyq")
pos_factor = 2.0
vel_controll = SubResource("Curve_prw5c")
vel_factor = 2.0
[node name="thruster" parent="." instance=ExtResource("4_prw5c")]
position = Vector2(0, 4)
[node name="shootmodule" type="Marker2D" parent="."]
position = Vector2(0, -10)
gizmo_extents = 3.0
script = ExtResource("5_a6vy3")
bullet = ExtResource("6_n1d5r")
speed = 50.0
knockback = 50.0
[node name="flash" parent="shootmodule" instance=ExtResource("6_v3l44")]
oneshot = false
[node name="animations" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_0bibs")
}