mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(子弹): 为魔法飞弹添加命中动画和音效
refactor(角色): 将MTY角色从猫头鹰改为狗熊宝宝并调整攻击逻辑 fix(子弹): 修复ParryBall和Parrier子弹的实例有效性检查 style(场景): 清理场景文件中的冗余属性 feat(工具): 为findClosetBulletCanDamage添加最大距离参数 chore(配置): 更新测试用的波次配置
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://b5ysxff1ujv4l"]
|
||||
[gd_scene format=3 uid="uid://b5ysxff1ujv4l"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_8og84"]
|
||||
[ext_resource type="Script" uid="uid://b80jr04qpitly" path="res://scripts/Contents/Characters/MTY.gd" id="2_hjlm2"]
|
||||
[ext_resource type="Texture2D" uid="uid://b710rxx6yq2x1" path="res://resources/characters/bird/tera-a.svg" id="3_gxm04"]
|
||||
[ext_resource type="Texture2D" uid="uid://cmmvtcahw5y5e" path="res://resources/characters/bird/tera-d.svg" id="4_ndje2"]
|
||||
[ext_resource type="Texture2D" uid="uid://54vaedgxog4i" path="res://resources/characters/bear/bear-walk-h.svg" id="3_8xxno"]
|
||||
[ext_resource type="Texture2D" uid="uid://cmapkmo8ck3g7" path="res://resources/characters/bear/bear-walk-a.svg" id="4_l1n2d"]
|
||||
[ext_resource type="Texture2D" uid="uid://b8j8ee5jrcdlq" path="res://resources/characters/bear/bear-walk-b.svg" id="5_l3wi2"]
|
||||
[ext_resource type="Texture2D" uid="uid://olok886lpghg" path="res://resources/characters/bear/bear-walk-c.svg" id="6_6o5k1"]
|
||||
[ext_resource type="Texture2D" uid="uid://xka0dvhh8hhq" path="res://resources/characters/bear/bear-walk-d.svg" id="7_15shm"]
|
||||
[ext_resource type="Texture2D" uid="uid://vm1drbho5j4t" path="res://resources/characters/bear/bear-walk-e.svg" id="8_vlc6w"]
|
||||
[ext_resource type="Texture2D" uid="uid://c46b6dsltjglj" path="res://resources/characters/bear/bear-walk-f.svg" id="9_fbcw4"]
|
||||
[ext_resource type="Texture2D" uid="uid://vaglbapaj4e0" path="res://resources/characters/bear/bear-walk-g.svg" id="10_0ftal"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_gxm04"]
|
||||
animations = [{
|
||||
@@ -22,7 +28,7 @@ animations = [{
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_gxm04")
|
||||
"texture": ExtResource("3_8xxno")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
@@ -30,22 +36,40 @@ animations = [{
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_gxm04")
|
||||
"texture": ExtResource("4_l1n2d")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_ndje2")
|
||||
"texture": ExtResource("5_l3wi2")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_6o5k1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_15shm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("8_vlc6w")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("9_fbcw4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("10_0ftal")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_8xxno")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 0.5
|
||||
"speed": 10.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_fdkbo"]
|
||||
size = Vector2(138, 181)
|
||||
size = Vector2(232, 149)
|
||||
|
||||
[node name="MTY" instance=ExtResource("1_8og84")]
|
||||
[node name="MTY" unique_id=1673957637 instance=ExtResource("1_8og84")]
|
||||
script = ExtResource("2_hjlm2")
|
||||
displayName = "猫头鹰"
|
||||
displayName = "狗熊宝宝"
|
||||
drops = Array[int]([0, 1, 3])
|
||||
dropCounts = Array[Vector2]([Vector2(3, 6), Vector2(2, 4), Vector2(1, 3)])
|
||||
useStatic = true
|
||||
@@ -60,13 +84,14 @@ scale = Vector2(0.23718655, 0.23718655)
|
||||
|
||||
[node name="staticAnimation" parent="texture" index="1"]
|
||||
position = Vector2(0, -27)
|
||||
scale = Vector2(1.42485, 1.42485)
|
||||
scale = Vector2(1.1823181, 1.1823181)
|
||||
sprite_frames = SubResource("SpriteFrames_hjlm2")
|
||||
animation = &"idle"
|
||||
animation = &"walk"
|
||||
frame_progress = 0.5124606
|
||||
|
||||
[node name="hitbox" parent="texture/hurtbox" index="0"]
|
||||
position = Vector2(0, -26.5)
|
||||
shape = SubResource("RectangleShape2D_fdkbo")
|
||||
|
||||
[node name="statebar" parent="." index="4"]
|
||||
position = Vector2(0, -199)
|
||||
position = Vector2(0, -195)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_e5pl8"]
|
||||
[ext_resource type="Script" uid="uid://cthtupc6dtbav" path="res://scripts/Contents/Characters/Rooster.gd" id="2_oqdqd"]
|
||||
[ext_resource type="PackedScene" uid="uid://c6d23yqjhe0ju" path="res://components/Weapons/MagicMissle.tscn" id="3_da2ca"]
|
||||
[ext_resource type="PackedScene" uid="uid://c0n3igy4hucrg" path="res://components/Weapons/PurpleCrystal.tscn" id="3_da2ca"]
|
||||
[ext_resource type="AudioStream" uid="uid://cdrevrq7n6yqa" path="res://resources/sounds/effect/Boing.mp3" id="4_66s6c"]
|
||||
[ext_resource type="AudioStream" uid="uid://benyec5bqni0b" path="res://resources/sounds/effect/Chomp.wav" id="4_k0yme"]
|
||||
[ext_resource type="AudioStream" uid="uid://dmxh3bpk8vyy5" path="res://resources/sounds/effect/Coin.mp3" id="5_xnbhq"]
|
||||
@@ -101,7 +101,7 @@ process_material = SubResource("ParticleProcessMaterial_joj4g")
|
||||
[node name="weaponStore" parent="." index="2"]
|
||||
process_mode = 4
|
||||
|
||||
[node name="MagicMissle" parent="weaponStore" index="0" unique_id=2085048785 instance=ExtResource("3_da2ca")]
|
||||
[node name="PurpleCrystal" parent="weaponStore" index="0" unique_id=839753399 instance=ExtResource("3_da2ca")]
|
||||
debugRebuild = false
|
||||
|
||||
[node name="sprint" parent="sounds" index="0"]
|
||||
|
||||
Reference in New Issue
Block a user