mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-01 00:41:54 +08:00
feat(武器系统): 调整LGBT武器参数并添加新子弹资源
调整LGBT武器的属性计算方式,降低粒子效果数量 更新武器描述文本以反映数值变化 添加新的VectorStar子弹资源和Arrow1-a.svg素材
This commit is contained in:
@@ -93,7 +93,7 @@ shape = SubResource("CircleShape2D_1e8f0")
|
||||
|
||||
[node name="particles" type="GPUParticles2D" parent="." index="2"]
|
||||
z_index = -1
|
||||
amount = 500
|
||||
amount = 200
|
||||
process_material = SubResource("ParticleProcessMaterial_4q0mc")
|
||||
|
||||
[node name="particles2" type="GPUParticles2D" parent="." index="3"]
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://ro1df12asa6y"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_fyvdf"]
|
||||
[ext_resource type="Texture2D" uid="uid://d2pndtow16635" path="res://resources/bullets/lgbt-bullet/造型2.svg" id="2_7b7fr"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_jj20o"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_7b7fr")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_y5wc0"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_c22if"]
|
||||
curve = SubResource("Curve_y5wc0")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_r5tug"]
|
||||
_data = [Vector2(0.696697, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_6bcs1"]
|
||||
curve = SubResource("Curve_r5tug")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_bieyj"]
|
||||
particle_flag_disable_z = true
|
||||
direction = Vector3(-1, 0, 0)
|
||||
spread = 0.0
|
||||
initial_velocity_min = 50.0
|
||||
initial_velocity_max = 100.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
scale_curve = SubResource("CurveTexture_6bcs1")
|
||||
alpha_curve = SubResource("CurveTexture_c22if")
|
||||
|
||||
[node name="VectorStar" instance=ExtResource("1_fyvdf")]
|
||||
|
||||
[node name="texture" parent="." index="0"]
|
||||
sprite_frames = SubResource("SpriteFrames_jj20o")
|
||||
|
||||
[node name="particles" type="GPUParticles2D" parent="." index="2"]
|
||||
process_material = SubResource("ParticleProcessMaterial_bieyj")
|
||||
texture = ExtResource("2_7b7fr")
|
||||
@@ -13,9 +13,9 @@ displayName = "彩虹旗"
|
||||
quality = 4
|
||||
store = {
|
||||
"angle": 30.0,
|
||||
"atk": 20,
|
||||
"atk": 20.0,
|
||||
"count": 7.0,
|
||||
"power": 0.3,
|
||||
"power": 0.15,
|
||||
"trace": 2.0
|
||||
}
|
||||
storeType = Array[int]([2, 0, 0, 1, 0])
|
||||
@@ -43,5 +43,5 @@ typeTopicNameMap = {
|
||||
|
||||
[node name="description" parent="container" index="2"]
|
||||
size_flags_vertical = 3
|
||||
text = "[center]发射[color=cyan]7.0[/color]条,每条间分隔[color=cyan]30.0°[/color],可追踪[color=cyan]2.0[/color]秒,效率为[color=cyan]30.0%[/color]的带状彩虹,每条造成[color=cyan]20.0[/color]点伤害。[/center]"
|
||||
text = "[center]发射[color=cyan]7.0[/color]条,每条间分隔[color=cyan]30.0°[/color],可追踪[color=cyan]2.0[/color]秒,效率为[color=cyan]15.0%[/color]的带状彩虹,每条造成[color=cyan]20.0[/color]点伤害。[/center]"
|
||||
autowrap_mode = 2
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="56.28967872262001" height="46.32666602730751" viewBox="0.4101859778165817 0.020448610186576843 56.28967872262001 46.32666602730751">
|
||||
<defs>
|
||||
<linearGradient id="grad_1" x1="352.5928" y1="1042.4482" x2="352.5928" y2="1139.9414" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" stop-color="#EE2A7B"/>
|
||||
<stop offset="1" stop-color="#811150"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="grad_1-.4632912278175354,0,0,0.4632912278175354,-4.15,-9.8" x1="159.2032" y1="473.1571" x2="159.2032" y2="518.3249" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" stop-color="#EE2A7B"/>
|
||||
<stop offset="1" stop-color="#811150"/>
|
||||
</linearGradient></defs>
|
||||
<!-- Exported by Scratch - http://scratch.mit.edu/ -->
|
||||
<g id="ID0.16137408139184117">
|
||||
<path id="ID0.6278323931619525" fill="url(#grad_1-.4632912278175354,0,0,0.4632912278175354,-4.15,-9.8)" stroke="#FFFFFF" stroke-width="1.1582280695438385" d="M 39.265 28.1885 C 39.265 28.1885 16.3395 28.1982 5.9275 28.1982 C 3.2001 28.1982 0.9893 25.9869 0.9893 23.26 C 0.9893 20.5326 3.2001 18.3222 5.9275 18.3222 C 14.6568 18.3222 39.2382 18.312 39.2382 18.312 C 39.2382 18.312 37.5879 16.6419 29.9746 9.0291 C 28.046 7.1004 28.046 3.9741 29.9746 2.0459 C 31.9042 0.1177 35.0301 0.1172 36.9583 2.0459 C 43.1316 8.2183 54.6746 19.7626 54.6746 19.7626 C 56.6028 21.6913 56.6028 24.818 54.6746 26.7458 C 54.6746 26.7458 44.7133 36.7075 37.1001 44.3208 C 35.1705 46.2504 32.0442 46.2504 30.1164 44.3208 C 28.1877 42.3925 28.1877 39.2653 30.1164 37.3385 C 36.2898 31.1633 39.265 28.1885 39.265 28.1885 Z "/>
|
||||
</g>
|
||||
</svg><!--rotationCenter:28:23-->
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,37 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://5upuujtylc7h"
|
||||
path="res://.godot/imported/Arrow1-a.svg-92df5798c4d3d6b7d19432e6208f5389.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://resources/weapons/Arrow1-a.svg"
|
||||
dest_files=["res://.godot/imported/Arrow1-a.svg-92df5798c4d3d6b7d19432e6208f5389.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
|
||||
@@ -4,10 +4,10 @@ class_name LGBTWeapon
|
||||
|
||||
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
origin["atk"] += 2 * to
|
||||
origin["count"] += 1
|
||||
origin["power"] += 0.03
|
||||
origin["trace"] += 0.25
|
||||
origin["angle"] -= 0.1
|
||||
origin["count"] += to
|
||||
origin["power"] += 0.01 * level
|
||||
origin["trace"] += 0.25 * level
|
||||
origin["angle"] /= 1.05 * level
|
||||
return origin
|
||||
func attack(entity: EntityBase):
|
||||
var weaponPos = entity.findWeaponAnchor("normal")
|
||||
|
||||
Reference in New Issue
Block a user