Rewriting ships: Added weapon base and changed hull parent to Node

This commit is contained in:
2ndbeam 2024-04-29 12:08:13 +03:00
commit 6957169ba5
13 changed files with 121 additions and 37 deletions

View file

@ -0,0 +1,16 @@
[gd_scene load_steps=3 format=3 uid="uid://ryy1tdrxmjav"]
[ext_resource type="Script" path="res://scripts/Ship/weapon.gd" id="1_ga8vg"]
[ext_resource type="PackedScene" uid="uid://djmoij5kuou3j" path="res://scenes/projectiles/Laser.tscn" id="2_qo148"]
[node name="Weapon" type="Node2D" node_paths=PackedStringArray("shoot_timer", "spawner_points")]
script = ExtResource("1_ga8vg")
projectile = ExtResource("2_qo148")
shoot_timer = NodePath("ShootTimer")
spawner_points = [NodePath("Spawner")]
[node name="ShootTimer" type="Timer" parent="."]
wait_time = 0.25
one_shot = true
[node name="Spawner" type="Node2D" parent="."]