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://ctv408wdwvttc
|
||||
@@ -0,0 +1,28 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://dpwdl7kcf0sng"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ctv408wdwvttc" path="res://game/entities/weapons/tesla/tesla.gd" id="1_rpud7"]
|
||||
[ext_resource type="PackedScene" uid="uid://dmvxynbo5bpyw" path="res://game/entities/weapons/tesla/tesla_projectile.tscn" id="2_1rrdy"]
|
||||
[ext_resource type="Script" uid="uid://ccpriilfr3kme" path="res://game/reloaders/abstract_reloader.gd" id="3_08si3"]
|
||||
[ext_resource type="Script" uid="uid://b255rb32vc6co" path="res://game/reloaders/firerate_reloader.gd" id="4_rqarv"]
|
||||
[ext_resource type="Script" uid="uid://dxk56xdihfw4m" path="res://game/reloaders/energy_reloader.gd" id="5_j5i31"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_jo1m1"]
|
||||
script = ExtResource("4_rqarv")
|
||||
firerate = 45
|
||||
metadata/_custom_type_script = "uid://b255rb32vc6co"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_7s0el"]
|
||||
script = ExtResource("5_j5i31")
|
||||
heat_per_shot = 150
|
||||
heat_capacity = 1000
|
||||
cooling_down_rate = 2500
|
||||
metadata/_custom_type_script = "uid://dxk56xdihfw4m"
|
||||
|
||||
[node name="Tesla" type="Node2D"]
|
||||
script = ExtResource("1_rpud7")
|
||||
sector_angle = 180
|
||||
Projectile = ExtResource("2_1rrdy")
|
||||
reloaders = Array[ExtResource("3_08si3")]([SubResource("Resource_jo1m1"), SubResource("Resource_7s0el")])
|
||||
metadata/_custom_type_script = "uid://dpqxs8hlql2o0"
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
@@ -0,0 +1 @@
|
||||
extends AbstractProjectile
|
||||
@@ -0,0 +1 @@
|
||||
uid://bxcoa2eps0tt1
|
||||
@@ -0,0 +1,22 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dmvxynbo5bpyw"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bxcoa2eps0tt1" path="res://game/entities/weapons/tesla/tesla_projectile.gd" id="1_1oexk"]
|
||||
|
||||
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_1oexk"]
|
||||
size = Vector2(12, 12)
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_1oexk"]
|
||||
radius = 5.0
|
||||
|
||||
[node name="TeslaProjectile" type="CharacterBody2D"]
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_1oexk")
|
||||
damage = 45
|
||||
speed = 900
|
||||
metadata/_custom_type_script = "uid://ctmjb3nkxrepu"
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = SubResource("PlaceholderTexture2D_1oexk")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_1oexk")
|
||||
Reference in New Issue
Block a user