game: add weapon base and sword
This commit is contained in:
24
scenes/weapons/weapon_sword_projectile.tscn
Normal file
24
scenes/weapons/weapon_sword_projectile.tscn
Normal file
@@ -0,0 +1,24 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://bv5f47x3ishmf"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c40iaqdubwl0p" path="res://scenes/weapons/weapon_sword_projectile.gd" id="1_asuu4"]
|
||||
[ext_resource type="Texture2D" uid="uid://dycw7c3484dir" path="res://assets/sprites/sword.png" id="2_pxap4"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ygc1t"]
|
||||
size = Vector2(16, 46)
|
||||
|
||||
[node name="WeaponSwordProjectile" type="Node2D"]
|
||||
script = ExtResource("1_asuu4")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("2_pxap4")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
monitorable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2(0, -5)
|
||||
shape = SubResource("RectangleShape2D_ygc1t")
|
||||
|
||||
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
|
Reference in New Issue
Block a user