Added rotatable laser weapon
This commit is contained in:
parent
1ee0b529a8
commit
154da5104e
10 changed files with 99 additions and 13 deletions
22
scenes/Ships/Modules/Weapons/laser.tscn
Normal file
22
scenes/Ships/Modules/Weapons/laser.tscn
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://bf10g066l8grd"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://ryy1tdrxmjav" path="res://scenes/Ships/Modules/Weapons/weapon.tscn" id="1_l10lx"]
|
||||
[ext_resource type="Texture2D" uid="uid://1yihkbdosopx" path="res://sprites/lasergun.png" id="2_5ysch"]
|
||||
[ext_resource type="Script" path="res://scripts/Weapons/laser.gd" id="2_qqcrf"]
|
||||
[ext_resource type="Texture2D" uid="uid://c3gei46k8muk3" path="res://sprites/laserbox.png" id="3_65sll"]
|
||||
|
||||
[node name="Laser" node_paths=PackedStringArray("spawner_points") instance=ExtResource("1_l10lx")]
|
||||
script = ExtResource("2_qqcrf")
|
||||
max_gun_rotation = 30.0
|
||||
id = "laser"
|
||||
ammo_type = "Laser Energy"
|
||||
ammo_consumption = 1.0
|
||||
spawner_points = [NodePath("Gun")]
|
||||
|
||||
[node name="Gun" type="Sprite2D" parent="." index="1"]
|
||||
texture = ExtResource("2_5ysch")
|
||||
centered = false
|
||||
offset = Vector2(0, -6.5)
|
||||
|
||||
[node name="Frame" type="Sprite2D" parent="." index="2"]
|
||||
texture = ExtResource("3_65sll")
|
||||
Loading…
Add table
Add a link
Reference in a new issue