Added more weapons
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
extends AbstractWeapon
|
||||
|
||||
|
||||
@onready var sprite := $Sprite2D
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
var texture := PlaceholderTexture2D.new()
|
||||
texture.size = Vector2(10, 7)
|
||||
sprite.texture = texture
|
||||
|
||||
super._ready()
|
||||
@@ -0,0 +1 @@
|
||||
uid://c1bsvmj7xhnxe
|
||||
@@ -0,0 +1,28 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://c4vvw741175tj"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c1bsvmj7xhnxe" path="res://game/entities/weapons/gatling/gatling.gd" id="1_kg6du"]
|
||||
[ext_resource type="PackedScene" uid="uid://cnoiv8hdgossf" path="res://game/entities/weapons/gatling/gatling_projectile.tscn" id="2_ylc0n"]
|
||||
[ext_resource type="Script" uid="uid://ccpriilfr3kme" path="res://game/reloaders/abstract_reloader.gd" id="3_uucc4"]
|
||||
[ext_resource type="Script" uid="uid://oslebeau3f4b" path="res://game/reloaders/gatling_reloader.gd" id="4_g81jq"]
|
||||
[ext_resource type="Script" uid="uid://d2gfhnlbqxsoq" path="res://game/reloaders/magazine_reloader.gd" id="5_tjfs0"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_kifyy"]
|
||||
script = ExtResource("4_g81jq")
|
||||
firerate = 600
|
||||
spin_out_time = 3
|
||||
metadata/_custom_type_script = "uid://oslebeau3f4b"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_6px3v"]
|
||||
script = ExtResource("5_tjfs0")
|
||||
magazine_size = 300
|
||||
reload_time = 2
|
||||
metadata/_custom_type_script = "uid://d2gfhnlbqxsoq"
|
||||
|
||||
[node name="GatlingGun" type="Node2D"]
|
||||
script = ExtResource("1_kg6du")
|
||||
sector_angle = 5
|
||||
Projectile = ExtResource("2_ylc0n")
|
||||
reloaders = Array[ExtResource("3_uucc4")]([SubResource("Resource_kifyy"), SubResource("Resource_6px3v")])
|
||||
metadata/_custom_type_script = "uid://dpqxs8hlql2o0"
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
@@ -0,0 +1 @@
|
||||
extends AbstractProjectile
|
||||
@@ -0,0 +1 @@
|
||||
uid://rtsf1n0djorp
|
||||
@@ -0,0 +1,24 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cnoiv8hdgossf"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://rtsf1n0djorp" path="res://game/entities/weapons/gatling/gatling_projectile.gd" id="1_xq7oi"]
|
||||
|
||||
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_xq7oi"]
|
||||
size = Vector2(4, 4)
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_xq7oi"]
|
||||
radius = 1.0
|
||||
|
||||
[node name="GatlingProjectile" type="CharacterBody2D"]
|
||||
collision_layer = 0
|
||||
collision_mask = 0
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_xq7oi")
|
||||
damage = 6
|
||||
speed = 600
|
||||
metadata/_custom_type_script = "uid://ctmjb3nkxrepu"
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = SubResource("PlaceholderTexture2D_xq7oi")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_xq7oi")
|
||||
Reference in New Issue
Block a user