Fixed weapons scenes inheritance
This commit is contained in:
@@ -1,12 +1 @@
|
||||
extends AbstractWeapon
|
||||
|
||||
|
||||
@onready var sprite := $Sprite2D
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
var texture := PlaceholderTexture2D.new()
|
||||
texture.size = Vector2(10, 7)
|
||||
sprite.texture = texture
|
||||
|
||||
super._ready()
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://da5hpi3py7hhx"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://c3l866fdqt7pf"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://lauvvj5xhbud" path="res://game/entities/weapons/launcher/launcher.gd" id="1_sk5u1"]
|
||||
[ext_resource type="PackedScene" uid="uid://du60nb1ni0bco" path="res://game/entities/weapons/launcher/launcher_projectile.tscn" id="2_q88o8"]
|
||||
[ext_resource type="PackedScene" uid="uid://1o2ta17yc5bp" path="res://game/entities/weapons/abstract_weapon.tscn" id="1_sk5u1"]
|
||||
[ext_resource type="Script" uid="uid://lauvvj5xhbud" path="res://game/entities/weapons/launcher/launcher.gd" id="2_mxjpe"]
|
||||
[ext_resource type="Script" uid="uid://ccpriilfr3kme" path="res://game/reloaders/abstract_reloader.gd" id="3_1rkeb"]
|
||||
[ext_resource type="PackedScene" uid="uid://dukgbg13ujkv2" path="res://game/entities/weapons/launcher/launcher_projectile.tscn" id="3_fsoo2"]
|
||||
[ext_resource type="Script" uid="uid://b255rb32vc6co" path="res://game/reloaders/firerate_reloader.gd" id="4_fsoo2"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_8arbu"]
|
||||
@@ -10,11 +11,8 @@ script = ExtResource("4_fsoo2")
|
||||
firerate = 120
|
||||
metadata/_custom_type_script = "uid://b255rb32vc6co"
|
||||
|
||||
[node name="Launcher" type="Node2D"]
|
||||
script = ExtResource("1_sk5u1")
|
||||
[node name="Launcher" instance=ExtResource("1_sk5u1")]
|
||||
script = ExtResource("2_mxjpe")
|
||||
sector_angle = 5
|
||||
Projectile = ExtResource("2_q88o8")
|
||||
Projectile = ExtResource("3_fsoo2")
|
||||
reloaders = Array[ExtResource("3_1rkeb")]([SubResource("Resource_8arbu")])
|
||||
metadata/_custom_type_script = "uid://dpqxs8hlql2o0"
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
|
||||
@@ -1,24 +1,22 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://du60nb1ni0bco"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://dukgbg13ujkv2"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dkvur5bdwg3sr" path="res://game/entities/weapons/launcher/launcher_projectile.gd" id="1_0mcat"]
|
||||
[ext_resource type="PackedScene" uid="uid://ybkqaynvpcjm" path="res://game/entities/weapons/abstract_projectile.tscn" id="1_0mcat"]
|
||||
[ext_resource type="Script" uid="uid://dkvur5bdwg3sr" path="res://game/entities/weapons/launcher/launcher_projectile.gd" id="2_6hdsf"]
|
||||
|
||||
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_0mcat"]
|
||||
size = Vector2(8, 4)
|
||||
size = Vector2(4, 8)
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_0mcat"]
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_6hdsf"]
|
||||
radius = 1.0
|
||||
height = 6.0
|
||||
|
||||
[node name="LauncherProjectile" type="CharacterBody2D"]
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_0mcat")
|
||||
[node name="LauncherProjectile" instance=ExtResource("1_0mcat")]
|
||||
script = ExtResource("2_6hdsf")
|
||||
damage = 24
|
||||
speed = 300
|
||||
metadata/_custom_type_script = "uid://ctmjb3nkxrepu"
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
[node name="Sprite2D" parent="." index="0"]
|
||||
texture = SubResource("PlaceholderTexture2D_0mcat")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
rotation = 1.5707964
|
||||
shape = SubResource("CapsuleShape2D_0mcat")
|
||||
[node name="CollisionShape2D" parent="." index="1"]
|
||||
shape = SubResource("CapsuleShape2D_6hdsf")
|
||||
|
||||
Reference in New Issue
Block a user