383 lines
12 KiB
Text
383 lines
12 KiB
Text
[gd_scene format=3 uid="uid://ce2k04khaub8n"]
|
|
|
|
[ext_resource type="Script" uid="uid://b5iey2typf2tb" path="res://src/player/Player.cs" id="1_244u8"]
|
|
[ext_resource type="Texture2D" uid="uid://d0dy3j0qdycqf" path="res://src/player/player.aseprite" id="2_yw30f"]
|
|
[ext_resource type="Texture2D" uid="uid://i6xi16yki1r5" path="res://src/player/light.aseprite" id="3_mf2ua"]
|
|
[ext_resource type="Script" uid="uid://b4k42r866lkut" path="res://src/combat/Hitbox.cs" id="4_244u8"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jiejy"]
|
|
size = Vector2(10, 28)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_o822w"]
|
|
size = Vector2(10, 12)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_244u8"]
|
|
size = Vector2(27.5, 20)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5f2sf"]
|
|
size = Vector2(13.59375, 20)
|
|
|
|
[sub_resource type="Animation" id="Animation_yw30f"]
|
|
resource_name = "RESET"
|
|
length = 0.001
|
|
step = 0.016666668
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Body: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(".:CanTurn")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("Body/FrontKickHitBox/CollisionShape2D:disabled")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("Body/FrontKickHitBox/CollisionShape2D2:disabled")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_g6k8r"]
|
|
resource_name = "front_kick"
|
|
length = 0.55
|
|
step = 0.016666668
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Body:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.050000004, 0.116666675, 0.2, 0.28333333, 0.36666667, 0.45),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [9, 10, 11, 12, 13, 14, 9]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".:CanTurn")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.45),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [false, true]
|
|
}
|
|
tracks/2/type = "method"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("Body/FrontKickHitBox")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0.05, 0.36666667),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"StartAttack"
|
|
}, {
|
|
"args": [],
|
|
"method": &"StopAttack"
|
|
}]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("Body/FrontKickHitBox/CollisionShape2D:disabled")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0.050000004, 0.28333336),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [false, true]
|
|
}
|
|
tracks/4/type = "value"
|
|
tracks/4/imported = false
|
|
tracks/4/enabled = true
|
|
tracks/4/path = NodePath("Body/FrontKickHitBox/CollisionShape2D2:disabled")
|
|
tracks/4/interp = 1
|
|
tracks/4/loop_wrap = true
|
|
tracks/4/keys = {
|
|
"times": PackedFloat32Array(0.050000004, 0.20000002),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [true, false]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_qjkh3"]
|
|
resource_name = "idle"
|
|
length = 1.0000017
|
|
loop_mode = 1
|
|
step = 0.1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Body:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_boad6"]
|
|
resource_name = "run"
|
|
length = 0.8
|
|
loop_mode = 1
|
|
step = 0.1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Body:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [1, 2, 3, 4, 5, 6, 7, 8]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_rgyib"]
|
|
resource_name = "wall_hold"
|
|
length = 1.0000017
|
|
loop_mode = 1
|
|
step = 0.1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Body:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [5]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_244u8"]
|
|
resource_name = "water_idle"
|
|
step = 0.016666668
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Body:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [15]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_rgyib"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_yw30f"),
|
|
&"front_kick": SubResource("Animation_g6k8r"),
|
|
&"idle": SubResource("Animation_qjkh3"),
|
|
&"run": SubResource("Animation_boad6"),
|
|
&"wall_hold": SubResource("Animation_rgyib"),
|
|
&"water_idle": SubResource("Animation_244u8")
|
|
}
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_qjkh3"]
|
|
animation = &"front_kick"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_yw30f"]
|
|
animation = &"idle"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_g6k8r"]
|
|
animation = &"run"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_boad6"]
|
|
animation = &"wall_hold"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_boad6"]
|
|
switch_mode = 2
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_rgyib"]
|
|
break_loop_at_end = true
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_hg6s5"]
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_8t03j"]
|
|
advance_mode = 2
|
|
advance_expression = "is_on_floor() and _currentDirection.x != 0.0"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_2ieo8"]
|
|
break_loop_at_end = true
|
|
advance_mode = 2
|
|
advance_expression = "not is_on_floor() or _currentDirection.x == 0.0"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_ebec5"]
|
|
advance_expression = "_is_on_wall()"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_yllr7"]
|
|
advance_mode = 2
|
|
advance_expression = "IsHoldingWall()"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_kb6p2"]
|
|
advance_mode = 2
|
|
advance_expression = "not IsHoldingWall()"
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_yllr7"]
|
|
allow_transition_to_self = true
|
|
states/front_kick/node = SubResource("AnimationNodeAnimation_qjkh3")
|
|
states/front_kick/position = Vector2(604.5, 41.5)
|
|
states/idle/node = SubResource("AnimationNodeAnimation_yw30f")
|
|
states/idle/position = Vector2(428.5, 88.5)
|
|
states/run/node = SubResource("AnimationNodeAnimation_g6k8r")
|
|
states/run/position = Vector2(628.5, 203.5)
|
|
states/wall_hold/node = SubResource("AnimationNodeAnimation_boad6")
|
|
states/wall_hold/position = Vector2(362.82965, 231.5)
|
|
transitions = ["front_kick", "idle", SubResource("AnimationNodeStateMachineTransition_boad6"), "idle", "front_kick", SubResource("AnimationNodeStateMachineTransition_rgyib"), "Start", "idle", SubResource("AnimationNodeStateMachineTransition_hg6s5"), "idle", "run", SubResource("AnimationNodeStateMachineTransition_8t03j"), "run", "idle", SubResource("AnimationNodeStateMachineTransition_2ieo8"), "run", "front_kick", SubResource("AnimationNodeStateMachineTransition_ebec5"), "idle", "wall_hold", SubResource("AnimationNodeStateMachineTransition_yllr7"), "wall_hold", "idle", SubResource("AnimationNodeStateMachineTransition_kb6p2")]
|
|
graph_offset = Vector2(-59.670364, -27)
|
|
|
|
[node name="Player" type="CharacterBody2D" unique_id=500011307]
|
|
physics_interpolation_mode = 1
|
|
auto_translate_mode = 1
|
|
collision_layer = 2
|
|
collision_mask = 65
|
|
floor_constant_speed = true
|
|
floor_max_angle = 0.24783675
|
|
script = ExtResource("1_244u8")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=84142517]
|
|
position = Vector2(0, -14)
|
|
shape = SubResource("RectangleShape2D_jiejy")
|
|
|
|
[node name="SubmersedSensor" type="Area2D" parent="." unique_id=1595680866]
|
|
unique_name_in_owner = true
|
|
collision_layer = 0
|
|
collision_mask = 32
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="SubmersedSensor" unique_id=1538343174]
|
|
position = Vector2(0, -21)
|
|
shape = SubResource("RectangleShape2D_o822w")
|
|
debug_color = Color(0, 0.5282814, 0.99723786, 0.41960785)
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="." unique_id=1975474809]
|
|
position = Vector2(0, -16)
|
|
process_callback = 0
|
|
limit_enabled = false
|
|
position_smoothing_enabled = true
|
|
|
|
[node name="PointLight2D" type="PointLight2D" parent="." unique_id=1795955896]
|
|
position = Vector2(0, -16)
|
|
energy = 0.1
|
|
shadow_color = Color(0, 0, 0, 1)
|
|
texture = ExtResource("3_mf2ua")
|
|
|
|
[node name="Body" type="Sprite2D" parent="." unique_id=567060128]
|
|
unique_name_in_owner = true
|
|
texture = ExtResource("2_yw30f")
|
|
offset = Vector2(0, -24)
|
|
hframes = 8
|
|
vframes = 3
|
|
metadata/_aseprite_wizard_interface_config_ = {
|
|
"animation_section": false,
|
|
"layer_section": false,
|
|
"output_section": false,
|
|
"pending_changes": {
|
|
"convert_fps_field": 60.0,
|
|
"convert_ms_field": 16.0,
|
|
"convert_to_fps": false,
|
|
"i_mode": 0,
|
|
"keep_anim_length": false,
|
|
"player": "",
|
|
"source": "res://src/player/player.aseprite"
|
|
},
|
|
"slice_section": false
|
|
}
|
|
metadata/_aseprite_wizard_config_ = {
|
|
"embed_tex": true,
|
|
"layers": [],
|
|
"o_ex_p": "",
|
|
"o_folder": "",
|
|
"o_name": "",
|
|
"only_visible": false,
|
|
"scale": "1.0",
|
|
"should_round_fps": true,
|
|
"slice": "",
|
|
"source": "res://player.aseprite",
|
|
"source_uid": 8921683997410207965
|
|
}
|
|
metadata/_aseprite_wizard_source_file_hash_ = "61168df4a163c039cfaab97f4fccb905"
|
|
|
|
[node name="HandAttachment" type="Node2D" parent="Body" unique_id=1002134601]
|
|
unique_name_in_owner = true
|
|
position = Vector2(0, -14)
|
|
|
|
[node name="FrontKickHitBox" type="Area2D" parent="Body" unique_id=1918418417]
|
|
process_mode = 4
|
|
visible = false
|
|
position = Vector2(0, -16)
|
|
collision_layer = 8
|
|
collision_mask = 4
|
|
script = ExtResource("4_244u8")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Body/FrontKickHitBox" unique_id=2048987579]
|
|
position = Vector2(5, 7)
|
|
shape = SubResource("RectangleShape2D_244u8")
|
|
debug_color = Color(0.99430805, 0, 0.2314094, 0.41960785)
|
|
|
|
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Body/FrontKickHitBox" unique_id=734742131]
|
|
position = Vector2(16, -2)
|
|
shape = SubResource("RectangleShape2D_5f2sf")
|
|
debug_color = Color(0.99430805, 0, 0.2314094, 0.41960785)
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1251324400]
|
|
libraries/ = SubResource("AnimationLibrary_rgyib")
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="AnimationPlayer" unique_id=1839424284]
|
|
unique_name_in_owner = true
|
|
deterministic = false
|
|
root_node = NodePath("%AnimationTree/../..")
|
|
tree_root = SubResource("AnimationNodeStateMachine_yllr7")
|
|
advance_expression_base_node = NodePath("../..")
|
|
anim_player = NodePath("..")
|
|
|
|
[connection signal="body_entered" from="SubmersedSensor" to="." method="EnteredWater"]
|
|
[connection signal="body_exited" from="SubmersedSensor" to="." method="LeftWater"]
|