69 lines
1.9 KiB
Plaintext
69 lines
1.9 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://caynrq7jnjlnx"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://mmrsjrjxv168" path="res://Assets/Bullets/magic.png" id="1_jjep1"]
|
|
[ext_resource type="Script" uid="uid://dqvdgdobuo2rf" path="res://Game/Bullets/bullet.gd" id="1_lj5pp"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_lj5pp"]
|
|
size = Vector2(18, 16)
|
|
|
|
[sub_resource type="Animation" id="Animation_0itbo"]
|
|
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_lj5pp"]
|
|
resource_name = "rotation"
|
|
length = 0.5
|
|
markers = [{
|
|
"color": Color(1, 1, 1, 1),
|
|
"name": &"new_marker",
|
|
"time": 0.5
|
|
}]
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:rotation")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [0.0, 6.28319]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_55qby"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_0itbo"),
|
|
&"rotation": SubResource("Animation_lj5pp")
|
|
}
|
|
|
|
[node name="Magic" type="Node2D"]
|
|
script = ExtResource("1_lj5pp")
|
|
|
|
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
|
collision_mask = 2
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
|
shape = SubResource("RectangleShape2D_lj5pp")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="CharacterBody2D"]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_55qby")
|
|
}
|
|
autoplay = "rotation"
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D"]
|
|
scale = Vector2(3, 3)
|
|
texture = ExtResource("1_jjep1")
|