game: add weapon base and sword
This commit is contained in:
22
scenes/weapons/weapon_sword.tscn
Normal file
22
scenes/weapons/weapon_sword.tscn
Normal file
@@ -0,0 +1,22 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dfikvj27k01tu"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://i8mtky2req41" path="res://scenes/weapons/weapon_base.tscn" id="1_2dti5"]
|
||||
[ext_resource type="Script" uid="uid://b072d866r4usq" path="res://scenes/weapons/weapon_sword.gd" id="2_ruf80"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ruf80"]
|
||||
|
||||
[node name="WeaponSword" instance=ExtResource("1_2dti5")]
|
||||
script = ExtResource("2_ruf80")
|
||||
attack_cd = 1.0
|
||||
attack_damage = 5.0
|
||||
attack_aoe = 1.0
|
||||
attack_duration = 1.0
|
||||
attack_range = 150.0
|
||||
|
||||
[node name="TargetingRange" type="Area2D" parent="." index="1"]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
monitorable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="TargetingRange" index="0"]
|
||||
shape = SubResource("CircleShape2D_ruf80")
|
Reference in New Issue
Block a user