mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-07 20:27:13 +08:00
feat: 添加激光子弹功能,更新相关资源和着色器
This commit is contained in:
@@ -17,7 +17,7 @@ animations = [{
|
||||
|
||||
[node name="Diamond" instance=ExtResource("1_8udva")]
|
||||
script = ExtResource("2_yxtyj")
|
||||
lifeDistance = 500.0
|
||||
lifeTime = 5000.0
|
||||
|
||||
[node name="texture" parent="." index="0"]
|
||||
sprite_frames = SubResource("SpriteFrames_oj6iy")
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://bvri0nv1jrigf"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_3u4op"]
|
||||
[ext_resource type="Shader" path="res://shaders/Laser.gdshader" id="2_h6cxi"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_yip5k"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_5n8cv"]
|
||||
shader = ExtResource("2_h6cxi")
|
||||
shader_parameter/color = Color(0.654902, 1, 1, 1)
|
||||
shader_parameter/laser_width = 0.01
|
||||
shader_parameter/soft_edge = 0.5
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_y85id"]
|
||||
height = 300.0
|
||||
|
||||
[node name="Laser" instance=ExtResource("1_3u4op")]
|
||||
fields = {
|
||||
0: 10,
|
||||
1: 5,
|
||||
2: 0
|
||||
}
|
||||
lifeTime = 100.0
|
||||
|
||||
[node name="texture" parent="." index="0"]
|
||||
rotation = 1.5708
|
||||
sprite_frames = SubResource("SpriteFrames_yip5k")
|
||||
|
||||
[node name="rect" type="ColorRect" parent="texture" index="0"]
|
||||
material = SubResource("ShaderMaterial_5n8cv")
|
||||
offset_left = -10.0
|
||||
offset_top = -300.0
|
||||
offset_right = 10.0
|
||||
|
||||
[node name="hitbox" parent="." index="1"]
|
||||
position = Vector2(150, 0)
|
||||
rotation = 1.5708
|
||||
shape = SubResource("CapsuleShape2D_y85id")
|
||||
Reference in New Issue
Block a user