mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
Add laser sound effect and implement BigLaser bullet behavior
- Added laserbig.ogg sound effect import configuration. - Created BigLaser script extending BulletBase with AI targeting and dot application functionality.
This commit is contained in:
@@ -1,5 +1,42 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://c8odsyb7xsu3i"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://e7ci24ysgbyg"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_cqnkd"]
|
||||
[ext_resource type="Script" path="res://scripts/Contents/Bullets/BigLaser.gd" id="2_oqfvl"]
|
||||
[ext_resource type="Shader" path="res://shaders/Laser.gdshader" id="3_25t1x"]
|
||||
|
||||
[node name="BulletBase" instance=ExtResource("1_cqnkd")]
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_yip5k"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_5n8cv"]
|
||||
shader = ExtResource("3_25t1x")
|
||||
shader_parameter/color = Color(0.823162, 0.116294, 1.92523e-07, 1)
|
||||
shader_parameter/laser_width = 0.01
|
||||
shader_parameter/soft_edge = 0.5
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_y85id"]
|
||||
radius = 40.0
|
||||
height = 1000.0
|
||||
|
||||
[node name="BigLaser" instance=ExtResource("1_cqnkd")]
|
||||
script = ExtResource("2_oqfvl")
|
||||
fields = {
|
||||
0: 0,
|
||||
1: 15,
|
||||
2: 1
|
||||
}
|
||||
lifeTime = 5000.0
|
||||
needEnergy = 50.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 = -40.0
|
||||
offset_top = -1000.0
|
||||
offset_right = 40.0
|
||||
|
||||
[node name="hitbox" parent="." index="1"]
|
||||
position = Vector2(500, 0)
|
||||
rotation = 1.5708
|
||||
shape = SubResource("CapsuleShape2D_y85id")
|
||||
|
||||
Reference in New Issue
Block a user