1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/components/Bullets/BigLaser.tscn
T
fallingshrimp a688fe3b44 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.
2025-08-27 19:59:05 +08:00

43 lines
1.3 KiB
Plaintext

[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"]
[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")