| … | … | @@ -1,4 +1,4 @@ |
| 1 | | [gd_scene load_steps=54 format=2] |
| 1 | [gd_scene load_steps=57 format=2] |
| 2 | 2 | |
| 3 | 3 | [ext_resource path="res://ui/circle.png" type="Texture" id=1] |
| 4 | 4 | [ext_resource path="res://ui/direction.png" type="Texture" id=2] |
| … | … | @@ -16,6 +16,7 @@ |
| 16 | 16 | [ext_resource path="res://player/models/tumble/idle-loop.tres" type="Animation" id=14] |
| 17 | 17 | [ext_resource path="res://player/models/tumble/falling-loop.tres" type="Animation" id=15] |
| 18 | 18 | [ext_resource path="res://player/models/tumble/strafe-right-loop.tres" type="Animation" id=16] |
| 19 | [ext_resource path="res://player/models/tumble/landing.tres" type="Animation" id=17] |
| 19 | 20 | [ext_resource path="res://player/status.gd" type="Script" id=18] |
| 20 | 21 | [ext_resource path="res://player/models/tumble_asset.tscn" type="PackedScene" id=19] |
| 21 | 22 | [ext_resource path="res://player/camera.gd" type="Script" id=20] |
| … | … | @@ -40,26 +41,19 @@ animation = "walk-forward-loop" |
| 40 | 41 | [sub_resource type="AnimationNodeAnimation" id=10] |
| 41 | 42 | animation = "run-loop" |
| 42 | 43 | |
| 43 | | [sub_resource type="AnimationNodeAnimation" id=27] |
| 44 | | animation = "roll" |
| 45 | | |
| 46 | | [sub_resource type="AnimationNodeBlend2" id=41] |
| 44 | [sub_resource type="AnimationNodeAnimation" id=38] |
| 45 | animation = "jump" |
| 47 | 46 | |
| 48 | | [sub_resource type="AnimationNodeAnimation" id=46] |
| 47 | [sub_resource type="AnimationNodeAnimation" id=39] |
| 49 | 48 | animation = "falling-loop" |
| 50 | 49 | |
| 51 | | [sub_resource type="AnimationNodeAnimation" id=47] |
| 52 | | animation = "jump" |
| 50 | [sub_resource type="AnimationNodeAnimation" id=43] |
| 51 | animation = "landing" |
| 53 | 52 | |
| 54 | | [sub_resource type="AnimationNodeStateMachineTransition" id=48] |
| 53 | [sub_resource type="AnimationNodeAnimation" id=27] |
| 54 | animation = "roll" |
| 55 | 55 | |
| 56 | | [sub_resource type="AnimationNodeStateMachine" id=45] |
| 57 | | states/falling-loop/node = SubResource( 46 ) |
| 58 | | states/falling-loop/position = Vector2( 345, 6 ) |
| 59 | | states/jump/node = SubResource( 47 ) |
| 60 | | states/jump/position = Vector2( 156, 13 ) |
| 61 | | transitions = [ "jump", "falling-loop", SubResource( 48 ) ] |
| 62 | | graph_offset = Vector2( 1, -73 ) |
| 56 | [sub_resource type="AnimationNodeBlend3" id=44] |
| 63 | 57 | |
| 64 | 58 | [sub_resource type="AnimationNodeTimeScale" id=22] |
| 65 | 59 | |
| … | … | @@ -71,8 +65,22 @@ input_0/auto_advance = false |
| 71 | 65 | input_1/name = "not_aiming" |
| 72 | 66 | input_1/auto_advance = false |
| 73 | 67 | |
| 68 | [sub_resource type="AnimationNodeTimeScale" id=45] |
| 69 | |
| 74 | 70 | [sub_resource type="AnimationNodeBlend3" id=28] |
| 75 | 71 | |
| 72 | [sub_resource type="AnimationNodeTransition" id=41] |
| 73 | input_count = 2 |
| 74 | xfade_time = 0.1 |
| 75 | input_0/name = "air" |
| 76 | input_0/auto_advance = false |
| 77 | input_1/name = "ground" |
| 78 | input_1/auto_advance = false |
| 79 | |
| 80 | [sub_resource type="AnimationNodeTimeScale" id=42] |
| 81 | |
| 82 | [sub_resource type="AnimationNodeTimeScale" id=46] |
| 83 | |
| 76 | 84 | [sub_resource type="AnimationNodeOneShot" id=30] |
| 77 | 85 | |
| 78 | 86 | [sub_resource type="AnimationNodeTimeScale" id=31] |
| … | … | @@ -130,7 +138,7 @@ max_space = Vector2( 1.01, 1 ) |
| 130 | 138 | [sub_resource type="AnimationNodeTimeScale" id=23] |
| 131 | 139 | |
| 132 | 140 | [sub_resource type="AnimationNodeBlendTree" id=32] |
| 133 | | graph_offset = Vector2( -67.2793, 96.4483 ) |
| 141 | graph_offset = Vector2( -553.944, -314.889 ) |
| 134 | 142 | nodes/Animation/node = SubResource( 27 ) |
| 135 | 143 | nodes/Animation/position = Vector2( -240, 320 ) |
| 136 | 144 | "nodes/Animation 2/node" = SubResource( 25 ) |
| … | … | @@ -139,30 +147,40 @@ nodes/Animation/position = Vector2( -240, 320 ) |
| 139 | 147 | "nodes/Animation 3/position" = Vector2( -880, 380 ) |
| 140 | 148 | "nodes/Animation 4/node" = SubResource( 10 ) |
| 141 | 149 | "nodes/Animation 4/position" = Vector2( -840, 500 ) |
| 142 | | nodes/Blend2/node = SubResource( 41 ) |
| 143 | | nodes/Blend2/position = Vector2( 400, 160 ) |
| 144 | | nodes/StateMachine/node = SubResource( 45 ) |
| 145 | | nodes/StateMachine/position = Vector2( 140, 360 ) |
| 150 | "nodes/Animation 5/node" = SubResource( 38 ) |
| 151 | "nodes/Animation 5/position" = Vector2( -520, -60 ) |
| 152 | "nodes/Animation 6/node" = SubResource( 39 ) |
| 153 | "nodes/Animation 6/position" = Vector2( -540, -240 ) |
| 154 | "nodes/Animation 7/node" = SubResource( 43 ) |
| 155 | "nodes/Animation 7/position" = Vector2( -560, -380 ) |
| 156 | nodes/Blend3/node = SubResource( 44 ) |
| 157 | nodes/Blend3/position = Vector2( -100, -160 ) |
| 146 | 158 | "nodes/TimeScale 3/node" = SubResource( 22 ) |
| 147 | 159 | "nodes/TimeScale 3/position" = Vector2( -480, 80 ) |
| 148 | 160 | nodes/aim_transition/node = SubResource( 29 ) |
| 149 | 161 | nodes/aim_transition/position = Vector2( -240, 106.667 ) |
| 162 | nodes/falling_scale/node = SubResource( 45 ) |
| 163 | nodes/falling_scale/position = Vector2( -320, -240 ) |
| 150 | 164 | nodes/iwr_blend/node = SubResource( 28 ) |
| 151 | 165 | nodes/iwr_blend/position = Vector2( -400, 200 ) |
| 166 | nodes/jump/node = SubResource( 41 ) |
| 167 | nodes/jump/position = Vector2( 80, 20 ) |
| 168 | nodes/jump_scale/node = SubResource( 42 ) |
| 169 | nodes/jump_scale/position = Vector2( -340, -80 ) |
| 170 | nodes/landing_scale/node = SubResource( 46 ) |
| 171 | nodes/landing_scale/position = Vector2( -340, -360 ) |
| 152 | 172 | nodes/output/position = Vector2( 693.333, 133.333 ) |
| 153 | 173 | nodes/roll/node = SubResource( 30 ) |
| 154 | | nodes/roll/position = Vector2( 120, 160 ) |
| 174 | nodes/roll/position = Vector2( 400, 140 ) |
| 155 | 175 | nodes/roll_scale/node = SubResource( 31 ) |
| 156 | | nodes/roll_scale/position = Vector2( -80, 280 ) |
| 176 | nodes/roll_scale/position = Vector2( -60, 280 ) |
| 157 | 177 | nodes/run_scale/node = SubResource( 33 ) |
| 158 | 178 | nodes/run_scale/position = Vector2( -640, 500 ) |
| 159 | 179 | nodes/strafe/node = SubResource( 20 ) |
| 160 | 180 | nodes/strafe/position = Vector2( -760, 60 ) |
| 161 | 181 | nodes/walk_scale/node = SubResource( 23 ) |
| 162 | 182 | nodes/walk_scale/position = Vector2( -640, 360 ) |
| 163 | | node_connections = [ "output", 0, "Blend2", "roll", 0, "aim_transition", "roll", 1, "roll_scale", "Blend2", 0, "roll", "Blend2", 1, "StateMachine", "TimeScale 3", 0, "strafe", "aim_transition", 0, "TimeScale 3", "aim_transition", 1, "iwr_blend", "iwr_blend", 0, "Animation 2", "iwr_blend", 1, "walk_scale", "iwr_blend", 2, "run_scale", "roll_scale", 0, "Animation", "run_scale", 0, "Animation 4", "walk_scale", 0, "Animation 3" ] |
| 164 | | |
| 165 | | [sub_resource type="AnimationNodeStateMachinePlayback" id=49] |
| 183 | node_connections = [ "output", 0, "roll", "Blend3", 0, "jump_scale", "Blend3", 1, "falling_scale", "Blend3", 2, "landing_scale", "TimeScale 3", 0, "strafe", "jump", 0, "Blend3", "jump", 1, "aim_transition", "roll", 0, "jump", "roll", 1, "roll_scale", "aim_transition", 0, "TimeScale 3", "aim_transition", 1, "iwr_blend", "iwr_blend", 0, "Animation 2", "iwr_blend", 1, "walk_scale", "iwr_blend", 2, "run_scale", "roll_scale", 0, "Animation", "run_scale", 0, "Animation 4", "walk_scale", 0, "Animation 3", "jump_scale", 0, "Animation 5", "landing_scale", 0, "Animation 7", "falling_scale", 0, "Animation 6" ] |
| 166 | 184 | |
| 167 | 185 | [node name="Player" type="KinematicBody"] |
| 168 | 186 | script = ExtResource( 21 ) |
| … | … | @@ -661,6 +679,7 @@ anims/default = ExtResource( 4 ) |
| 661 | 679 | anims/falling-loop = ExtResource( 15 ) |
| 662 | 680 | anims/idle-loop = ExtResource( 14 ) |
| 663 | 681 | anims/jump = ExtResource( 24 ) |
| 682 | anims/landing = ExtResource( 17 ) |
| 664 | 683 | anims/roll = ExtResource( 9 ) |
| 665 | 684 | anims/run-loop = ExtResource( 6 ) |
| 666 | 685 | anims/strafe-left-loop = ExtResource( 7 ) |
| … | … | @@ -676,11 +695,14 @@ anims/walk-forward-loop = ExtResource( 12 ) |
| 676 | 695 | tree_root = SubResource( 32 ) |
| 677 | 696 | anim_player = NodePath("../AnimationPlayer") |
| 678 | 697 | active = true |
| 679 | | parameters/Blend2/blend_amount = 1.0 |
| 680 | | parameters/StateMachine/playback = SubResource( 49 ) |
| 698 | parameters/Blend3/blend_amount = -1.0 |
| 681 | 699 | "parameters/TimeScale 3/scale" = 1.0 |
| 682 | 700 | parameters/aim_transition/current = 0 |
| 701 | parameters/falling_scale/scale = 1.0 |
| 683 | 702 | parameters/iwr_blend/blend_amount = -1.0 |
| 703 | parameters/jump/current = 0 |
| 704 | parameters/jump_scale/scale = 1.0 |
| 705 | parameters/landing_scale/scale = 1.0 |
| 684 | 706 | parameters/roll/active = false |
| 685 | 707 | parameters/roll_scale/scale = 1.0 |
| 686 | 708 | parameters/run_scale/scale = 1.0 |