143 lines
4.2 KiB
Plaintext
143 lines
4.2 KiB
Plaintext
[gd_scene load_steps=18 format=3 uid="uid://c4mlppn5i55bp"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://1o2ta17yc5bp" path="res://game/entities/weapons/abstract_weapon.tscn" id="1_gblx7"]
|
|
[ext_resource type="Script" uid="uid://c1bsvmj7xhnxe" path="res://game/entities/weapons/gatling/gatling_weapon.gd" id="1_kg6du"]
|
|
[ext_resource type="PackedScene" uid="uid://yfvluap3uy1r" path="res://game/entities/weapons/gatling/gatling_projectile.tscn" id="2_ylc0n"]
|
|
[ext_resource type="Texture2D" uid="uid://b2tpy3y2bpuat" path="res://particle_textures/flame_small.tres" id="4_ydc6p"]
|
|
[ext_resource type="Texture2D" uid="uid://6hh66k8s4a1e" path="res://images/weapons.png" id="5_ydc6p"]
|
|
[ext_resource type="Texture2D" uid="uid://bib4q76bmnajw" path="res://particle_textures/shell_small.tres" id="6_v064d"]
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_v064d"]
|
|
particle_flag_disable_z = true
|
|
angle_min = -179.99998
|
|
angle_max = 180.00002
|
|
inherit_velocity_ratio = 0.5
|
|
initial_velocity_min = 5.0
|
|
initial_velocity_max = 25.0
|
|
gravity = Vector3(0, 0, 0)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ydc6p"]
|
|
atlas = ExtResource("5_ydc6p")
|
|
region = Rect2(160, 176, 32, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_pjn33"]
|
|
atlas = ExtResource("5_ydc6p")
|
|
region = Rect2(192, 176, 32, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_kkima"]
|
|
atlas = ExtResource("5_ydc6p")
|
|
region = Rect2(224, 176, 32, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_i25po"]
|
|
atlas = ExtResource("5_ydc6p")
|
|
region = Rect2(160, 176, 32, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_v064d"]
|
|
atlas = ExtResource("5_ydc6p")
|
|
region = Rect2(160, 160, 32, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_pm1cd"]
|
|
atlas = ExtResource("5_ydc6p")
|
|
region = Rect2(192, 160, 32, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_t1uk2"]
|
|
atlas = ExtResource("5_ydc6p")
|
|
region = Rect2(224, 160, 32, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_colwf"]
|
|
atlas = ExtResource("5_ydc6p")
|
|
region = Rect2(160, 160, 32, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_pjn33"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ydc6p")
|
|
}],
|
|
"loop": true,
|
|
"name": &"enemy_idle",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_pjn33")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_kkima")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_i25po")
|
|
}],
|
|
"loop": false,
|
|
"name": &"enemy_shot",
|
|
"speed": 30.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_v064d")
|
|
}],
|
|
"loop": true,
|
|
"name": &"player_idle",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_pm1cd")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_t1uk2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_colwf")
|
|
}],
|
|
"loop": false,
|
|
"name": &"player_shot",
|
|
"speed": 30.0
|
|
}]
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_pjn33"]
|
|
resource_local_to_scene = true
|
|
particle_flag_disable_z = true
|
|
inherit_velocity_ratio = 0.5
|
|
direction = Vector3(0, -1, 0)
|
|
spread = 15.0
|
|
initial_velocity_min = 5.0
|
|
initial_velocity_max = 15.0
|
|
gravity = Vector3(0, 0, 0)
|
|
|
|
[node name="GatlingWeapon" instance=ExtResource("1_gblx7")]
|
|
script = ExtResource("1_kg6du")
|
|
sector_angle = 5
|
|
Projectile = ExtResource("2_ylc0n")
|
|
type = 1
|
|
|
|
[node name="ShotParticles" type="GPUParticles2D" parent="." index="0"]
|
|
position = Vector2(17, 0)
|
|
emitting = false
|
|
amount = 32
|
|
texture = ExtResource("4_ydc6p")
|
|
lifetime = 0.1
|
|
one_shot = true
|
|
process_material = SubResource("ParticleProcessMaterial_v064d")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." index="1"]
|
|
position = Vector2(6, 0)
|
|
sprite_frames = SubResource("SpriteFrames_pjn33")
|
|
animation = &"player_shot"
|
|
|
|
[node name="ShellParticles" type="GPUParticles2D" parent="." index="2"]
|
|
z_index = 1
|
|
position = Vector2(0, -1)
|
|
emitting = false
|
|
amount = 20
|
|
texture = ExtResource("6_v064d")
|
|
lifetime = 3.0
|
|
one_shot = true
|
|
fixed_fps = 10
|
|
process_material = SubResource("ParticleProcessMaterial_pjn33")
|
|
|
|
[node name="Muzzle" parent="." index="3"]
|
|
position = Vector2(14, 0)
|
|
|
|
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_finished"]
|