diff --git a/components/Bullets/Arrow.tscn b/components/Bullets/Arrow.tscn new file mode 100644 index 0000000..366082d --- /dev/null +++ b/components/Bullets/Arrow.tscn @@ -0,0 +1,18 @@ +[gd_scene load_steps=4 format=3 uid="uid://wy8wqwhwr4fb"] + +[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_0wuio"] +[ext_resource type="Texture2D" uid="uid://dadbn306owsy3" path="res://resources/bullets/arrow/arrow.png" id="2_b2ohg"] + +[sub_resource type="CircleShape2D" id="CircleShape2D_b2ohg"] + +[node name="Arrow" instance=ExtResource("1_0wuio")] +displayName = "鸡毛箭" +penerate = 1.0 + +[node name="static" type="Sprite2D" parent="texture" index="1"] +scale = Vector2(0.06775362, 0.06775362) +texture = ExtResource("2_b2ohg") + +[node name="hitbox" parent="." index="1"] +position = Vector2(79, 2) +shape = SubResource("CircleShape2D_b2ohg") diff --git a/components/Bullets/Bow.tscn b/components/Bullets/Bow.tscn new file mode 100644 index 0000000..8300427 --- /dev/null +++ b/components/Bullets/Bow.tscn @@ -0,0 +1,13 @@ +[gd_scene load_steps=3 format=3 uid="uid://c2ga3ktbxdfc5"] + +[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_t0pyo"] +[ext_resource type="Texture2D" uid="uid://7us1po711e3o" path="res://resources/weapons/鸡毛弓.png" id="2_two1a"] + +[node name="Bow" instance=ExtResource("1_t0pyo")] + +[node name="static" type="Sprite2D" parent="texture" index="1"] +scale = Vector2(0.055427626, 0.055427626) +texture = ExtResource("2_two1a") + +[node name="hitbox" parent="." index="1"] +disabled = true diff --git a/components/Bullets/Volcano.tscn b/components/Bullets/Volcano.tscn index e688d00..fcf9a49 100644 --- a/components/Bullets/Volcano.tscn +++ b/components/Bullets/Volcano.tscn @@ -127,7 +127,7 @@ curve = SubResource("Curve_o5h0y") [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_xrrxo"] particle_flag_disable_z = true emission_shape = 3 -emission_box_extents = Vector3(37, 1, 1) +emission_box_extents = Vector3(10, 1, 1) angle_min = 1.0728835e-05 angle_max = 360.00003 angle_curve = SubResource("CurveTexture_6sp0s") @@ -164,11 +164,10 @@ scale = Vector2(1.5, 1.5) texture = ExtResource("2_wwxm2") [node name="trail" type="GPUParticles2D" parent="texture/anchor/texture" index="0"] -z_index = -1 -position = Vector2(7.3893127, -7.3893127) +position = Vector2(27.341467, -27.341467) rotation = -0.7853982 scale = Vector2(0.9999999, 0.9999999) -amount = 100 +amount = 200 process_material = SubResource("ParticleProcessMaterial_xrrxo") [node name="hitbox" parent="." index="1"] diff --git a/components/Debug/TestScene.tscn b/components/Debug/TestScene.tscn deleted file mode 100644 index 46976ab..0000000 --- a/components/Debug/TestScene.tscn +++ /dev/null @@ -1,31 +0,0 @@ -[gd_scene load_steps=7 format=3 uid="uid://bnf0o8rmin5v4"] - -[ext_resource type="Shader" path="res://shaders/CooldownProgress.gdshader" id="1_vncc3"] -[ext_resource type="Texture2D" uid="uid://16yhngg3jpun" path="res://resources/weapons/purple-crystal.svg" id="2_gmp7s"] -[ext_resource type="Shader" path="res://shaders/Outline.gdshader" id="3_8bxlh"] -[ext_resource type="Texture2D" uid="uid://dkmxuxkwtgbjg" path="res://resources/characters/kernel/7C0F216A29125CA213705918760B1AAA.png" id="3_hridd"] - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_jyenr"] -shader = ExtResource("1_vncc3") -shader_parameter/progress = 0.5 -shader_parameter/backAlpha = 0.25 -shader_parameter/edgeHeight = 0.05 -shader_parameter/trailHeight = 0.3 -shader_parameter/trailAlpha = 0.5 - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_tnwho"] -shader = ExtResource("3_8bxlh") -shader_parameter/width = 10.0 -shader_parameter/outline_color = Color(0.78125, 0, 1, 1) - -[node name="Node2D" type="Node2D"] - -[node name="Sprite2D" type="Sprite2D" parent="."] -material = SubResource("ShaderMaterial_jyenr") -position = Vector2(-471, 117) -texture = ExtResource("2_gmp7s") - -[node name="7c0f216a29125ca213705918760b1aaa" type="Sprite2D" parent="."] -material = SubResource("ShaderMaterial_tnwho") -position = Vector2(503, 133) -texture = ExtResource("3_hridd") diff --git a/resources/bullets/arrow/arrow.png b/resources/bullets/arrow/arrow.png new file mode 100644 index 0000000..6b8d46d Binary files /dev/null and b/resources/bullets/arrow/arrow.png differ diff --git a/resources/bullets/arrow/arrow.png.import b/resources/bullets/arrow/arrow.png.import new file mode 100644 index 0000000..0d47f98 --- /dev/null +++ b/resources/bullets/arrow/arrow.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dadbn306owsy3" +path="res://.godot/imported/arrow.png-b54a6f05a6e84314c90f6d7d851b5393.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://resources/bullets/arrow/arrow.png" +dest_files=["res://.godot/imported/arrow.png-b54a6f05a6e84314c90f6d7d851b5393.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 diff --git a/resources/weapons/鸡毛弓.png b/resources/weapons/鸡毛弓.png new file mode 100644 index 0000000..e2912fd Binary files /dev/null and b/resources/weapons/鸡毛弓.png differ diff --git a/resources/weapons/鸡毛弓.png.import b/resources/weapons/鸡毛弓.png.import new file mode 100644 index 0000000..caea4cd --- /dev/null +++ b/resources/weapons/鸡毛弓.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://7us1po711e3o" +path="res://.godot/imported/鸡毛弓.png-5547d6bef892fb57841ad8bfa4555738.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://resources/weapons/鸡毛弓.png" +dest_files=["res://.godot/imported/鸡毛弓.png-5547d6bef892fb57841ad8bfa4555738.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