mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-07-10 12:02:54 +08:00
feat(人物): 添加新角色cy的图片资源
fix(战斗): 调整Cat攻击伤害值从0.2降至0.01 refactor(动画): 简化EntityBase的受伤动画实现 perf(子弹): 优化ChickSprint伤害计算使用浮点数除法
This commit is contained in:
@@ -107,76 +107,34 @@ snap = 1.0
|
|||||||
|
|
||||||
[sub_resource type="Animation" id="Animation_3wcjn"]
|
[sub_resource type="Animation" id="Animation_3wcjn"]
|
||||||
length = 0.001
|
length = 0.001
|
||||||
tracks/0/type = "bezier"
|
tracks/0/type = "value"
|
||||||
tracks/0/imported = false
|
tracks/0/imported = false
|
||||||
tracks/0/enabled = true
|
tracks/0/enabled = true
|
||||||
tracks/0/path = NodePath(".:modulate:r")
|
tracks/0/path = NodePath(".:modulate")
|
||||||
tracks/0/interp = 1
|
tracks/0/interp = 1
|
||||||
tracks/0/loop_wrap = true
|
tracks/0/loop_wrap = true
|
||||||
tracks/0/keys = {
|
tracks/0/keys = {
|
||||||
"handle_modes": PackedInt32Array(0),
|
"times": PackedFloat32Array(0),
|
||||||
"points": PackedFloat32Array(1, -0.2, 0, 0.2, 0),
|
"transitions": PackedFloat32Array(1),
|
||||||
"times": PackedFloat32Array(0)
|
"update": 0,
|
||||||
}
|
"values": [Color(1, 1, 1, 1)]
|
||||||
tracks/1/type = "bezier"
|
|
||||||
tracks/1/imported = false
|
|
||||||
tracks/1/enabled = true
|
|
||||||
tracks/1/path = NodePath(".:modulate:g")
|
|
||||||
tracks/1/interp = 1
|
|
||||||
tracks/1/loop_wrap = true
|
|
||||||
tracks/1/keys = {
|
|
||||||
"handle_modes": PackedInt32Array(0),
|
|
||||||
"points": PackedFloat32Array(1, -0.2, 0, 0.2, 0),
|
|
||||||
"times": PackedFloat32Array(0)
|
|
||||||
}
|
|
||||||
tracks/2/type = "bezier"
|
|
||||||
tracks/2/imported = false
|
|
||||||
tracks/2/enabled = true
|
|
||||||
tracks/2/path = NodePath(".:modulate:b")
|
|
||||||
tracks/2/interp = 1
|
|
||||||
tracks/2/loop_wrap = true
|
|
||||||
tracks/2/keys = {
|
|
||||||
"handle_modes": PackedInt32Array(0),
|
|
||||||
"points": PackedFloat32Array(1, -0.2, 0, 0.2, 0),
|
|
||||||
"times": PackedFloat32Array(0)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id="Animation_wl2we"]
|
[sub_resource type="Animation" id="Animation_wl2we"]
|
||||||
resource_name = "hurt"
|
resource_name = "hurt"
|
||||||
length = 0.4
|
length = 0.1
|
||||||
step = 0.1
|
step = 0.1
|
||||||
tracks/0/type = "bezier"
|
tracks/0/type = "value"
|
||||||
tracks/0/imported = false
|
tracks/0/imported = false
|
||||||
tracks/0/enabled = true
|
tracks/0/enabled = true
|
||||||
tracks/0/path = NodePath(".:modulate:r")
|
tracks/0/path = NodePath(".:modulate")
|
||||||
tracks/0/interp = 1
|
tracks/0/interp = 1
|
||||||
tracks/0/loop_wrap = true
|
tracks/0/loop_wrap = true
|
||||||
tracks/0/keys = {
|
tracks/0/keys = {
|
||||||
"handle_modes": PackedInt32Array(0, 0, 0),
|
"times": PackedFloat32Array(0, 0.099999994),
|
||||||
"points": PackedFloat32Array(1, -0.2, 0, 0.2, 0, 10, -0.2, 0, 0.2, 0, 1, -0.2, 0, 0.2, 0),
|
"transitions": PackedFloat32Array(1, 1),
|
||||||
"times": PackedFloat32Array(0, 0.2, 0.4)
|
"update": 0,
|
||||||
}
|
"values": [Color(18.892157, 18.892157, 18.892157, 1), Color(1, 1, 1, 1)]
|
||||||
tracks/1/type = "bezier"
|
|
||||||
tracks/1/imported = false
|
|
||||||
tracks/1/enabled = true
|
|
||||||
tracks/1/path = NodePath(".:modulate:g")
|
|
||||||
tracks/1/interp = 1
|
|
||||||
tracks/1/loop_wrap = true
|
|
||||||
tracks/1/keys = {
|
|
||||||
"handle_modes": PackedInt32Array(0, 0, 0),
|
|
||||||
"points": PackedFloat32Array(1, -0.2, 0, 0.2, 0, 10, -0.2, 0, 0.2, 0, 1, -0.2, 0, 0.2, 0),
|
|
||||||
"times": PackedFloat32Array(0, 0.2, 0.4)
|
|
||||||
}
|
|
||||||
tracks/2/type = "bezier"
|
|
||||||
tracks/2/imported = false
|
|
||||||
tracks/2/enabled = true
|
|
||||||
tracks/2/path = NodePath(".:modulate:b")
|
|
||||||
tracks/2/interp = 1
|
|
||||||
tracks/2/loop_wrap = true
|
|
||||||
tracks/2/keys = {
|
|
||||||
"handle_modes": PackedInt32Array(0, 0, 0),
|
|
||||||
"points": PackedFloat32Array(1, -0.2, 0, 0.2, 0, 10, -0.2, 0, 0.2, 0, 1, -0.2, 0, 0.2, 0),
|
|
||||||
"times": PackedFloat32Array(0, 0.2, 0.4)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_kbmff"]
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_kbmff"]
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 276 KiB |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://c6thlmj566h82"
|
||||||
|
path="res://.godot/imported/cy.png-d1b3b8e8254d4baace10674493f30a79.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://resources/characters/kukemc/cy.png"
|
||||||
|
dest_files=["res://.godot/imported/cy.png-d1b3b8e8254d4baace10674493f30a79.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
||||||
@@ -7,7 +7,7 @@ func register():
|
|||||||
speed = 0
|
speed = 0
|
||||||
penerate = 1
|
penerate = 1
|
||||||
func ai():
|
func ai():
|
||||||
baseDamage = launcher.velocity.length() / 500 * atk
|
baseDamage = launcher.velocity.length() / 500.0 * atk
|
||||||
PresetBulletAI.lockLauncher(self, launcher, true)
|
PresetBulletAI.lockLauncher(self, launcher, true)
|
||||||
if !launcher.sprinting:
|
if !launcher.sprinting:
|
||||||
tryDestroy()
|
tryDestroy()
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ func attack(type: int):
|
|||||||
if type == 0:
|
if type == 0:
|
||||||
for bullet in BulletBase.generate(ComponentManager.getBullet("ChickSprint"), self, position, 0):
|
for bullet in BulletBase.generate(ComponentManager.getBullet("ChickSprint"), self, position, 0):
|
||||||
if bullet is ChickSprint:
|
if bullet is ChickSprint:
|
||||||
bullet.atk = 0.2
|
bullet.atk = 0.01
|
||||||
trySprint()
|
trySprint()
|
||||||
return true
|
return true
|
||||||
func sprint():
|
func sprint():
|
||||||
|
|||||||
Reference in New Issue
Block a user