Reworked weapons and projectiles
This commit is contained in:
@@ -0,0 +1,91 @@
|
||||
[gd_scene load_steps=12 format=3 uid="uid://cvtwks2ooetxp"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://r7wnk762jbfy" path="res://game/entities/weapons/shrapnel/abstract_shrapnel_weapon.tscn" id="1_fhgjq"]
|
||||
[ext_resource type="Script" uid="uid://b4nr6mwn11xx6" path="res://game/entities/weapons/shrapnel/player_shrapnel_weapon.gd" id="2_kcdeu"]
|
||||
[ext_resource type="PackedScene" uid="uid://cswhydwmia3fh" path="res://game/entities/weapons/shrapnel/player_shrapnel_projectile.tscn" id="3_kcdeu"]
|
||||
[ext_resource type="Texture2D" uid="uid://6hh66k8s4a1e" path="res://images/weapons.png" id="4_kupqk"]
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_kcdeu"]
|
||||
resource_local_to_scene = true
|
||||
lifetime_randomness = 0.5
|
||||
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.5
|
||||
spread = 60.0
|
||||
initial_velocity_min = 10.0
|
||||
initial_velocity_max = 15.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_t4pcy"]
|
||||
atlas = ExtResource("4_kupqk")
|
||||
region = Rect2(128, 32, 32, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_25rnd"]
|
||||
atlas = ExtResource("4_kupqk")
|
||||
region = Rect2(160, 32, 32, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_02grq"]
|
||||
atlas = ExtResource("4_kupqk")
|
||||
region = Rect2(192, 32, 32, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6pv2s"]
|
||||
atlas = ExtResource("4_kupqk")
|
||||
region = Rect2(224, 32, 32, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_867ok"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_t4pcy")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_25rnd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_02grq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6pv2s")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"shot",
|
||||
"speed": 10.0
|
||||
}]
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_kupqk"]
|
||||
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 = 15.0
|
||||
initial_velocity_max = 25.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
|
||||
[node name="PlayerShrapnelWeapon" instance=ExtResource("1_fhgjq")]
|
||||
script = ExtResource("2_kcdeu")
|
||||
projectile_scene = ExtResource("3_kcdeu")
|
||||
|
||||
[node name="ShotParticles" parent="." index="0"]
|
||||
position = Vector2(18, 0)
|
||||
process_material = SubResource("ParticleProcessMaterial_kcdeu")
|
||||
|
||||
[node name="AnimatedSprite2D" parent="." index="1"]
|
||||
position = Vector2(7, 0)
|
||||
sprite_frames = SubResource("SpriteFrames_867ok")
|
||||
animation = &"idle"
|
||||
|
||||
[node name="ShellParticles" parent="." index="2"]
|
||||
position = Vector2(-1, 1)
|
||||
process_material = SubResource("ParticleProcessMaterial_kupqk")
|
||||
|
||||
[node name="Muzzle" parent="." index="4"]
|
||||
position = Vector2(14, 0)
|
||||
Reference in New Issue
Block a user