direction weapons, added javelin weapon

This commit is contained in:
2021-12-04 17:44:29 -06:00
parent f18924dd3d
commit db6cec47b4
9 changed files with 180 additions and 30 deletions

View File

@@ -1,10 +1,11 @@
[gd_scene load_steps=21 format=2]
[gd_scene load_steps=22 format=2]
[ext_resource path="res://Player/Player.gd" type="Script" id=1]
[ext_resource path="res://Sprites/Player/Player.png" type="Texture" id=2]
[ext_resource path="res://Sprites/Player/Player_Down.png" type="Texture" id=3]
[ext_resource path="res://Sprites/Player/Player_Up.png" type="Texture" id=4]
[ext_resource path="res://Player/Inventory.tscn" type="PackedScene" id=5]
[ext_resource path="res://Player/Javelin.tscn" type="PackedScene" id=6]
[ext_resource path="res://Player/Sword.tscn" type="PackedScene" id=7]
[sub_resource type="SpriteFrames" id=1]
@@ -187,6 +188,7 @@ script = ExtResource( 1 )
[node name="Sprite" type="AnimatedSprite" parent="."]
light_mask = 2
z_index = 1
frames = SubResource( 1 )
animation = "look_right"
offset = Vector2( 0, -5 )
@@ -224,5 +226,8 @@ parameters/Idle/blend_position = Vector2( 0.0760697, 0 )
[node name="SwordAnimation" parent="." instance=ExtResource( 7 )]
position = Vector2( 8, -6 )
[node name="JavelinAnimation" parent="." instance=ExtResource( 6 )]
position = Vector2( 8, -4 )
[connection signal="body_entered" from="Hitbox" to="." method="_on_Hitbox_body_entered"]
[connection signal="update_currency" from="Inventory" to="." method="_on_Inventory_update_currency"]