mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-09 13:17:12 +08:00
feat(子弹): 为多种子弹添加穿透属性
为LightGun、Meowmere、HJMAttack等子弹组件添加penerate穿透属性,调整部分子弹的穿透值和伤害参数
This commit is contained in:
@@ -3,10 +3,6 @@
|
||||
[ext_resource type="PackedScene" uid="uid://8gjjfju6p3fh" path="res://components/Bullets/LaserSummoner.tscn" id="1_ukbip"]
|
||||
|
||||
[node name="BigLaser" instance=ExtResource("1_ukbip")]
|
||||
needEnergy = 100.0
|
||||
penerate = 1.0
|
||||
knockback = 10.0
|
||||
recoil = 4.0
|
||||
|
||||
[node name="rect" parent="texture" index="0"]
|
||||
offset_top = 0.0
|
||||
offset_bottom = 2000.0
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[gd_scene load_steps=17 format=3 uid="uid://bvri0nv1jrigf"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://8gjjfju6p3fh" path="res://components/Bullets/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="Script" uid="uid://nygobyigq5sp" path="res://scripts/Contents/Bullets/ChickLaser.gd" id="2_7g0f0"]
|
||||
[ext_resource type="Shader" uid="uid://d3aopn2f23pmi" 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"]
|
||||
@@ -15,6 +15,7 @@ shader_parameter/wave_frequency = 1.0
|
||||
shader_parameter/wave_amplitude = 0.5
|
||||
shader_parameter/wave_width = 0.5
|
||||
shader_parameter/edge_nonalpha = 0.6
|
||||
shader_parameter/alpha = 1.0
|
||||
|
||||
[sub_resource type="Curve" id="Curve_4f20s"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
@@ -195,8 +196,8 @@ tracks/5/keys = {
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_7qqtc"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_1rif1"),
|
||||
"spawn": SubResource("Animation_ep0ow")
|
||||
&"RESET": SubResource("Animation_1rif1"),
|
||||
&"spawn": SubResource("Animation_ep0ow")
|
||||
}
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_sg52j"]
|
||||
@@ -206,6 +207,7 @@ height = 500.0
|
||||
[node name="ChickLaser" instance=ExtResource("1_eb54j")]
|
||||
script = ExtResource("2_7g0f0")
|
||||
displayName = "冷冻激光"
|
||||
penerate = 1.0
|
||||
metadata/_edit_vertical_guides_ = [688.0, 189.0]
|
||||
|
||||
[node name="rect" parent="texture" index="0"]
|
||||
@@ -217,9 +219,9 @@ offset_bottom = 500.0
|
||||
[node name="particles" parent="texture/rect" index="0"]
|
||||
position = Vector2(25, 250)
|
||||
amount = 100
|
||||
process_material = SubResource("ParticleProcessMaterial_vb8yw")
|
||||
lifetime = 0.1
|
||||
visibility_rect = Rect2(-50, -250, 100, 500)
|
||||
process_material = SubResource("ParticleProcessMaterial_vb8yw")
|
||||
|
||||
[node name="launcher" parent="texture/rect" index="1"]
|
||||
position = Vector2(25, -13.9999)
|
||||
@@ -228,7 +230,7 @@ color = Color(0, 0.701961, 1, 1)
|
||||
|
||||
[node name="animator" parent="texture" index="1"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_7qqtc")
|
||||
&"": SubResource("AnimationLibrary_7qqtc")
|
||||
}
|
||||
|
||||
[node name="circle" parent="texture" index="2"]
|
||||
|
||||
@@ -18,6 +18,7 @@ animations = [{
|
||||
[node name="CrystalBlock" instance=ExtResource("1_wqonw")]
|
||||
script = ExtResource("2_42ni1")
|
||||
displayName = "水晶碎块"
|
||||
penerate = 0.2
|
||||
lifeTime = 1000.0
|
||||
|
||||
[node name="texture" parent="." index="0"]
|
||||
|
||||
@@ -8,7 +8,7 @@ size = Vector2(200, 200)
|
||||
|
||||
[node name="HJMA" instance=ExtResource("1_i8ntk")]
|
||||
script = ExtResource("2_ml2df")
|
||||
damage = 5.0
|
||||
penerate = 1.0
|
||||
lifeTime = 50.0
|
||||
|
||||
[node name="hitbox" parent="." index="1"]
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
[gd_scene load_steps=20 format=3 uid="uid://dxd6ikymj0fge"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_mf7ha"]
|
||||
[ext_resource type="Script" path="res://scripts/Statemachine/ShaderStage.gd" id="2_75div"]
|
||||
[ext_resource type="Script" uid="uid://cgb01lelfg73p" path="res://scripts/Statemachine/ShaderStage.gd" id="2_75div"]
|
||||
[ext_resource type="Texture2D" uid="uid://c7hyatbuieaj" path="res://resources/bullets/purple-crystal/frames/0.svg" id="2_ghoc2"]
|
||||
[ext_resource type="Shader" path="res://shaders/Ring.gdshader" id="2_utujj"]
|
||||
[ext_resource type="Script" path="res://scripts/Contents/Bullets/BossAttack/KukeMC/HeavyCrystal.gd" id="2_ygemv"]
|
||||
[ext_resource type="Shader" uid="uid://cnc1n2042ntv5" path="res://shaders/Ring.gdshader" id="2_utujj"]
|
||||
[ext_resource type="Script" uid="uid://fbrwaknikai8" path="res://scripts/Contents/Bullets/BossAttack/KukeMC/HeavyCrystal.gd" id="2_ygemv"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_41i4d"]
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ygwl5"]
|
||||
shader = ExtResource("2_utujj")
|
||||
shader_parameter/inner = 0.95
|
||||
shader_parameter/outer = 1.0
|
||||
shader_parameter/alpha = 1.0
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_e150r"]
|
||||
animations = [{
|
||||
@@ -98,8 +99,8 @@ tracks/2/keys = {
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_mdce7"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_dwk2v"),
|
||||
"spawn": SubResource("Animation_qobcv")
|
||||
&"RESET": SubResource("Animation_dwk2v"),
|
||||
&"spawn": SubResource("Animation_qobcv")
|
||||
}
|
||||
|
||||
[sub_resource type="Curve" id="Curve_g11yl"]
|
||||
@@ -153,13 +154,13 @@ scale = Vector2(2, 2)
|
||||
script = ExtResource("2_ygemv")
|
||||
displayName = "动力水晶"
|
||||
speed = 0.0
|
||||
damage = 40.0
|
||||
penerate = 1.0
|
||||
lifeTime = 2000.0
|
||||
autoSpawnAnimation = true
|
||||
|
||||
[node name="track" type="Node2D" parent="." index="0"]
|
||||
unique_name_in_owner = true
|
||||
material = SubResource("ShaderMaterial_41i4d")
|
||||
material = SubResource("ShaderMaterial_ygwl5")
|
||||
script = ExtResource("2_75div")
|
||||
size = Vector2(300, 300)
|
||||
color = Color(0.869998, 0.686414, 0.917359, 1)
|
||||
@@ -171,7 +172,7 @@ sprite_frames = SubResource("SpriteFrames_e150r")
|
||||
|
||||
[node name="animator" parent="texture" index="0"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_mdce7")
|
||||
&"": SubResource("AnimationLibrary_mdce7")
|
||||
}
|
||||
|
||||
[node name="trail" type="GPUParticles2D" parent="texture" index="1"]
|
||||
@@ -179,8 +180,8 @@ unique_name_in_owner = true
|
||||
z_index = -1
|
||||
position = Vector2(11.3333, 0)
|
||||
amount = 150
|
||||
process_material = SubResource("ParticleProcessMaterial_hgwnm")
|
||||
local_coords = true
|
||||
process_material = SubResource("ParticleProcessMaterial_hgwnm")
|
||||
|
||||
[node name="hitbox" parent="." index="2"]
|
||||
position = Vector2(60, 0)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[gd_scene load_steps=18 format=3 uid="uid://8gjjfju6p3fh"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_pnxoq"]
|
||||
[ext_resource type="Script" path="res://scripts/Contents/Bullets/BigLaser.gd" id="2_nk2p8"]
|
||||
[ext_resource type="Shader" path="res://shaders/BigLaser.gdshader" id="3_ow2gn"]
|
||||
[ext_resource type="Script" uid="uid://b74jed1hoi0r6" path="res://scripts/Contents/Bullets/BigLaser.gd" id="2_nk2p8"]
|
||||
[ext_resource type="Shader" uid="uid://d3aopn2f23pmi" path="res://shaders/BigLaser.gdshader" id="3_ow2gn"]
|
||||
[ext_resource type="Texture2D" uid="uid://dy4op6n6vxef3" path="res://resources/bullets/laser-circle/circle.svg" id="4_sewyb"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_yip5k"]
|
||||
@@ -17,6 +17,7 @@ shader_parameter/wave_frequency = 1.0
|
||||
shader_parameter/wave_amplitude = 0.5
|
||||
shader_parameter/wave_width = 0.5
|
||||
shader_parameter/edge_nonalpha = 0.6
|
||||
shader_parameter/alpha = 1.0
|
||||
|
||||
[sub_resource type="Curve" id="Curve_itlbo"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
@@ -197,8 +198,8 @@ tracks/5/keys = {
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_s7tee"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_1rif1"),
|
||||
"spawn": SubResource("Animation_ep0ow")
|
||||
&"RESET": SubResource("Animation_1rif1"),
|
||||
&"spawn": SubResource("Animation_ep0ow")
|
||||
}
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_x66th"]
|
||||
@@ -207,6 +208,7 @@ height = 2000.0
|
||||
|
||||
[node name="LaserSummoner" instance=ExtResource("1_pnxoq")]
|
||||
script = ExtResource("2_nk2p8")
|
||||
penerate = 1.0
|
||||
autoSpawnAnimation = true
|
||||
autoDestroyOnHitMap = false
|
||||
freeAfterSpawn = true
|
||||
@@ -225,9 +227,9 @@ scale = Vector2(1e-05, 1)
|
||||
[node name="particles" type="GPUParticles2D" parent="texture/rect" index="0"]
|
||||
position = Vector2(50, 1000)
|
||||
amount = 400
|
||||
process_material = SubResource("ParticleProcessMaterial_m7jvq")
|
||||
lifetime = 0.25
|
||||
visibility_rect = Rect2(-100, -1000, 200, 2000)
|
||||
process_material = SubResource("ParticleProcessMaterial_m7jvq")
|
||||
|
||||
[node name="launcher" type="Polygon2D" parent="texture/rect" index="1"]
|
||||
position = Vector2(50, -21)
|
||||
@@ -237,7 +239,7 @@ polygon = PackedVector2Array(-50, -25, 0, 0, -50, 25)
|
||||
|
||||
[node name="animator" parent="texture" index="1"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_s7tee")
|
||||
&"": SubResource("AnimationLibrary_s7tee")
|
||||
}
|
||||
|
||||
[node name="circle" type="Sprite2D" parent="texture" index="2"]
|
||||
|
||||
@@ -211,6 +211,7 @@ allColor = SubResource("GradientTexture1D_aqmnp")
|
||||
length = 1000.0
|
||||
displayName = "空灵长枪"
|
||||
baseDamage = 2.0
|
||||
penerate = 1.0
|
||||
autoSpawnAnimation = true
|
||||
freeAfterSpawn = true
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@ size = Vector2(150, 250)
|
||||
|
||||
[node name="Meowmere" instance=ExtResource("1_newpt")]
|
||||
script = ExtResource("2_eoimw")
|
||||
penerate = 1.0
|
||||
autoSpawnAnimation = true
|
||||
freeAfterSpawn = true
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=12 format=3 uid="uid://ct8ijxg7ftypd"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_vvwmq"]
|
||||
[ext_resource type="Script" path="res://scripts/Contents/Bullets/RainbowCat.gd" id="2_4c1xc"]
|
||||
[ext_resource type="Script" uid="uid://cqljq5nyy7sgu" path="res://scripts/Contents/Bullets/RainbowCat.gd" id="2_4c1xc"]
|
||||
[ext_resource type="Texture2D" uid="uid://ceqhttm1urmk3" path="res://resources/bullets/rainbow-cat/1.webp" id="2_bt3cu"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_0xq5p"]
|
||||
@@ -51,6 +51,7 @@ alpha_curve = SubResource("CurveTexture_pwojl")
|
||||
|
||||
[node name="RainbowCat" instance=ExtResource("1_vvwmq")]
|
||||
script = ExtResource("2_4c1xc")
|
||||
penerate = 1.0
|
||||
lifeTime = 3000.0
|
||||
|
||||
[node name="texture" parent="." index="0"]
|
||||
|
||||
@@ -71,7 +71,7 @@ size = Vector2(76, 12)
|
||||
[node name="VolcanoShadow" instance=ExtResource("1_4oiyn")]
|
||||
script = ExtResource("2_i7b6y")
|
||||
speed = 25.0
|
||||
penerate = 1.0
|
||||
penerate = 0.35
|
||||
penerateDamageReduction = 0.2
|
||||
autoSpawnAnimation = true
|
||||
freeAfterSpawn = true
|
||||
|
||||
Reference in New Issue
Block a user