114 lines
4.2 KiB
Plaintext
114 lines
4.2 KiB
Plaintext
[gd_scene load_steps=15 format=3 uid="uid://br074cqcnul3d"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://jvyagshykmgb" path="res://game/entities/ships/abstract_ship.tscn" id="1_6otxb"]
|
|
[ext_resource type="Script" uid="uid://ruxw1n03iq4i" path="res://game/entities/ships/player/player_ship.gd" id="2_625ti"]
|
|
[ext_resource type="PackedScene" uid="uid://dh1oj1w5wx4je" path="res://game/controllers/player_controller.tscn" id="3_4mjo1"]
|
|
[ext_resource type="Texture2D" uid="uid://y2yfli24n51v" path="res://images/ships/player.png" id="3_uf2n1"]
|
|
[ext_resource type="Shader" uid="uid://dwh22f35u5qqi" path="res://game/shaders/shield.gdshader" id="4_ui1ht"]
|
|
[ext_resource type="PackedScene" uid="uid://d20nvskf38vpo" path="res://game/entities/ships/player/blink_charge_indicator.tscn" id="5_uf2n1"]
|
|
[ext_resource type="Texture2D" uid="uid://bq7eqj7n3dplh" path="res://images/projectiles/debris_player.png" id="7_waejo"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_4mjo1"]
|
|
atlas = ExtResource("3_uf2n1")
|
|
region = Rect2(0, 0, 48, 32)
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_waejo"]
|
|
resource_local_to_scene = true
|
|
shader = ExtResource("4_ui1ht")
|
|
shader_parameter/speed = 0.0
|
|
shader_parameter/scale = 20.0
|
|
shader_parameter/intensity = 1.0
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_uf2n1"]
|
|
atlas = ExtResource("3_uf2n1")
|
|
region = Rect2(0, 32, 48, 32)
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_5xifi"]
|
|
resource_local_to_scene = true
|
|
shader = ExtResource("4_ui1ht")
|
|
shader_parameter/speed = 5.0
|
|
shader_parameter/scale = 20.0
|
|
shader_parameter/intensity = 1.0
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ui1ht"]
|
|
atlas = ExtResource("3_uf2n1")
|
|
region = Rect2(0, 64, 48, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_34rhw"]
|
|
atlas = ExtResource("3_uf2n1")
|
|
region = Rect2(0, 96, 48, 32)
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_pjmi2"]
|
|
particle_flag_disable_z = true
|
|
spread = 0.0
|
|
initial_velocity_min = 500.0
|
|
initial_velocity_max = 500.0
|
|
gravity = Vector3(0, 0, 0)
|
|
|
|
[node name="PlayerShip" groups=["players"] instance=ExtResource("1_6otxb")]
|
|
collision_layer = 3
|
|
collision_mask = 5
|
|
script = ExtResource("2_625ti")
|
|
blink_range = 75
|
|
player_data = null
|
|
acceleration = 92
|
|
deceleration = 46
|
|
max_speed = 92
|
|
mass = 250
|
|
|
|
[node name="ShipSprite" parent="Ship" index="0"]
|
|
texture = SubResource("AtlasTexture_4mjo1")
|
|
|
|
[node name="ArmorSprite" parent="Ship" index="1"]
|
|
material = SubResource("ShaderMaterial_waejo")
|
|
texture = SubResource("AtlasTexture_uf2n1")
|
|
|
|
[node name="ShieldSprite" parent="Ship" index="2"]
|
|
material = SubResource("ShaderMaterial_5xifi")
|
|
texture = SubResource("AtlasTexture_ui1ht")
|
|
|
|
[node name="HealthBar" parent="Ship" index="3"]
|
|
offset_top = 19.0
|
|
offset_bottom = 19.0
|
|
|
|
[node name="BlinkChargeIndicator" parent="Ship" index="4" instance=ExtResource("5_uf2n1")]
|
|
position = Vector2(-11, 0)
|
|
|
|
[node name="Health" parent="." index="1"]
|
|
max_shield = 500
|
|
max_hull = 2000
|
|
|
|
[node name="First" type="Node2D" parent="WeaponSlots" index="0"]
|
|
position = Vector2(-2, -8)
|
|
|
|
[node name="Second" type="Node2D" parent="WeaponSlots" index="1"]
|
|
position = Vector2(-2, 8)
|
|
|
|
[node name="DebrisParticles" parent="." index="3"]
|
|
amount = 16
|
|
texture = ExtResource("7_waejo")
|
|
|
|
[node name="PlayerController" parent="." index="4" instance=ExtResource("3_4mjo1")]
|
|
|
|
[node name="CollisionPolygon2D" parent="." index="5"]
|
|
polygon = PackedVector2Array(-23, -10, -17, -14, -3, -15, 21, -13, 22, -12, 22, 12, 21, 13, -3, 15, -17, 14, -23, 10)
|
|
|
|
[node name="BlinkTimer" type="Timer" parent="." index="6"]
|
|
process_callback = 0
|
|
wait_time = 3.0
|
|
one_shot = true
|
|
|
|
[node name="BlinkShadow" type="GPUParticles2D" parent="." index="7"]
|
|
emitting = false
|
|
amount = 2
|
|
texture = SubResource("AtlasTexture_34rhw")
|
|
lifetime = 0.1
|
|
one_shot = true
|
|
process_material = SubResource("ParticleProcessMaterial_pjmi2")
|
|
|
|
[connection signal="armor_updated" from="Health" to="." method="_on_armor_updated"]
|
|
[connection signal="hull_updated" from="Health" to="." method="_on_hull_updated"]
|
|
[connection signal="shield_updated" from="Health" to="." method="_on_shield_updated"]
|
|
[connection signal="accelerate" from="PlayerController" to="." method="accelerate"]
|
|
[connection signal="blink" from="PlayerController" to="." method="_blink"]
|