OverviewFilesCommitsIssuesDocsReleasesPeers

godot-witchy_world_demo commits / 15af18c

multiplayer updates
15af18c6ff57e44ac6e6a998ec85777dd377bc06
by Dresk Spidflisk <dreskspidflisk@gmail.com> · 2022-04-20T20:04:11.000Z

Changed files (5) +11 -21

assets/models/night_ghost/night_ghost.scn +0 -0
(no content changes — binary or rename)
game/player/player_core.gd +6 -4
……@@ -22,10 +22,12 @@ export var cameraLerpAmount : float = 40
2222export var currentSpeed : float = 0
2323
2424onready var meshNode : Spatial = $Model
25onready var meshSkeletonNode : Skeleton = $Model/Armature/Skeleton
26onready var meshSkeletonHiddenHand : MeshInstance = $Model/Armature/Skeleton/player001
27onready var meshHandBone : int = meshSkeletonNode.find_bone("DEF-hand.R")
28onready var meshHandBonePos : Transform = meshSkeletonNode.get_bone_pose(meshHandBone)
25
26# Skeleton-specific VARs
27#onready var meshSkeletonNode : Skeleton = $Model/Armature/Skeleton
28#onready var meshSkeletonHiddenHand : MeshInstance = $Model/Armature/Skeleton/player001
29#onready var meshHandBone : int = meshSkeletonNode.find_bone("DEF-hand.R")
30#onready var meshHandBonePos : Transform = meshSkeletonNode.get_bone_pose(meshHandBone)
2931
3032onready var clippedCamera : Spatial = $CameraHead/CameraPivot/ClippedCamera
3133onready var clippedCameraHead : Spatial = $CameraHead
game/player/player_core.tscn +2 -11
……@@ -1,6 +1,6 @@
11[gd_scene load_steps=36 format=2]
22
3[ext_resource path="res://assets/models/tumble/model_tumble.tscn" type="PackedScene" id=1]
3[ext_resource path="res://assets/models/night_ghost/night_ghost.scn" type="PackedScene" id=1]
44[ext_resource path="res://assets/models/tumble/tumble/sprint-loop.tres" type="Animation" id=2]
55[ext_resource path="res://assets/models/tumble/tumble/run-loop.tres" type="Animation" id=3]
66[ext_resource path="res://assets/models/tumble/tumble/landing.tres" type="Animation" id=4]
……@@ -37,37 +37,31 @@
3737
3838[sub_resource type="CylinderShape" id=1]
3939radius = 0.3
40height = 1.58
4140
4241[node name="PlayerCore" type="KinematicBody"]
4342script = ExtResource( 24 )
4443
4544[node name="CollisionShape" type="CollisionShape" parent="."]
46transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.788, 0 )
45transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
4746shape = SubResource( 1 )
4847
4948[node name="Model" parent="." instance=ExtResource( 1 )]
5049
5150[node name="Sound_Jump" type="AudioStreamPlayer3D" parent="Model"]
52transform = Transform( 1.53846, 0, 0, 0, 1.53846, 0, 0, 0, 1.53846, 0, 0, 0 )
5351stream = ExtResource( 25 )
5452attenuation_filter_cutoff_hz = 20500.0
5553
5654[node name="Sound_Land" type="AudioStreamPlayer3D" parent="Model"]
57transform = Transform( 1.53846, 0, 0, 0, 1.53846, 0, 0, 0, 1.53846, 0, 0, 0 )
5855stream = ExtResource( 31 )
5956attenuation_filter_cutoff_hz = 20500.0
6057
6158[node name="Sound_Metal_Footstep_1" type="AudioStreamPlayer3D" parent="Model"]
62transform = Transform( 1.53846, 0, 0, 0, 1.53846, 0, 0, 0, 1.53846, 0, 0, 0 )
6359stream = ExtResource( 28 )
6460
6561[node name="Sound_Metal_Footstep_2" type="AudioStreamPlayer3D" parent="Model"]
66transform = Transform( 1.53846, 0, 0, 0, 1.53846, 0, 0, 0, 1.53846, 0, 0, 0 )
6762stream = ExtResource( 27 )
6863
6964[node name="Sound_Metal_Footstep_3" type="AudioStreamPlayer3D" parent="Model"]
70transform = Transform( 1.53846, 0, 0, 0, 1.53846, 0, 0, 0, 1.53846, 0, 0, 0 )
7165stream = ExtResource( 26 )
7266
7367[node name="Sound_Shoot_GrapplingHook_1" type="AudioStreamPlayer3D" parent="Model"]
……@@ -83,12 +77,10 @@ stream = ExtResource( 30 )
8377attenuation_filter_cutoff_hz = 20500.0
8478
8579[node name="Sound_Teleport_1" type="AudioStreamPlayer3D" parent="Model"]
86transform = Transform( 1.53846, 0, 0, 0, 1.53846, 0, 0, 0, 1.53846, 0, 0, 0 )
8780stream = ExtResource( 33 )
8881attenuation_filter_cutoff_hz = 20500.0
8982
9083[node name="Sound_ToggleLight_1" type="AudioStreamPlayer3D" parent="Model"]
91transform = Transform( 1.53846, 0, 0, 0, 1.53846, 0, 0, 0, 1.53846, 0, 0, 0 )
9284stream = ExtResource( 35 )
9385attenuation_filter_cutoff_hz = 20500.0
9486
……@@ -119,7 +111,6 @@ anims/wall_run_r-loop = ExtResource( 22 )
119111[node name="AnimationTree" type="AnimationTree" parent="."]
120112tree_root = ExtResource( 5 )
121113anim_player = NodePath("../AnimationPlayer")
122active = true
123114parameters/Blend2/blend_amount = 0
124115"parameters/Blend2 2/blend_amount" = 0
125116"parameters/TimeScale 3/scale" = 1.0
game/player/player_core_local.tscn +2 -5
……@@ -8,10 +8,7 @@
88
99[node name="PlayerCoreLocal" instance=ExtResource( 1 )]
1010
11[node name="Sound_Jump" parent="Model" index="2"]
12transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
13
14[node name="Sound_Shoot_GrapplingHook_1" parent="Model" index="7"]
11[node name="Sound_Shoot_GrapplingHook_1" parent="Model" index="8"]
1512transform = Transform( 1.53846, 0, 0, 0, 1.53846, 0, 0, 0, 1.53846, 0, 0, 0 )
1613stream = ExtResource( 9 )
1714attenuation_filter_cutoff_hz = 5000.0
……@@ -23,7 +20,7 @@ script = ExtResource( 2 )
2320script = ExtResource( 3 )
2421
2522[node name="CameraHead" type="Spatial" parent="." index="6"]
26transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 1.5, 0 )
23transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.494363, 3.1564, 0.988551 )
2724
2825[node name="CameraPivot" type="Spatial" parent="CameraHead" index="0"]
2926
game/player/player_local_core.tres +1 -1
……@@ -187,4 +187,4 @@ nodes/walk_scale/node = SubResource( 23 )
187187nodes/walk_scale/position = Vector2( -640, 360 )
188188nodes/wall_run/node = SubResource( 50 )
189189nodes/wall_run/position = Vector2( 720, -60 )
190node_connections = [ "output", 0, "wall_run", "air_blend", 0, "jump_scale", "air_blend", 1, "falling_scale", "air_blend", 2, "landing_scale", "run_scale", 0, "Animation 4", "landing_scale", 0, "Animation 7", "walk_scale", 0, "Animation 3", "wall_run", 0, "Blend2", "wall_run", 1, "Blend2 2", "wall_run", 2, "roll", "air_transition", 0, "air_blend", "air_transition", 1, "aim_transition", "iwr_blend", 0, "Animation 2", "iwr_blend", 1, "walk_scale", "iwr_blend", 2, "run_scale", "aim_transition", 0, "TimeScale 3", "aim_transition", 1, "iwr_blend", "roll_scale", 0, "Animation", "falling_scale", 0, "Animation 6", "Blend2", 0, "Animation 8", "Blend2", 1, "Animation 9", "roll", 0, "air_transition", "roll", 1, "roll_scale", "TimeScale 3", 0, "strafe", "jump_scale", 0, "jump", "Blend2 2", 0, "Animation 11", "Blend2 2", 1, "Animation 10" ]
190node_connections = [ "output", 0, "wall_run", "landing_scale", 0, "Animation 7", "iwr_blend", 0, "Animation 2", "iwr_blend", 1, "walk_scale", "iwr_blend", 2, "run_scale", "run_scale", 0, "Animation 4", "jump_scale", 0, "jump", "falling_scale", 0, "Animation 6", "walk_scale", 0, "Animation 3", "Blend2", 0, "Animation 8", "Blend2", 1, "Animation 9", "air_transition", 0, "air_blend", "air_transition", 1, "aim_transition", "TimeScale 3", 0, "strafe", "aim_transition", 0, "TimeScale 3", "aim_transition", 1, "iwr_blend", "air_blend", 0, "jump_scale", "air_blend", 1, "falling_scale", "air_blend", 2, "landing_scale", "Blend2 2", 0, "Animation 11", "Blend2 2", 1, "Animation 10", "roll", 0, "air_transition", "roll", 1, "roll_scale", "roll_scale", 0, "Animation", "wall_run", 0, "Blend2", "wall_run", 1, "Blend2 2", "wall_run", 2, "roll" ]