- [gd_scene load_steps=10 format=3 uid="uid://doj2eilx1xtxf"]
-
- [ext_resource type="Script" path="res://src/game/activity/weapon/gun/Gun.cs" id="1_hgtyo"]
- [ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="2_8nvny"]
- [ext_resource type="SpriteFrames" uid="uid://domhmo4flmlt0" path="res://resource/spriteFrames/weapon/Weapon0002.tres" id="3_4h3je"]
-
- [sub_resource type="ShaderMaterial" id="ShaderMaterial_cbiyh"]
- resource_local_to_scene = true
- shader = ExtResource("2_8nvny")
- shader_parameter/blend = Color(0, 0, 0, 0.470588)
- shader_parameter/schedule = 1.0
-
- [sub_resource type="ShaderMaterial" id="ShaderMaterial_o36tv"]
- resource_local_to_scene = true
- shader = ExtResource("2_8nvny")
- shader_parameter/blend = Color(1, 1, 1, 1)
- shader_parameter/schedule = 0.0
-
- [sub_resource type="RectangleShape2D" id="RectangleShape2D_3p5jk"]
- size = Vector2(19.5, 8.75)
-
- [sub_resource type="Animation" id="Animation_x136i"]
- length = 0.001
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath("AnimatedSprite:material:shader_parameter/schedule")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 0,
- "values": [0]
- }
-
- [sub_resource type="Animation" id="Animation_3piau"]
- resource_name = "floodlight"
- length = 3.0
- loop_mode = 1
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath("AnimatedSprite:material:shader_parameter/schedule")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0, 2.3, 2.6, 2.7, 3),
- "transitions": PackedFloat32Array(1, 1, 1, 1, 1),
- "update": 0,
- "values": [0, 0, 0.5, 0.5, 0]
- }
-
- [sub_resource type="AnimationLibrary" id="AnimationLibrary_trkjd"]
- _data = {
- "RESET": SubResource("Animation_x136i"),
- "floodlight": SubResource("Animation_3piau")
- }
-
- [node name="Weapon0002" type="CharacterBody2D" node_paths=PackedStringArray("FirePoint", "ShellPoint", "GripPoint", "AnimationPlayer", "ShadowSprite", "AnimatedSprite", "Collision")]
- collision_layer = 4
- script = ExtResource("1_hgtyo")
- FirePoint = NodePath("AnimatedSprite/FirePoint")
- ShellPoint = NodePath("AnimatedSprite/ShellPoint")
- GripPoint = NodePath("GripPoint")
- AnimationPlayer = NodePath("AnimationPlayer")
- ShadowSprite = NodePath("ShadowSprite")
- AnimatedSprite = NodePath("AnimatedSprite")
- Collision = NodePath("Collision")
-
- [node name="ShadowSprite" type="Sprite2D" parent="."]
- z_index = -1
- material = SubResource("ShaderMaterial_cbiyh")
-
- [node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
- material = SubResource("ShaderMaterial_o36tv")
- sprite_frames = ExtResource("3_4h3je")
- animation = &"beLoaded"
-
- [node name="ShellPoint" type="Marker2D" parent="AnimatedSprite"]
- position = Vector2(-3, -2)
-
- [node name="FirePoint" type="Marker2D" parent="AnimatedSprite"]
- position = Vector2(12, -2)
-
- [node name="GripPoint" type="Marker2D" parent="."]
- position = Vector2(-10, 1)
-
- [node name="Collision" type="CollisionShape2D" parent="."]
- shape = SubResource("RectangleShape2D_3p5jk")
-
- [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
- libraries = {
- "": SubResource("AnimationLibrary_trkjd")
- }