mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-10 21:57:12 +08:00
feat(武器): 添加齿轮回旋镖武器及其子弹效果
添加新的武器"齿轮回旋镖"及其配套子弹资源: 1. 实现齿轮武器的基本逻辑,包括攻击和属性计算 2. 添加齿轮子弹的旋转、减速和回旋行为 3. 包含相关资源文件(图片、场景、脚本) 4. 将新武器添加到公鸡角色的武器库中
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://cdv7drkq43mfe"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_mt0uq"]
|
||||
[ext_resource type="Script" uid="uid://cfe4nv832olhp" path="res://scripts/Contents/Bullets/Cogwheel.gd" id="2_cjmf3"]
|
||||
[ext_resource type="Texture2D" uid="uid://d0d1t8ch1lolp" path="res://resources/bullets/cogwheel/cogwheel.png" id="2_jis23"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_cjmf3"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_jis23")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_cjmf3"]
|
||||
radius = 47.0
|
||||
|
||||
[sub_resource type="Curve" id="Curve_cjmf3"]
|
||||
_data = [Vector2(0, 0.6), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_d8ajx"]
|
||||
curve = SubResource("Curve_cjmf3")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_gidgr"]
|
||||
_data = [Vector2(0, 1), 0.0, -0.35000002, 0, 1, Vector2(1, 0.65), -0.35000002, 0.0, 1, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_qlov4"]
|
||||
curve = SubResource("Curve_gidgr")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_d26hc"]
|
||||
particle_flag_disable_z = true
|
||||
direction = Vector3(-1, 0, 0)
|
||||
spread = 0.0
|
||||
initial_velocity_min = 700.0
|
||||
initial_velocity_max = 700.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
scale_min = 0.9
|
||||
scale_max = 0.9
|
||||
scale_curve = SubResource("CurveTexture_qlov4")
|
||||
alpha_curve = SubResource("CurveTexture_d8ajx")
|
||||
|
||||
[node name="Cogwheel" instance=ExtResource("1_mt0uq")]
|
||||
script = ExtResource("2_cjmf3")
|
||||
displayName = "齿轮"
|
||||
speed = 20.0
|
||||
baseDamage = null
|
||||
damageMultipliers = null
|
||||
usingDamageMultiplier = null
|
||||
penerate = 1.0
|
||||
penerateDamageReduction = null
|
||||
lifeDistance = null
|
||||
lifeTime = 5000.0
|
||||
allowFriendlyDamage = null
|
||||
canDamageSelf = null
|
||||
autoSpawnAnimation = null
|
||||
autoLoopAnimation = null
|
||||
autoDestroyAnimation = null
|
||||
autoDestroyOnHitMap = null
|
||||
freeAfterSpawn = null
|
||||
knockback = null
|
||||
recoil = null
|
||||
canDoDuplicate = null
|
||||
|
||||
[node name="texture" parent="." index="0"]
|
||||
scale = Vector2(0.2, 0.2)
|
||||
sprite_frames = SubResource("SpriteFrames_cjmf3")
|
||||
|
||||
[node name="hitbox" parent="." index="1"]
|
||||
visible = false
|
||||
shape = SubResource("CircleShape2D_cjmf3")
|
||||
|
||||
[node name="trails" type="GPUParticles2D" parent="." index="2"]
|
||||
z_index = -1
|
||||
scale = Vector2(0.2, 0.2)
|
||||
amount = 5
|
||||
texture = ExtResource("2_jis23")
|
||||
preprocess = 1.0
|
||||
local_coords = true
|
||||
process_material = SubResource("ParticleProcessMaterial_d26hc")
|
||||
@@ -1,7 +1,9 @@
|
||||
[gd_scene load_steps=19 format=3 uid="uid://dky8574uqc18r"]
|
||||
[gd_scene load_steps=21 format=3 uid="uid://dky8574uqc18r"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_e5pl8"]
|
||||
[ext_resource type="Script" uid="uid://cthtupc6dtbav" path="res://scripts/Contents/Characters/Rooster.gd" id="2_oqdqd"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqywctcj4y2xi" path="res://components/Weapons/Cogwheel.tscn" id="3_da2ca"]
|
||||
[ext_resource type="PackedScene" uid="uid://c0n3igy4hucrg" path="res://components/Weapons/PurpleCrystal.tscn" id="4_0omr3"]
|
||||
[ext_resource type="AudioStream" uid="uid://cdrevrq7n6yqa" path="res://resources/sounds/effect/Boing.mp3" id="4_66s6c"]
|
||||
[ext_resource type="AudioStream" uid="uid://benyec5bqni0b" path="res://resources/sounds/effect/Chomp.wav" id="4_k0yme"]
|
||||
[ext_resource type="AudioStream" uid="uid://dmxh3bpk8vyy5" path="res://resources/sounds/effect/Coin.mp3" id="5_xnbhq"]
|
||||
@@ -110,6 +112,10 @@ process_material = SubResource("ParticleProcessMaterial_joj4g")
|
||||
[node name="weaponStore" parent="." index="2"]
|
||||
process_mode = 4
|
||||
|
||||
[node name="Cogwheel" parent="weaponStore" index="0" instance=ExtResource("3_da2ca")]
|
||||
|
||||
[node name="PurpleCrystal" parent="weaponStore" index="1" instance=ExtResource("4_0omr3")]
|
||||
|
||||
[node name="sprint" parent="sounds" index="0"]
|
||||
stream = ExtResource("4_66s6c")
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dqywctcj4y2xi"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://ckq2cq6m23hq3" path="res://components/Abstracts/WeaponCardBase.tscn" id="1_ga2jk"]
|
||||
[ext_resource type="Script" uid="uid://nm2xleunwf4r" path="res://scripts/Contents/Weapons/Cogwheel.gd" id="2_c1bcd"]
|
||||
[ext_resource type="Texture2D" uid="uid://d0d1t8ch1lolp" path="res://resources/bullets/cogwheel/cogwheel.png" id="2_qs30c"]
|
||||
|
||||
[node name="Cogwheel" instance=ExtResource("1_ga2jk")]
|
||||
script = ExtResource("2_c1bcd")
|
||||
avatarTexture = ExtResource("2_qs30c")
|
||||
displayName = "齿轮回旋镖"
|
||||
quality = 3
|
||||
store = {
|
||||
"atk": 5,
|
||||
"rotate": 15.0
|
||||
}
|
||||
storeType = {
|
||||
"atk": 1,
|
||||
"rotate": 3
|
||||
}
|
||||
descriptionTemplate = "发射[b]齿轮[/b],在飞行一定距离后回旋。
|
||||
齿轮的伤害频率与转速成正比。
|
||||
锋利度:$atk,初始转速:$rotate,
|
||||
齿轮的转速随时间逐渐降低。"
|
||||
cooldown = 1000.0
|
||||
debugRebuild = true
|
||||
|
||||
[node name="avatar" parent="container/info" index="0"]
|
||||
texture = ExtResource("2_qs30c")
|
||||
|
||||
[node name="name" parent="container/info" index="2"]
|
||||
displayName = "齿轮回旋镖"
|
||||
quality = 3
|
||||
|
||||
[node name="description" parent="container" index="2"]
|
||||
text = "[center]发射[b]齿轮[/b],在飞行一定距离后回旋。
|
||||
齿轮的伤害频率与转速成正比。
|
||||
锋利度:[color=cyan]5[/color],初始转速:[color=cyan]15.0°[/color],
|
||||
齿轮的转速随时间逐渐降低。[/center]"
|
||||
Reference in New Issue
Block a user