Reworked weapons and projectiles
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
[gd_scene load_steps=12 format=3 uid="uid://b0ajhllwm5qux"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://c4mlppn5i55bp" path="res://game/entities/weapons/gatling/abstract_gatling_weapon.tscn" id="1_dil8o"]
|
||||
[ext_resource type="Script" uid="uid://bj6mviyrgggty" path="res://game/entities/weapons/gatling/enemy_gatling_weapon.gd" id="2_v0vlv"]
|
||||
[ext_resource type="Texture2D" uid="uid://6hh66k8s4a1e" path="res://images/weapons.png" id="3_2opsk"]
|
||||
[ext_resource type="PackedScene" uid="uid://b5qcmktgysdw6" path="res://game/entities/weapons/gatling/enemy_gatling_projectile.tscn" id="3_nk3h5"]
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_2opsk"]
|
||||
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("3_2opsk")
|
||||
region = Rect2(160, 176, 32, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pjn33"]
|
||||
atlas = ExtResource("3_2opsk")
|
||||
region = Rect2(192, 176, 32, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kkima"]
|
||||
atlas = ExtResource("3_2opsk")
|
||||
region = Rect2(224, 176, 32, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_i25po"]
|
||||
atlas = ExtResource("3_2opsk")
|
||||
region = Rect2(160, 176, 32, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_nk3h5"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ydc6p")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"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": &"shot",
|
||||
"speed": 30.0
|
||||
}]
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_cxn0h"]
|
||||
resource_local_to_scene = true
|
||||
particle_flag_disable_z = true
|
||||
inherit_velocity_ratio = 0.5
|
||||
direction = Vector3(0, -1, 0)
|
||||
spread = 5.0
|
||||
initial_velocity_min = 5.0
|
||||
initial_velocity_max = 15.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
|
||||
[node name="EnemyGatlingWeapon" instance=ExtResource("1_dil8o")]
|
||||
script = ExtResource("2_v0vlv")
|
||||
projectile_scene = ExtResource("3_nk3h5")
|
||||
|
||||
[node name="ShotParticles" parent="." index="0"]
|
||||
position = Vector2(-17, 0)
|
||||
process_material = SubResource("ParticleProcessMaterial_2opsk")
|
||||
|
||||
[node name="AnimatedSprite2D" parent="." index="1"]
|
||||
position = Vector2(-6, 0)
|
||||
sprite_frames = SubResource("SpriteFrames_nk3h5")
|
||||
animation = &"shot"
|
||||
|
||||
[node name="ShellParticles" parent="." index="2"]
|
||||
position = Vector2(0, 1)
|
||||
process_material = SubResource("ParticleProcessMaterial_cxn0h")
|
||||
|
||||
[node name="Muzzle" parent="." index="3"]
|
||||
position = Vector2(-15, 0)
|
||||
Reference in New Issue
Block a user