208 lines
6.1 KiB
Plaintext
208 lines
6.1 KiB
Plaintext
[gd_scene load_steps=23 format=3 uid="uid://bccaoirwdkp7n"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://1o2ta17yc5bp" path="res://game/entities/weapons/abstract_weapon.tscn" id="1_xnbws"]
|
|
[ext_resource type="PackedScene" uid="uid://cgi7wd84kjnyw" path="res://game/entities/weapons/cannon/cannon_projectile.tscn" id="2_2bjeu"]
|
|
[ext_resource type="Script" uid="uid://db24dm76b1am7" path="res://game/entities/weapons/cannon/cannon_weapon.gd" id="2_ew5um"]
|
|
[ext_resource type="Texture2D" uid="uid://b13al44e8ofsx" path="res://particle_textures/flame_large.tres" id="4_i0ica"]
|
|
[ext_resource type="Texture2D" uid="uid://b2tpy3y2bpuat" path="res://particle_textures/flame_small.tres" id="5_377p4"]
|
|
[ext_resource type="Texture2D" uid="uid://bi1s5xrnunw3c" path="res://particle_textures/shell_large.tres" id="6_i0ica"]
|
|
[ext_resource type="Texture2D" uid="uid://6hh66k8s4a1e" path="res://images/weapons.png" id="6_jfd4t"]
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_377p4"]
|
|
resource_local_to_scene = true
|
|
lifetime_randomness = 0.4
|
|
particle_flag_disable_z = true
|
|
angle_min = -179.99998
|
|
angle_max = 180.00002
|
|
inherit_velocity_ratio = 0.2
|
|
spread = 30.0
|
|
initial_velocity_min = 10.0
|
|
initial_velocity_max = 20.0
|
|
gravity = Vector3(0, 0, 0)
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_i0ica"]
|
|
resource_local_to_scene = true
|
|
lifetime_randomness = 0.1
|
|
particle_flag_disable_z = true
|
|
emission_shape = 1
|
|
emission_sphere_radius = 2.0
|
|
angle_min = -179.99998
|
|
angle_max = 180.00002
|
|
inherit_velocity_ratio = 0.2
|
|
spread = 5.0
|
|
initial_velocity_min = 10.0
|
|
initial_velocity_max = 20.0
|
|
gravity = Vector3(0, 0, 0)
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_jfd4t"]
|
|
resource_local_to_scene = true
|
|
lifetime_randomness = 0.1
|
|
particle_flag_disable_z = true
|
|
emission_shape = 1
|
|
emission_sphere_radius = 2.0
|
|
angle_min = -179.99998
|
|
angle_max = 180.00002
|
|
inherit_velocity_ratio = 0.2
|
|
spread = 5.0
|
|
initial_velocity_min = 10.0
|
|
initial_velocity_max = 20.0
|
|
gravity = Vector3(0, 0, 0)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jfd4t"]
|
|
atlas = ExtResource("6_jfd4t")
|
|
region = Rect2(0, 176, 32, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_i0ica"]
|
|
atlas = ExtResource("6_jfd4t")
|
|
region = Rect2(32, 176, 32, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_377p4"]
|
|
atlas = ExtResource("6_jfd4t")
|
|
region = Rect2(64, 176, 32, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_nrbut"]
|
|
atlas = ExtResource("6_jfd4t")
|
|
region = Rect2(96, 176, 32, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mk6k8"]
|
|
atlas = ExtResource("6_jfd4t")
|
|
region = Rect2(128, 176, 32, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fxfcx"]
|
|
atlas = ExtResource("6_jfd4t")
|
|
region = Rect2(0, 160, 32, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_dvc0n"]
|
|
atlas = ExtResource("6_jfd4t")
|
|
region = Rect2(32, 160, 32, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_caj01"]
|
|
atlas = ExtResource("6_jfd4t")
|
|
region = Rect2(64, 160, 32, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_e28g8"]
|
|
atlas = ExtResource("6_jfd4t")
|
|
region = Rect2(96, 160, 32, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_f7kmj"]
|
|
atlas = ExtResource("6_jfd4t")
|
|
region = Rect2(128, 160, 32, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_kdf62"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_jfd4t")
|
|
}],
|
|
"loop": true,
|
|
"name": &"enemy_idle",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_i0ica")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_377p4")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_nrbut")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_mk6k8")
|
|
}],
|
|
"loop": false,
|
|
"name": &"enemy_shot",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_fxfcx")
|
|
}],
|
|
"loop": true,
|
|
"name": &"player_idle",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_dvc0n")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_caj01")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_e28g8")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_f7kmj")
|
|
}],
|
|
"loop": false,
|
|
"name": &"player_shot",
|
|
"speed": 10.0
|
|
}]
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_nrbut"]
|
|
resource_local_to_scene = true
|
|
lifetime_randomness = 0.5
|
|
particle_flag_disable_z = true
|
|
inherit_velocity_ratio = 1.0
|
|
spread = 15.0
|
|
initial_velocity_min = 5.0
|
|
initial_velocity_max = 15.0
|
|
gravity = Vector3(0, 0, 0)
|
|
|
|
[node name="CannonWeapon" instance=ExtResource("1_xnbws")]
|
|
script = ExtResource("2_ew5um")
|
|
sector_angle = 1
|
|
Projectile = ExtResource("2_2bjeu")
|
|
type = 2
|
|
|
|
[node name="ShotParticles" type="Node2D" parent="." index="0"]
|
|
|
|
[node name="Front" type="GPUParticles2D" parent="ShotParticles" index="0"]
|
|
emitting = false
|
|
amount = 32
|
|
texture = ExtResource("4_i0ica")
|
|
lifetime = 0.5
|
|
one_shot = true
|
|
preprocess = 0.1
|
|
fixed_fps = 10
|
|
process_material = SubResource("ParticleProcessMaterial_377p4")
|
|
|
|
[node name="Left" type="GPUParticles2D" parent="ShotParticles" index="1"]
|
|
emitting = false
|
|
texture = ExtResource("5_377p4")
|
|
lifetime = 0.4
|
|
one_shot = true
|
|
fixed_fps = 10
|
|
process_material = SubResource("ParticleProcessMaterial_i0ica")
|
|
|
|
[node name="Right" type="GPUParticles2D" parent="ShotParticles" index="2"]
|
|
emitting = false
|
|
texture = ExtResource("5_377p4")
|
|
lifetime = 0.4
|
|
one_shot = true
|
|
fixed_fps = 10
|
|
process_material = SubResource("ParticleProcessMaterial_jfd4t")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." index="1"]
|
|
sprite_frames = SubResource("SpriteFrames_kdf62")
|
|
animation = &"player_idle"
|
|
|
|
[node name="ShellParticles" type="GPUParticles2D" parent="." index="2"]
|
|
z_index = 1
|
|
emitting = false
|
|
amount = 1
|
|
texture = ExtResource("6_i0ica")
|
|
lifetime = 2.0
|
|
one_shot = true
|
|
fixed_fps = 10
|
|
process_material = SubResource("ParticleProcessMaterial_nrbut")
|
|
|
|
[node name="CooldownTimer" type="Timer" parent="." index="3"]
|
|
wait_time = 1.2
|
|
one_shot = true
|
|
|
|
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_finished"]
|
|
[connection signal="timeout" from="CooldownTimer" to="." method="_on_cooldown_timer_timeout"]
|