From 132cea81cf3c9a6252613767cfbd90fbe9955350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=A8=E8=90=BD=E5=9F=BA=E5=9B=B4=E8=99=BE?= <3161880837@qq.com> Date: Fri, 29 Aug 2025 14:59:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=AD=90=E5=BC=B9):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=93=9D=E8=89=B2=E6=BF=80=E5=85=89=E5=9C=86=E7=8E=AF=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E5=B9=B6=E5=BA=94=E7=94=A8=E5=88=B0ChickLaser?= =?UTF-8?q?=E5=9C=BA=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加蓝色激光圆环的SVG资源文件及其导入配置 在ChickLaser场景中新增circle节点使用该纹理 调整launcher节点的颜色为蓝色以匹配新资源 --- components/Bullets/ChickLaser.tscn | 7 +++- .../bullets/laser-circle/blue-circle.svg | 1 + .../laser-circle/blue-circle.svg.import | 37 +++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 resources/bullets/laser-circle/blue-circle.svg create mode 100644 resources/bullets/laser-circle/blue-circle.svg.import diff --git a/components/Bullets/ChickLaser.tscn b/components/Bullets/ChickLaser.tscn index 0212050..857c212 100644 --- a/components/Bullets/ChickLaser.tscn +++ b/components/Bullets/ChickLaser.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=16 format=3 uid="uid://bvri0nv1jrigf"] +[gd_scene load_steps=17 format=3 uid="uid://bvri0nv1jrigf"] [ext_resource type="PackedScene" uid="uid://8gjjfju6p3fh" path="res://components/Bullets/Common/LaserSummoner.tscn" id="1_eb54j"] [ext_resource type="Script" path="res://scripts/Contents/Bullets/ChickLaser.gd" id="2_7g0f0"] [ext_resource type="Shader" path="res://shaders/BigLaser.gdshader" id="3_4y0mm"] +[ext_resource type="Texture2D" uid="uid://cv8yl3ncek4ap" path="res://resources/bullets/laser-circle/blue-circle.svg" id="4_cws6l"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_x6ivr"] shader = ExtResource("3_4y0mm") @@ -223,12 +224,16 @@ visibility_rect = Rect2(-50, -250, 100, 500) [node name="launcher" parent="texture/rect" index="1"] position = Vector2(25, -13.9999) scale = Vector2(0.525, 0.525) +color = Color(0, 0.701961, 1, 1) [node name="animator" parent="texture" index="1"] libraries = { "": SubResource("AnimationLibrary_7qqtc") } +[node name="circle" parent="texture" index="2"] +texture = ExtResource("4_cws6l") + [node name="hitbox" parent="." index="1"] visible = true position = Vector2(438, 0) diff --git a/resources/bullets/laser-circle/blue-circle.svg b/resources/bullets/laser-circle/blue-circle.svg new file mode 100644 index 0000000..2bb9d60 --- /dev/null +++ b/resources/bullets/laser-circle/blue-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/bullets/laser-circle/blue-circle.svg.import b/resources/bullets/laser-circle/blue-circle.svg.import new file mode 100644 index 0000000..e0262a7 --- /dev/null +++ b/resources/bullets/laser-circle/blue-circle.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cv8yl3ncek4ap" +path="res://.godot/imported/blue-circle.svg-f6e74a3da320ebf7971932410f5a40f7.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://resources/bullets/laser-circle/blue-circle.svg" +dest_files=["res://.godot/imported/blue-circle.svg-f6e74a3da320ebf7971932410f5a40f7.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false