Attempting to refactor the previously working self contained equidistent
code in the player.gd.
This commit is contained in:
parent
5d2efe9983
commit
d419635d7f
15 changed files with 153 additions and 46 deletions
|
|
@ -1,15 +1,24 @@
|
|||
[gd_scene format=3 uid="uid://b2ltmeb14nc17"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://d1rwqotmrag1r" path="res://scripts/stock_weapon.gd" id="1_kx6bj"]
|
||||
[ext_resource type="Resource" uid="uid://cels8t3hqjtsu" path="res://resources/player_weapons/shot_stock.tres" id="2_hefae"]
|
||||
[ext_resource type="Script" uid="uid://ccdohs4gduee5" path="res://scripts/player_shot.gd" id="2_5286c"]
|
||||
[ext_resource type="Texture2D" uid="uid://ti1uy42vnnhw" path="res://graphics/shot.png" id="3_58qml"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_4ihvg"]
|
||||
script = ExtResource("2_5286c")
|
||||
shot_name = "Stock"
|
||||
speed = 350
|
||||
projectiles = 3
|
||||
projectile_spacing = 10.0
|
||||
cooldown = 0.0
|
||||
metadata/_custom_type_script = "uid://ccdohs4gduee5"
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mvdrj"]
|
||||
size = Vector2(12, 8)
|
||||
|
||||
[node name="StockWeapon" type="Area2D" unique_id=1832200900]
|
||||
script = ExtResource("1_kx6bj")
|
||||
shot_data = ExtResource("2_hefae")
|
||||
shot_data = SubResource("Resource_4ihvg")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=2134507225]
|
||||
texture = ExtResource("3_58qml")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue