子弹01绘制 指示圈 阴影调整

master
chendian 2 years ago
parent f0a8bffb85
commit 57f32187cf

@ -12,8 +12,8 @@ script = ExtResource("3_p63bn")
name = "hero01"
type = 2
sprite_frames = ExtResource("4_x87ux")
sprite_harf_height = 8
sprite_width = 16
sprite_harf_height = 16
sprite_width = 8
move = ExtResource("1_b02yl")
shield = ExtResource("4_qnn3b")
stun = ExtResource("6_y4hsh")

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bd7kst3jrrma5"
path="res://.godot/imported/readiness_bullet.png-948274b2b501dfc9e3c74f03cb74d333.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://render/texture/shape/readiness_bullet.png"
dest_files=["res://.godot/imported/readiness_bullet.png-948274b2b501dfc9e3c74f03cb74d333.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=0
compress/normal_map=2
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=false
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=0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 443 B

After

Width:  |  Height:  |  Size: 233 B

File diff suppressed because one or more lines are too long

@ -1,29 +1,15 @@
[gd_scene load_steps=8 format=3 uid="uid://c43cuvaiu2jha"]
[gd_scene load_steps=4 format=3 uid="uid://c43cuvaiu2jha"]
[ext_resource type="PackedScene" uid="uid://ksxwg0alt2us" path="res://scene/character/character.tscn" id="1_f620f"]
[ext_resource type="SpriteFrames" uid="uid://ce83cuqwgwwi4" path="res://resource/animation/character/hero01_long_attack.aseprite" id="2_irmil"]
[ext_resource type="Script" path="res://script/character/ai/bullet_ai.gd" id="3_c6unk"]
[ext_resource type="Script" path="res://addons/beehave/nodes/beehave_tree.gd" id="4_xod2c"]
[ext_resource type="Script" path="res://addons/beehave/nodes/composites/sequence.gd" id="5_mfd1o"]
[ext_resource type="PackedScene" uid="uid://1t2pkg7j2dkg" path="res://scene/ai/action/find_target.tscn" id="6_3qvhw"]
[ext_resource type="PackedScene" uid="uid://06ww04hf5wl0" path="res://scene/ai/action/move_to_target.tscn" id="7_yf62l"]
[node name="Character" instance=ExtResource("1_f620f")]
[node name="View" parent="." index="2"]
cast_shadow = 0
sprite_frames = ExtResource("2_irmil")
animation = &"long_air_attack01"
[node name="BulletAI" type="Node3D" parent="." index="8"]
script = ExtResource("3_c6unk")
[node name="BeehaveTree" type="Node" parent="BulletAI" index="0" node_paths=PackedStringArray("blackboard")]
script = ExtResource("4_xod2c")
blackboard = NodePath("@Node@39469")
[node name="SequenceComposite" type="Node" parent="BulletAI/BeehaveTree" index="0"]
script = ExtResource("5_mfd1o")
[node name="FindTarget" parent="BulletAI/BeehaveTree/SequenceComposite" index="0" instance=ExtResource("6_3qvhw")]
[node name="MoveToTarget" parent="BulletAI/BeehaveTree/SequenceComposite" index="1" instance=ExtResource("7_yf62l")]

@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=3 uid="uid://cxj65e7teugyw"]
[ext_resource type="Texture2D" uid="uid://bd7kst3jrrma5" path="res://render/texture/shape/readiness_bullet.png" id="1_qpapc"]
[node name="ReadinessHero" type="Decal"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.358925, 0)
size = Vector3(1, 1, 1)
texture_albedo = ExtResource("1_qpapc")
cull_mask = 1

@ -5,6 +5,7 @@ class_name Effect
@onready var corpse = preload("res://scene/effect/afterimage/normal.tscn")
@onready var readiness_hero = preload("res://scene/effect/decal/readiness_hero.tscn")
@onready var readiness_monster = preload("res://scene/effect/decal/readiness_monster.tscn")
@onready var readiness_bullet = preload("res://scene/effect/decal/readiness_bullet.tscn")
@onready var character = (get_owner() as Character)
@onready var view = (%View as View)
@ -18,6 +19,7 @@ func init(type:Enum.ECharacterType,body_scale:Vector3):
match type:
Enum.ECharacterType.Player:rediness = readiness_hero.instantiate()
Enum.ECharacterType.Monster:rediness = readiness_monster.instantiate()
Enum.ECharacterType.Bullet:rediness = readiness_bullet.instantiate()
if rediness:
rediness.scale = body_scale *2.2
rediness.scale.y = 10

Loading…
Cancel
Save