Rewriting ships: Added weapon base and changed hull parent to Node
This commit is contained in:
parent
95274d0a5b
commit
6957169ba5
13 changed files with 121 additions and 37 deletions
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://ckdttdkoo1t0s"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://ckdttdkoo1t0s"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dok3i8u5t1ka4" path="res://scenes/Ships/player_ship.tscn" id="1_b1l1c"]
|
||||
[ext_resource type="Shader" path="res://shaders/ship.gdshader" id="2_15op6"]
|
||||
[ext_resource type="Script" path="res://scripts/misc/ProjectilesContainer.gd" id="3_amh71"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_6w8qb"]
|
||||
resource_name = "gogo"
|
||||
|
|
@ -83,12 +84,12 @@ func check_for_item(modules : Array[String]) -> Array[String]:
|
|||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
func _process(_delta):
|
||||
if Input.is_action_just_released(\"pause\"):
|
||||
get_tree().change_scene_to_file(\"res://scenes/MainMenu.tscn\")
|
||||
"
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_634ti"]
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_m15k8"]
|
||||
resource_local_to_scene = true
|
||||
resource_name = "Shield Material"
|
||||
shader = ExtResource("2_15op6")
|
||||
|
|
@ -117,6 +118,9 @@ vertical_alignment = 1
|
|||
autowrap_mode = 2
|
||||
|
||||
[node name="PlayerShip" parent="." instance=ExtResource("1_b1l1c")]
|
||||
material = SubResource("ShaderMaterial_634ti")
|
||||
material = SubResource("ShaderMaterial_m15k8")
|
||||
position = Vector2(608, 352)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
|
||||
[node name="ProjectileContainer" type="Node2D" parent="."]
|
||||
script = ExtResource("3_amh71")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue