83 lines
2.5 KiB
Text
83 lines
2.5 KiB
Text
[gd_scene load_steps=11 format=3 uid="uid://vl8duuwwrpqm"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cgqo1nxq6xprm" path="res://scenes/obstacle/obstacle.tscn" id="1_8c34n"]
|
|
[ext_resource type="Script" uid="uid://b82cnxsh4mn0f" path="res://scenes/obstacle/meteor/meteor.gd" id="2_8c34n"]
|
|
[ext_resource type="Texture2D" uid="uid://drk4xkhlq00x3" path="res://assets/obstacles/meteor.png" id="3_jb48p"]
|
|
[ext_resource type="Script" uid="uid://mnl62nrp3ffi" path="res://scenes/obstacle/meteor/animation_player.gd" id="4_pganv"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_jb48p"]
|
|
radius = 128.0
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_pganv"]
|
|
radius = 144.0
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_22u22"]
|
|
radius = 128.25
|
|
|
|
[sub_resource type="Animation" id="Animation_22u22"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [0.0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_pganv"]
|
|
resource_name = "spin"
|
|
length = 5.0
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = false
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 5),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [0.0, 6.28319]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_b3sfu"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_22u22"),
|
|
&"spin": SubResource("Animation_pganv")
|
|
}
|
|
|
|
[node name="Meteor" instance=ExtResource("1_8c34n")]
|
|
script = ExtResource("2_8c34n")
|
|
minSpeed = 100
|
|
maxSpeed = 1000
|
|
minScale = 0.5
|
|
maxScale = 2.0
|
|
|
|
[node name="CollisionShape2D" parent="." index="0"]
|
|
shape = SubResource("CircleShape2D_jb48p")
|
|
|
|
[node name="CollisionShape2D" parent="DamageArea" index="0"]
|
|
shape = SubResource("CircleShape2D_pganv")
|
|
|
|
[node name="CollisionShape2D" parent="hurtArea" index="0"]
|
|
shape = SubResource("CircleShape2D_22u22")
|
|
|
|
[node name="Sprite2D" parent="." index="3"]
|
|
position = Vector2(5.72205e-06, 5.72205e-06)
|
|
scale = Vector2(0.666667, 0.666667)
|
|
texture = ExtResource("3_jb48p")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="." index="6"]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_b3sfu")
|
|
}
|
|
script = ExtResource("4_pganv")
|
|
|
|
[editable path="DamageArea"]
|
|
[editable path="hurtArea"]
|