mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat: 添加子弹生成和动画功能,创建铅笔子弹及其资源
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://crtdkysmnkith"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://crtdkysmnkith"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/Statemachine/BulletBase.gd" id="1_pklpq"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_vypy3"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_kmogx"]
|
||||
resource_name = "spawn"
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_dxweq"]
|
||||
_data = {
|
||||
"spawn": SubResource("Animation_kmogx")
|
||||
}
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ecl7m"]
|
||||
|
||||
[node name="BulletBase" type="Area2D"]
|
||||
@@ -12,5 +20,12 @@ script = ExtResource("1_pklpq")
|
||||
[node name="texture" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_vypy3")
|
||||
|
||||
[node name="animator" type="AnimationPlayer" parent="texture"]
|
||||
unique_name_in_owner = true
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_dxweq")
|
||||
}
|
||||
|
||||
[node name="hitbox" type="CollisionShape2D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
shape = SubResource("CircleShape2D_ecl7m")
|
||||
|
||||
Reference in New Issue
Block a user