Merged with daniel-hell-level and modified weapon handling
This commit is contained in:
75
Player/Weapons/Javelin.tscn
Normal file
75
Player/Weapons/Javelin.tscn
Normal file
@@ -0,0 +1,75 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Sprites/Items/Javelin.png" type="Texture" id=1]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=3]
|
||||
extents = Vector2( 2.2, 3 )
|
||||
|
||||
[sub_resource type="Animation" id=2]
|
||||
resource_name = "swing"
|
||||
length = 0.4
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("Animation:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0.01, 0.21 ),
|
||||
"transitions": PoolRealArray( 1, 1 ),
|
||||
"update": 0,
|
||||
"values": [ Vector2( 0, 0 ), Vector2( 0, -7 ) ]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/path = NodePath("Animation/Javelin:visible")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/keys = {
|
||||
"times": PoolRealArray( 0, 0.01, 0.4 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1 ),
|
||||
"update": 1,
|
||||
"values": [ false, true, false ]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/path = NodePath("Animation:monitorable")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/keys = {
|
||||
"times": PoolRealArray( 0.02, 0.22 ),
|
||||
"transitions": PoolRealArray( 1, 1 ),
|
||||
"update": 1,
|
||||
"values": [ true, false ]
|
||||
}
|
||||
|
||||
[node name="Javelin" type="Node2D"]
|
||||
light_mask = 0
|
||||
|
||||
[node name="Animation" type="Area2D" parent="." groups=["player_weapon_2"]]
|
||||
light_mask = 0
|
||||
position = Vector2( 0, -7 )
|
||||
collision_layer = 0
|
||||
collision_mask = 4
|
||||
input_pickable = false
|
||||
monitoring = false
|
||||
monitorable = false
|
||||
|
||||
[node name="Javelin" type="Sprite" parent="Animation"]
|
||||
visible = false
|
||||
light_mask = 8
|
||||
position = Vector2( 0, -7 )
|
||||
rotation = 0.785398
|
||||
scale = Vector2( 0.65, 0.65 )
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Animation"]
|
||||
visible = false
|
||||
light_mask = 0
|
||||
position = Vector2( 0, -11.5 )
|
||||
shape = SubResource( 3 )
|
||||
|
||||
[node name="Javelin Animation" type="AnimationPlayer" parent="."]
|
||||
anims/swing = SubResource( 2 )
|
Reference in New Issue
Block a user