mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-31 08:21:54 +08:00
refactor(EnergyBlock): 更新图标并调整碰撞体尺寸
- 将能量块图标替换为新的SVG图标 - 调整静态背景的缩放比例 - 为伤害区域添加矩形碰撞体
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_n2ng1"]
|
||||
[ext_resource type="Script" uid="uid://du30qanswie6y" path="res://scripts/Contents/Characters/EnergyBlock.gd" id="2_h3ykr"]
|
||||
[ext_resource type="Texture2D" uid="uid://bm64qkwl8qeqo" path="res://resources/characters/enregy-block/40code.png" id="3_v78o6"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwwpkn4q07ja2" path="res://icon.svg" id="3_v78o6"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_8do1r"]
|
||||
animations = [{
|
||||
@@ -17,6 +17,9 @@ animations = [{
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8do1r"]
|
||||
size = Vector2(112, 112)
|
||||
|
||||
[node name="EnergyBlock" unique_id=247617339 instance=ExtResource("1_n2ng1")]
|
||||
script = ExtResource("2_h3ykr")
|
||||
displayName = "稻草人"
|
||||
@@ -28,8 +31,11 @@ frame_progress = 0.31093365
|
||||
|
||||
[node name="staticBackground" parent="texture" index="0"]
|
||||
position = Vector2(0, -1.0000038)
|
||||
scale = Vector2(0.49728185, 0.49728185)
|
||||
scale = Vector2(0.8514976, 0.8514976)
|
||||
texture = ExtResource("3_v78o6")
|
||||
|
||||
[node name="hitbox" parent="texture/hurtbox" index="0"]
|
||||
shape = SubResource("RectangleShape2D_8do1r")
|
||||
|
||||
[node name="statebar" parent="." index="4"]
|
||||
position = Vector2(0, -119)
|
||||
|
||||
Reference in New Issue
Block a user