added C#
This commit is contained in:
parent
ab79ace226
commit
00b76b6b25
63 changed files with 1172 additions and 1548 deletions
108
src/player/slash_projectile.tscn
Normal file
108
src/player/slash_projectile.tscn
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
[gd_scene format=3 uid="uid://bikcpm0fyl4pd"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://jdmsv25yp25v" path="res://src/player/attack.aseprite" id="1_3il12"]
|
||||
[ext_resource type="Script" uid="uid://0n1gv56pcc74" path="res://src/player/SlashProjectile.cs" id="1_bi0sp"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_3il12"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Attack:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [0]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Hitbox/CollisionShape2D:disabled")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_eb3da"]
|
||||
resource_name = "attack"
|
||||
length = 0.4
|
||||
step = 0.1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Attack:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.2),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [0, 1, 2]
|
||||
}
|
||||
tracks/1/type = "method"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath(".")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0.4),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
"method": &"OnAttackFinished"
|
||||
}]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Hitbox/CollisionShape2D:disabled")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [true, false, true]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_12t1i"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_3il12"),
|
||||
&"attack": SubResource("Animation_eb3da")
|
||||
}
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_u7cw4"]
|
||||
size = Vector2(32, 10)
|
||||
|
||||
[node name="SlashProjectile" type="Node2D" unique_id=541992074]
|
||||
script = ExtResource("1_bi0sp")
|
||||
|
||||
[node name="Attack" type="Sprite2D" parent="." unique_id=30274790]
|
||||
position = Vector2(16, -3)
|
||||
texture = ExtResource("1_3il12")
|
||||
hframes = 3
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1896907748]
|
||||
unique_name_in_owner = true
|
||||
libraries/ = SubResource("AnimationLibrary_12t1i")
|
||||
autoplay = &"attack"
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="." unique_id=133086557]
|
||||
collision_layer = 8
|
||||
collision_mask = 4
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox" unique_id=1668475985]
|
||||
position = Vector2(21, -5)
|
||||
shape = SubResource("RectangleShape2D_u7cw4")
|
||||
disabled = true
|
||||
debug_color = Color(0.99430805, 0, 0.2314094, 0.41960785)
|
||||
|
||||
[connection signal="body_entered" from="Hitbox" to="." method="OnHitboxBodyEntered"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue