Rewriting ships: Added shields and weapons holder
This commit is contained in:
parent
e2b9fa6c69
commit
95274d0a5b
17 changed files with 396 additions and 24 deletions
16
scenes/Ships/Modules/Shields/shield.tscn
Normal file
16
scenes/Ships/Modules/Shields/shield.tscn
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://bunboi5ouscw8"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/Ship/shield.gd" id="1_sexol"]
|
||||
|
||||
[node name="Shield" type="Node2D" node_paths=PackedStringArray("shield_recharge_timer", "laser_recharge_timer")]
|
||||
script = ExtResource("1_sexol")
|
||||
shield_recharge_timer = NodePath("")
|
||||
laser_recharge_timer = NodePath("")
|
||||
|
||||
[node name="ShieldTimer" type="Timer" parent="."]
|
||||
wait_time = 5.0
|
||||
one_shot = true
|
||||
|
||||
[node name="LaserTimer" type="Timer" parent="."]
|
||||
wait_time = 5.0
|
||||
one_shot = true
|
||||
|
|
@ -17,5 +17,5 @@ shader_parameter/bublic_size = 20.0
|
|||
[node name="PlayerShip" instance=ExtResource("1_6x7bu")]
|
||||
material = SubResource("ShaderMaterial_u1mh3")
|
||||
|
||||
[node name="InputController" type="Node2D" parent="." index="2"]
|
||||
[node name="InputController" type="Node2D" parent="." index="3"]
|
||||
script = ExtResource("3_0e84a")
|
||||
|
|
|
|||
|
|
@ -1,14 +1,19 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://bjkshql8ut6hk"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://bjkshql8ut6hk"]
|
||||
|
||||
[ext_resource type="Material" uid="uid://cw0827vwv7pc1" path="res://shaders/materials/ship_material.tres" id="1_ibfis"]
|
||||
[ext_resource type="Script" path="res://scripts/Ship/ship.gd" id="2_n14ml"]
|
||||
[ext_resource type="PackedScene" uid="uid://bsu4eqwdfewwi" path="res://scenes/Ships/Modules/Hulls/hull.tscn" id="3_upgeg"]
|
||||
[ext_resource type="PackedScene" uid="uid://mw4kwxoeqch3" path="res://scenes/Ships/Modules/Engines/engine.tscn" id="4_adr14"]
|
||||
[ext_resource type="PackedScene" uid="uid://bunboi5ouscw8" path="res://scenes/Ships/Modules/Shields/shield.tscn" id="4_ntnqw"]
|
||||
[ext_resource type="Script" path="res://scripts/Ship/weapons.gd" id="5_ooyny"]
|
||||
|
||||
[node name="Ship" type="Node2D"]
|
||||
material = ExtResource("1_ibfis")
|
||||
script = ExtResource("2_n14ml")
|
||||
|
||||
[node name="Hull" parent="." instance=ExtResource("3_upgeg")]
|
||||
|
||||
[node name="Engine" parent="." instance=ExtResource("4_adr14")]
|
||||
|
||||
[node name="Shield" parent="." instance=ExtResource("4_ntnqw")]
|
||||
|
||||
[node name="Weapons" type="Node2D" parent="."]
|
||||
script = ExtResource("5_ooyny")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue