子弹、ai
parent
3729d35e1c
commit
51d2725b7e
@ -0,0 +1,11 @@
|
||||
[gd_resource type="Resource" script_class="AttackBoxCfg" load_steps=3 format=3 uid="uid://bhxq1uffxyda8"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/attack_box_cfg.gd" id="1_gwkwy"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_pmh6g"]
|
||||
height = 0.25
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_gwkwy")
|
||||
shape = SubResource("CylinderShape3D_pmh6g")
|
||||
offset = Vector2(0, 0.5)
|
||||
@ -1,22 +1,24 @@
|
||||
[gd_resource type="Resource" script_class="CharacterCfg" load_steps=7 format=3 uid="uid://efaynwj7143w"]
|
||||
[gd_resource type="Resource" script_class="CharacterCfg" load_steps=8 format=3 uid="uid://efaynwj7143w"]
|
||||
|
||||
[ext_resource type="Resource" uid="uid://dfyg6ye7n3wgj" path="res://config/character_move/fast.tres" id="1_b02yl"]
|
||||
[ext_resource type="Resource" uid="uid://ctbdt77yyubxn" path="res://config/attack/blunt_normal_hit_up.tres" id="1_4vq22"]
|
||||
[ext_resource type="Resource" uid="uid://bhxq1uffxyda8" path="res://config/attack_box/circle_normal_thin.tres" id="2_ewiqr"]
|
||||
[ext_resource type="Resource" uid="uid://dpajmgrlaytah" path="res://config/character_mp/normal.tres" id="2_hrxfp"]
|
||||
[ext_resource type="Resource" uid="uid://iv8g1x3bkxvv" path="res://config/character_move/fast_fly.tres" id="3_gqffj"]
|
||||
[ext_resource type="Script" path="res://script/config/character_cfg.gd" id="3_p63bn"]
|
||||
[ext_resource type="Resource" uid="uid://h1curvk64vm3" path="res://config/character_shield/none.tres" id="4_qnn3b"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://i01jiylcqat" path="res://resource/animation/character/bullet01_move.aseprite" id="4_x87ux"]
|
||||
[ext_resource type="Resource" uid="uid://5jes0p152akr" path="res://config/character_stun/none.tres" id="6_y4hsh"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("3_p63bn")
|
||||
name = "hero01"
|
||||
type = 2
|
||||
sprite_frames = ExtResource("4_x87ux")
|
||||
sprite_harf_height = 16
|
||||
sprite_width = 8
|
||||
move = ExtResource("1_b02yl")
|
||||
sprite_harf_height = 26
|
||||
sprite_width = 16
|
||||
move = ExtResource("3_gqffj")
|
||||
shield = ExtResource("4_qnn3b")
|
||||
stun = ExtResource("6_y4hsh")
|
||||
mp = ExtResource("2_hrxfp")
|
||||
hp_max = 100.0
|
||||
attack = 10.0
|
||||
attack1 = ExtResource("1_4vq22")
|
||||
attack1_box = ExtResource("2_ewiqr")
|
||||
|
||||
@ -0,0 +1,9 @@
|
||||
[gd_resource type="Resource" script_class="CharacterMoveCfg" load_steps=2 format=3 uid="uid://iv8g1x3bkxvv"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/character_move_cfg.gd" id="1_74gbk"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_74gbk")
|
||||
speed = 10.0
|
||||
gravity_scale = 0.0
|
||||
jump_velocity = 6.0
|
||||
@ -1,13 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="CoreCfg" load_steps=6 format=3 uid="uid://chx14f0ty3usd"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/core_cfg.gd" id="1_v24ds"]
|
||||
[ext_resource type="Script" path="res://script/config/player_skill_cfg.gd" id="2_flpwm"]
|
||||
[ext_resource type="Resource" uid="uid://cuwtxibg84nno" path="res://config/skill_player_common/hero01_common_skill0101.tres" id="3_oj1qu"]
|
||||
[ext_resource type="Resource" uid="uid://lr1iguojoyk" path="res://config/skill_player_common/hero01_common_skill0102.tres" id="4_we7wm"]
|
||||
[ext_resource type="Resource" uid="uid://b8b1afegmabx6" path="res://config/skill_player_common/hero01_common_skill0103.tres" id="5_1xn4f"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_v24ds")
|
||||
name = ""
|
||||
type = 0
|
||||
skill_list = Array[ExtResource("2_flpwm")]([ExtResource("3_oj1qu"), ExtResource("4_we7wm"), ExtResource("5_1xn4f")])
|
||||
@ -1,11 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="CoreCfg" load_steps=4 format=3 uid="uid://djwu1qw3irbmj"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/player_skill_cfg.gd" id="2_4x1h6"]
|
||||
[ext_resource type="Script" path="res://script/config/core_cfg.gd" id="2_glcvn"]
|
||||
[ext_resource type="Resource" uid="uid://iyqp5jwc75b1" path="res://config/skill_player_common/hero01_common_skill02.tres" id="3_phy5g"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_glcvn")
|
||||
name = ""
|
||||
type = 0
|
||||
skill_list = Array[ExtResource("2_4x1h6")]([ExtResource("3_phy5g")])
|
||||
@ -0,0 +1,8 @@
|
||||
[gd_resource type="Resource" script_class="CoreCfg" load_steps=2 format=3 uid="uid://chx14f0ty3usd"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/core_cfg.gd" id="1_xylg2"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_xylg2")
|
||||
name = ""
|
||||
type = 2
|
||||
@ -0,0 +1,8 @@
|
||||
[gd_resource type="Resource" script_class="CoreCfg" load_steps=3 format=3 uid="uid://c5h02ni8psoxq"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/core_cfg.gd" id="1_rsjym"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_rsjym")
|
||||
name = ""
|
||||
type = 2
|
||||
@ -0,0 +1,8 @@
|
||||
[gd_resource type="Resource" script_class="CoreCfg" load_steps=4 format=3 uid="uid://djwu1qw3irbmj"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/core_cfg.gd" id="2_glcvn"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_glcvn")
|
||||
name = ""
|
||||
type = 2
|
||||
@ -0,0 +1,19 @@
|
||||
[gd_resource type="Resource" script_class="SkillCfg" load_steps=4 format=3 uid="uid://cuwtxibg84nno"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/skill_cfg.gd" id="1_702bi"]
|
||||
[ext_resource type="Animation" uid="uid://kfvqej1q5iqa" path="res://resource/skill_animation/hero01_combo0101.tres" id="2_nm2wy"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://ce83cuqwgwwi4" path="res://resource/animation/character/hero01_long_attack.aseprite" id="3_ppacp"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_702bi")
|
||||
name = ""
|
||||
skill_animation = ExtResource("2_nm2wy")
|
||||
range = 0.0
|
||||
free_lock = false
|
||||
ignore_push = false
|
||||
stance_from = 100
|
||||
stance_to = 2
|
||||
break_level = 3
|
||||
refresh_animation = false
|
||||
sprite_frames = ExtResource("3_ppacp")
|
||||
animation_name = "long_attack01"
|
||||
@ -0,0 +1,19 @@
|
||||
[gd_resource type="Resource" script_class="SkillCfg" load_steps=4 format=3 uid="uid://lr1iguojoyk"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/skill_cfg.gd" id="1_42tyl"]
|
||||
[ext_resource type="Animation" uid="uid://cvxifa2uac5oc" path="res://resource/skill_animation/hero01_combo0102.tres" id="2_bm5gt"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://ce83cuqwgwwi4" path="res://resource/animation/character/hero01_long_attack.aseprite" id="3_11afq"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_42tyl")
|
||||
name = ""
|
||||
skill_animation = ExtResource("2_bm5gt")
|
||||
range = 0.0
|
||||
free_lock = false
|
||||
ignore_push = false
|
||||
stance_from = 100
|
||||
stance_to = 3
|
||||
break_level = 1
|
||||
refresh_animation = false
|
||||
sprite_frames = ExtResource("3_11afq")
|
||||
animation_name = "long_attack02"
|
||||
@ -0,0 +1,19 @@
|
||||
[gd_resource type="Resource" script_class="SkillCfg" load_steps=4 format=3 uid="uid://b8b1afegmabx6"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/skill_cfg.gd" id="1_uhj5t"]
|
||||
[ext_resource type="Animation" uid="uid://cqc30d5uqi2my" path="res://resource/skill_animation/hero01_combo0103.tres" id="2_rvklk"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://ce83cuqwgwwi4" path="res://resource/animation/character/hero01_long_attack.aseprite" id="3_2hchk"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_uhj5t")
|
||||
name = ""
|
||||
skill_animation = ExtResource("2_rvklk")
|
||||
range = 0.0
|
||||
free_lock = false
|
||||
ignore_push = false
|
||||
stance_from = 100
|
||||
stance_to = 4
|
||||
break_level = 1
|
||||
refresh_animation = false
|
||||
sprite_frames = ExtResource("3_2hchk")
|
||||
animation_name = "long_attack03"
|
||||
@ -0,0 +1,21 @@
|
||||
[gd_resource type="Resource" script_class="SkillCfg" load_steps=5 format=3 uid="uid://cwvj0xsv61cjk"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/skill_cfg.gd" id="1_doifq"]
|
||||
[ext_resource type="Animation" uid="uid://h8hm3kbecdx8" path="res://resource/skill_animation/hero01_remote01.tres" id="2_h285p"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://ce83cuqwgwwi4" path="res://resource/animation/character/hero01_long_attack.aseprite" id="3_w10pb"]
|
||||
[ext_resource type="Resource" uid="uid://efaynwj7143w" path="res://config/character/bullet01.tres" id="4_bu37n"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_doifq")
|
||||
name = ""
|
||||
skill_animation = ExtResource("2_h285p")
|
||||
range = 0.0
|
||||
free_lock = false
|
||||
ignore_push = false
|
||||
sub_character = ExtResource("4_bu37n")
|
||||
stance_from = 102
|
||||
stance_to = 0
|
||||
break_level = 3
|
||||
refresh_animation = false
|
||||
sprite_frames = ExtResource("3_w10pb")
|
||||
animation_name = "long_attack01"
|
||||
@ -0,0 +1,19 @@
|
||||
[gd_resource type="Resource" script_class="SkillCfg" load_steps=4 format=3 uid="uid://iyqp5jwc75b1"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/skill_cfg.gd" id="1_e1byx"]
|
||||
[ext_resource type="Animation" uid="uid://q7qlw0a7hfjt" path="res://resource/skill_animation/hero01_slash01.tres" id="2_1txbl"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://ce83cuqwgwwi4" path="res://resource/animation/character/hero01_long_attack.aseprite" id="3_roc1y"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_e1byx")
|
||||
name = ""
|
||||
skill_animation = ExtResource("2_1txbl")
|
||||
range = 0.0
|
||||
free_lock = false
|
||||
ignore_push = false
|
||||
stance_from = 100
|
||||
stance_to = 4
|
||||
break_level = 3
|
||||
refresh_animation = false
|
||||
sprite_frames = ExtResource("3_roc1y")
|
||||
animation_name = "long_attack04"
|
||||
@ -1,12 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="SkillCfg" load_steps=3 format=3 uid="uid://bohydsbv7kxu3"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/skill_cfg.gd" id="1_r8y6y"]
|
||||
[ext_resource type="Animation" uid="uid://b8ypa7uw0uam5" path="res://resource/skill_animation/monster01_attack01.tres" id="2_hmrt4"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_r8y6y")
|
||||
name = ""
|
||||
skill_animation = ExtResource("2_hmrt4")
|
||||
free_lock = false
|
||||
refresh_animation = false
|
||||
animation_name = "attack01"
|
||||
@ -1,19 +1,20 @@
|
||||
[gd_resource type="Resource" script_class="SkillPlayerCfg" load_steps=4 format=3 uid="uid://cyqiiar75vf87"]
|
||||
[gd_resource type="Resource" script_class="SkillWeaponCfg" load_steps=4 format=3 uid="uid://cyqiiar75vf87"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/player_skill_cfg.gd" id="1_blorc"]
|
||||
[ext_resource type="Script" path="res://script/config/skill_weapon_cfg.gd" id="1_blorc"]
|
||||
[ext_resource type="Animation" uid="uid://73awn8b7c63v" path="res://resource/skill_animation/hero01_basic_air_flash.tres" id="2_sx5x4"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://jpxh0jr8wp8g" path="res://resource/animation/character/hero01_basic.aseprite" id="3_ciqr7"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_blorc")
|
||||
stance_from = 101
|
||||
stance_to = 10
|
||||
break_level = 1
|
||||
action = "flash"
|
||||
name = ""
|
||||
skill_animation = ExtResource("2_sx5x4")
|
||||
range = 0.0
|
||||
free_lock = true
|
||||
ignore_push = true
|
||||
stance_from = 101
|
||||
stance_to = 10
|
||||
break_level = 1
|
||||
refresh_animation = false
|
||||
sprite_frames = ExtResource("3_ciqr7")
|
||||
animation_name = "basic_air_flash"
|
||||
|
||||
@ -1,19 +1,20 @@
|
||||
[gd_resource type="Resource" script_class="SkillPlayerCfg" load_steps=4 format=3 uid="uid://cyqiiar75vf87"]
|
||||
[gd_resource type="Resource" script_class="SkillWeaponCfg" load_steps=4 format=3 uid="uid://cyqiiar75vf87"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/player_skill_cfg.gd" id="1_raqfe"]
|
||||
[ext_resource type="Script" path="res://script/config/skill_weapon_cfg.gd" id="1_raqfe"]
|
||||
[ext_resource type="Animation" uid="uid://cfapnjkj5dkws" path="res://resource/skill_animation/hero01_basic_flash.tres" id="2_31kka"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://jpxh0jr8wp8g" path="res://resource/animation/character/hero01_basic.aseprite" id="3_i6jjr"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_raqfe")
|
||||
stance_from = 100
|
||||
stance_to = 0
|
||||
break_level = 1
|
||||
action = "flash"
|
||||
name = ""
|
||||
skill_animation = ExtResource("2_31kka")
|
||||
range = 0.0
|
||||
free_lock = true
|
||||
ignore_push = true
|
||||
stance_from = 100
|
||||
stance_to = 0
|
||||
break_level = 1
|
||||
refresh_animation = false
|
||||
sprite_frames = ExtResource("3_i6jjr")
|
||||
animation_name = "basic_flash"
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="SkillPlayerCfg" load_steps=4 format=3 uid="uid://cuwtxibg84nno"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/player_skill_cfg.gd" id="1_702bi"]
|
||||
[ext_resource type="Animation" uid="uid://dokxns0q44rux" path="res://resource/skill_animation/hero01_common_skill0101.tres" id="2_o71rh"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://ce83cuqwgwwi4" path="res://resource/animation/character/hero01_long_attack.aseprite" id="3_ppacp"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_702bi")
|
||||
stance_from = 100
|
||||
stance_to = 2
|
||||
break_level = 3
|
||||
action = "none"
|
||||
name = ""
|
||||
skill_animation = ExtResource("2_o71rh")
|
||||
free_lock = false
|
||||
refresh_animation = false
|
||||
sprite_frames = ExtResource("3_ppacp")
|
||||
animation_name = "long_attack01"
|
||||
@ -1,18 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="SkillPlayerCfg" load_steps=4 format=3 uid="uid://lr1iguojoyk"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/player_skill_cfg.gd" id="1_42tyl"]
|
||||
[ext_resource type="Animation" uid="uid://d0rn5wwwnu4oh" path="res://resource/skill_animation/hero01_common_skill0102.tres" id="2_ar1pk"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://ce83cuqwgwwi4" path="res://resource/animation/character/hero01_long_attack.aseprite" id="3_11afq"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_42tyl")
|
||||
stance_from = 100
|
||||
stance_to = 3
|
||||
break_level = 1
|
||||
action = "none"
|
||||
name = ""
|
||||
skill_animation = ExtResource("2_ar1pk")
|
||||
free_lock = false
|
||||
refresh_animation = false
|
||||
sprite_frames = ExtResource("3_11afq")
|
||||
animation_name = "long_attack02"
|
||||
@ -1,18 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="SkillPlayerCfg" load_steps=4 format=3 uid="uid://b8b1afegmabx6"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/player_skill_cfg.gd" id="1_uhj5t"]
|
||||
[ext_resource type="Animation" uid="uid://cm4c0rwh0mqn4" path="res://resource/skill_animation/hero01_common_skill0103.tres" id="2_breja"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://ce83cuqwgwwi4" path="res://resource/animation/character/hero01_long_attack.aseprite" id="3_2hchk"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_uhj5t")
|
||||
stance_from = 100
|
||||
stance_to = 4
|
||||
break_level = 1
|
||||
action = "none"
|
||||
name = ""
|
||||
skill_animation = ExtResource("2_breja")
|
||||
free_lock = false
|
||||
refresh_animation = false
|
||||
sprite_frames = ExtResource("3_2hchk")
|
||||
animation_name = "long_attack03"
|
||||
@ -1,18 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="SkillPlayerCfg" load_steps=4 format=3 uid="uid://iyqp5jwc75b1"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/config/player_skill_cfg.gd" id="1_e1byx"]
|
||||
[ext_resource type="Animation" uid="uid://dkkqys8el1u6g" path="res://resource/skill_animation/hero01_common_skill02.tres" id="2_n2c7s"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://ce83cuqwgwwi4" path="res://resource/animation/character/hero01_long_attack.aseprite" id="3_roc1y"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_e1byx")
|
||||
stance_from = 100
|
||||
stance_to = 4
|
||||
break_level = 3
|
||||
action = "none"
|
||||
name = ""
|
||||
skill_animation = ExtResource("2_n2c7s")
|
||||
free_lock = false
|
||||
refresh_animation = false
|
||||
sprite_frames = ExtResource("3_roc1y")
|
||||
animation_name = "long_attack04"
|
||||
@ -0,0 +1,42 @@
|
||||
[gd_resource type="Animation" load_steps=2 format=3 uid="uid://kfvqej1q5iqa"]
|
||||
|
||||
[ext_resource type="SpriteFrames" uid="uid://ce83cuqwgwwi4" path="res://resource/animation/character/hero01_long_attack.aseprite" id="1_0mg3w"]
|
||||
|
||||
[resource]
|
||||
resource_name = "hero01_combo0101"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("View:sprite_frames")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [ExtResource("1_0mg3w")]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("View:animation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": ["long_attack01"]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("View:frame")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
[gd_resource type="Animation" load_steps=2 format=3 uid="uid://cvxifa2uac5oc"]
|
||||
|
||||
[ext_resource type="SpriteFrames" uid="uid://ce83cuqwgwwi4" path="res://resource/animation/character/hero01_long_attack.aseprite" id="1_jsg5q"]
|
||||
|
||||
[resource]
|
||||
resource_name = "hero01_combo0102"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("View:sprite_frames")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [ExtResource("1_jsg5q")]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("View:animation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": ["long_attack02"]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("View:frame")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
[gd_resource type="Animation" load_steps=2 format=3 uid="uid://cqc30d5uqi2my"]
|
||||
|
||||
[ext_resource type="SpriteFrames" uid="uid://ce83cuqwgwwi4" path="res://resource/animation/character/hero01_long_attack.aseprite" id="1_bk1sq"]
|
||||
|
||||
[resource]
|
||||
resource_name = "hero01_combo0103"
|
||||
length = 1.4
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("View:sprite_frames")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [ExtResource("1_bk1sq")]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("View:animation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": ["long_attack03"]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("View:frame")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.1, 1.2, 1.3),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
|
||||
}
|
||||
@ -0,0 +1,92 @@
|
||||
[gd_resource type="Animation" load_steps=2 format=3 uid="uid://d1f7iluo8ejne"]
|
||||
|
||||
[ext_resource type="SpriteFrames" uid="uid://ce83cuqwgwwi4" path="res://resource/animation/character/hero01_long_attack.aseprite" id="1_0llso"]
|
||||
|
||||
[resource]
|
||||
resource_name = "hero01_common_skill03"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("View:sprite_frames")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [ExtResource("1_0llso")]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("View:animation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": ["long_attack01"]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("View:frame")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("Status:break_level")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0, 0.4, 0.6),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [0, 3, 4]
|
||||
}
|
||||
tracks/4/type = "value"
|
||||
tracks/4/imported = false
|
||||
tracks/4/enabled = true
|
||||
tracks/4/path = NodePath("Status:speed_up_rate")
|
||||
tracks/4/interp = 1
|
||||
tracks/4/loop_wrap = true
|
||||
tracks/4/keys = {
|
||||
"times": PackedFloat32Array(0.2, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [-0.5, -1.0]
|
||||
}
|
||||
tracks/5/type = "value"
|
||||
tracks/5/imported = false
|
||||
tracks/5/enabled = true
|
||||
tracks/5/path = NodePath("Status:skill_move_speed")
|
||||
tracks/5/interp = 1
|
||||
tracks/5/loop_wrap = true
|
||||
tracks/5/keys = {
|
||||
"times": PackedFloat32Array(0.1, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [2.0, 0.0]
|
||||
}
|
||||
tracks/6/type = "method"
|
||||
tracks/6/imported = false
|
||||
tracks/6/enabled = true
|
||||
tracks/6/path = NodePath("Effect")
|
||||
tracks/6/interp = 1
|
||||
tracks/6/loop_wrap = true
|
||||
tracks/6/keys = {
|
||||
"times": PackedFloat32Array(0.1),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
"method": &"cast_attack_particle1"
|
||||
}]
|
||||
}
|
||||
@ -0,0 +1,93 @@
|
||||
[gd_resource type="Animation" load_steps=2 format=3 uid="uid://h8hm3kbecdx8"]
|
||||
|
||||
[ext_resource type="SpriteFrames" uid="uid://ce83cuqwgwwi4" path="res://resource/animation/character/hero01_long_attack.aseprite" id="1_ikxh1"]
|
||||
|
||||
[resource]
|
||||
resource_name = "hero01_remote01"
|
||||
step = 0.1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("View:sprite_frames")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [ExtResource("1_ikxh1")]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("View:animation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": ["long_attack01"]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Status:break_level")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.3, 0.7),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [0, 3, 4]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("Status:speed_up_rate")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0.2, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [-0.5, -1.0]
|
||||
}
|
||||
tracks/4/type = "value"
|
||||
tracks/4/imported = false
|
||||
tracks/4/enabled = true
|
||||
tracks/4/path = NodePath("Status:skill_move_speed")
|
||||
tracks/4/interp = 1
|
||||
tracks/4/loop_wrap = true
|
||||
tracks/4/keys = {
|
||||
"times": PackedFloat32Array(0.1, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [2.0, 0.0]
|
||||
}
|
||||
tracks/5/type = "method"
|
||||
tracks/5/imported = false
|
||||
tracks/5/enabled = true
|
||||
tracks/5/path = NodePath("Battle")
|
||||
tracks/5/interp = 1
|
||||
tracks/5/loop_wrap = true
|
||||
tracks/5/keys = {
|
||||
"times": PackedFloat32Array(0.3),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
"method": &"cast_sub_character"
|
||||
}]
|
||||
}
|
||||
tracks/6/type = "value"
|
||||
tracks/6/imported = false
|
||||
tracks/6/enabled = true
|
||||
tracks/6/path = NodePath("View:frame")
|
||||
tracks/6/interp = 1
|
||||
tracks/6/loop_wrap = true
|
||||
tracks/6/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
[gd_resource type="Animation" load_steps=2 format=3 uid="uid://q7qlw0a7hfjt"]
|
||||
|
||||
[ext_resource type="SpriteFrames" uid="uid://ce83cuqwgwwi4" path="res://resource/animation/character/hero01_long_attack.aseprite" id="1_kcx6f"]
|
||||
|
||||
[resource]
|
||||
resource_name = "hero01_slash01"
|
||||
length = 1.2
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("View:sprite_frames")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [ExtResource("1_kcx6f")]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("View:animation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": ["long_attack04"]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("View:frame")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.1),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://bng8h2cdq0j5m"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/beehave/nodes/beehave_tree.gd" id="1_r673b"]
|
||||
[ext_resource type="Script" path="res://addons/beehave/nodes/composites/sequence.gd" id="3_yeaa5"]
|
||||
[ext_resource type="Script" path="res://script/ai/action/action_destroy.gd" id="5_0a0n1"]
|
||||
[ext_resource type="Script" path="res://script/ai/action/action_wait.gd" id="6_omj7f"]
|
||||
[ext_resource type="Script" path="res://script/ai/action/action_attack1.gd" id="7_wcjhl"]
|
||||
|
||||
[node name="BeehaveTree" type="Node" node_paths=PackedStringArray("blackboard")]
|
||||
script = ExtResource("1_r673b")
|
||||
blackboard = NodePath("@Node@80344")
|
||||
|
||||
[node name="SequenceComposite" type="Node" parent="."]
|
||||
script = ExtResource("3_yeaa5")
|
||||
|
||||
[node name="ActionWait2" type="Node" parent="SequenceComposite"]
|
||||
script = ExtResource("6_omj7f")
|
||||
wait_time = 0.1
|
||||
|
||||
[node name="ActionAttack1" type="Node" parent="SequenceComposite"]
|
||||
script = ExtResource("7_wcjhl")
|
||||
|
||||
[node name="ActionWait" type="Node" parent="SequenceComposite"]
|
||||
script = ExtResource("6_omj7f")
|
||||
wait_time = 0.1
|
||||
|
||||
[node name="ActionDestroy" type="Node" parent="SequenceComposite"]
|
||||
script = ExtResource("5_0a0n1")
|
||||
@ -0,0 +1,28 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://c81t2x7d7tb3p"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/beehave/nodes/beehave_tree.gd" id="1_go1b5"]
|
||||
[ext_resource type="Script" path="res://addons/beehave/nodes/composites/sequence.gd" id="2_k8nph"]
|
||||
[ext_resource type="Script" path="res://script/ai/action/action_wait.gd" id="3_xg7xh"]
|
||||
[ext_resource type="Script" path="res://script/ai/action/action_attack1.gd" id="4_mhoc5"]
|
||||
[ext_resource type="Script" path="res://script/ai/action/action_destroy.gd" id="5_ejojh"]
|
||||
|
||||
[node name="BeehaveTree" type="Node" node_paths=PackedStringArray("blackboard")]
|
||||
script = ExtResource("1_go1b5")
|
||||
blackboard = NodePath("@Node@80344")
|
||||
|
||||
[node name="SequenceComposite" type="Node" parent="."]
|
||||
script = ExtResource("2_k8nph")
|
||||
|
||||
[node name="ActionWait2" type="Node" parent="SequenceComposite"]
|
||||
script = ExtResource("3_xg7xh")
|
||||
wait_time = 0.1
|
||||
|
||||
[node name="ActionAttack1" type="Node" parent="SequenceComposite"]
|
||||
script = ExtResource("4_mhoc5")
|
||||
|
||||
[node name="ActionWait" type="Node" parent="SequenceComposite"]
|
||||
script = ExtResource("3_xg7xh")
|
||||
wait_time = 0.1
|
||||
|
||||
[node name="ActionDestroy" type="Node" parent="SequenceComposite"]
|
||||
script = ExtResource("5_ejojh")
|
||||
@ -0,0 +1,19 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://1bjfixh8yjc1"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/beehave/nodes/beehave_tree.gd" id="1_bbyao"]
|
||||
[ext_resource type="Script" path="res://addons/beehave/nodes/composites/sequence.gd" id="2_04nig"]
|
||||
[ext_resource type="Script" path="res://script/ai/action/action_find_target.gd" id="3_c43ds"]
|
||||
[ext_resource type="Script" path="res://script/ai/action_with_target/action_move_to_target.gd" id="4_xtt4k"]
|
||||
|
||||
[node name="BeehaveTree" type="Node" node_paths=PackedStringArray("blackboard")]
|
||||
script = ExtResource("1_bbyao")
|
||||
blackboard = NodePath("@Node@79226")
|
||||
|
||||
[node name="SequenceComposite" type="Node" parent="."]
|
||||
script = ExtResource("2_04nig")
|
||||
|
||||
[node name="ActionFindTarget" type="Node" parent="SequenceComposite"]
|
||||
script = ExtResource("3_c43ds")
|
||||
|
||||
[node name="ActionMoveToTarget" type="Node" parent="SequenceComposite"]
|
||||
script = ExtResource("4_xtt4k")
|
||||
@ -0,0 +1,19 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://2e2ws176hev1"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/beehave/nodes/beehave_tree.gd" id="1_y3xa0"]
|
||||
[ext_resource type="Script" path="res://addons/beehave/nodes/composites/sequence.gd" id="2_ohjmj"]
|
||||
[ext_resource type="Script" path="res://script/ai/action/action_find_target.gd" id="3_fmht1"]
|
||||
[ext_resource type="Script" path="res://script/ai/action_with_target/action_move_to_target.gd" id="4_pwax0"]
|
||||
|
||||
[node name="BeehaveTree" type="Node" node_paths=PackedStringArray("blackboard")]
|
||||
script = ExtResource("1_y3xa0")
|
||||
blackboard = NodePath("@Node@79226")
|
||||
|
||||
[node name="SequenceComposite" type="Node" parent="."]
|
||||
script = ExtResource("2_ohjmj")
|
||||
|
||||
[node name="ActionFindTarget" type="Node" parent="SequenceComposite"]
|
||||
script = ExtResource("3_fmht1")
|
||||
|
||||
[node name="ActionMoveToTarget" type="Node" parent="SequenceComposite"]
|
||||
script = ExtResource("4_pwax0")
|
||||
@ -0,0 +1,11 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://c14x2tyyt8hf6"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b2h4pcmlii7dg" path="res://scene/effect/particle/_particle_slash1.tscn" id="1_urvri"]
|
||||
|
||||
[node name="Particle" instance=ExtResource("1_urvri")]
|
||||
transform = Transform3D(0.5, 0, 0, 0, 1, 0, 0, 0, 0.5, 0, 0, 0)
|
||||
|
||||
[node name="Slash" parent="." index="0"]
|
||||
emitting = true
|
||||
lifetime = 600.0
|
||||
one_shot = false
|
||||
@ -0,0 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://dd6hhtcxrx8ox"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b2h4pcmlii7dg" path="res://scene/effect/particle/_particle_slash1.tscn" id="1_p8l11"]
|
||||
|
||||
[node name="Particle" instance=ExtResource("1_p8l11")]
|
||||
transform = Transform3D(1, 0, 0, 0, -0.707107, 0.353553, 0, -0.707107, -0.353553, 0, 0, 0)
|
||||
@ -0,0 +1,10 @@
|
||||
extends Action
|
||||
class_name ActionAttack1
|
||||
|
||||
func run(character: Character) -> int:
|
||||
var is_hit: bool = character.attack1()
|
||||
if is_hit:
|
||||
return SUCCESS
|
||||
else:
|
||||
return FAILURE
|
||||
|
||||
@ -0,0 +1,10 @@
|
||||
extends Action
|
||||
class_name ActionAttack2
|
||||
|
||||
func run(character: Character) -> int:
|
||||
var is_hit: bool = character.attack2()
|
||||
if is_hit:
|
||||
return SUCCESS
|
||||
else:
|
||||
return FAILURE
|
||||
|
||||
@ -0,0 +1,7 @@
|
||||
extends Action
|
||||
class_name ActionDestroy
|
||||
|
||||
func run(character: Character) -> int:
|
||||
Global.character_mgr.destroy_character(character.id())
|
||||
return SUCCESS
|
||||
|
||||
@ -0,0 +1,7 @@
|
||||
extends Action
|
||||
class_name ActionStopMove
|
||||
|
||||
func run(character: Character) -> int:
|
||||
var player_id: int = Global.character_mgr.get_player_id()
|
||||
character.set_target(player_id)
|
||||
return SUCCESS
|
||||
@ -1,9 +1,28 @@
|
||||
extends Node3D
|
||||
class_name AI
|
||||
|
||||
@onready var character = (get_owner() as Character)
|
||||
@onready var status = (%Status as Status)
|
||||
@onready var character: Character = (get_owner() as Character)
|
||||
@onready var status: Status = (%Status as Status)
|
||||
|
||||
var is_init: bool = false
|
||||
var has_ai: bool = false
|
||||
|
||||
func _ready():
|
||||
|
||||
func _process(delta) -> void:
|
||||
if is_init:
|
||||
if has_ai: on_process(delta)
|
||||
return
|
||||
|
||||
if not status.cfg:
|
||||
return
|
||||
is_init = true
|
||||
var ai: PackedScene = status.cfg.get_ai()
|
||||
if not ai:
|
||||
return
|
||||
var ai_node: Node = ai.instantiate()
|
||||
add_child(ai_node)
|
||||
has_ai = true
|
||||
|
||||
|
||||
func on_process(delta):
|
||||
pass
|
||||
|
||||
@ -1,5 +1,10 @@
|
||||
extends AI
|
||||
class_name BulletAI
|
||||
|
||||
func _ready():
|
||||
pass
|
||||
var alive_time: float = 0
|
||||
|
||||
|
||||
func on_process(delta):
|
||||
alive_time += delta
|
||||
if alive_time >= 5:
|
||||
Global.character_mgr.destroy_character(character.id())
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
extends AI
|
||||
class_name MonsterAI
|
||||
|
||||
func _ready():
|
||||
func on_process():
|
||||
pass
|
||||
|
||||
@ -1,10 +0,0 @@
|
||||
@tool
|
||||
extends SkillCfg
|
||||
class_name SkillPlayerCfg
|
||||
|
||||
@export var weapon: WeaponCfg
|
||||
@export var stance_from: Enum.EStance = Enum.EStance.GroundAny
|
||||
@export var stance_to: Enum.EStance
|
||||
@export var break_level: Enum.EBreakLevel = Enum.EBreakLevel.Break
|
||||
|
||||
@export_enum("none", "attack_light", "attack_heavy", "flash") var action: String = "none"
|
||||
@ -0,0 +1,7 @@
|
||||
@tool
|
||||
extends SkillCfg
|
||||
class_name SkillWeaponCfg
|
||||
|
||||
@export var weapon: WeaponCfg
|
||||
|
||||
@export_enum("none", "attack_light", "attack_heavy", "flash") var action: String = "none"
|
||||
Loading…
Reference in New Issue