OverviewFilesCommitsIssuesDocsReleasesPeers

godot-witchy_world_demo commits / 4dba636

dat
4dba636d216dd47b73de1e7bed5b8eec2a727596
by Dresk Spidflisk <dreskspidflisk@gmail.com> · 2022-04-20T23:34:33.000Z

Changed files (2) +5 -3

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", "falling_scale", 0, "Animation 6", "iwr_blend", 0, "Animation 2", "iwr_blend", 1, "walk_scale", "iwr_blend", 2, "run_scale", "jump_scale", 0, "jump", "run_scale", 0, "Animation 4", "walk_scale", 0, "Animation 3", "landing_scale", 0, "Animation 7", "aim_transition", 0, "TimeScale 3", "aim_transition", 1, "iwr_blend", "roll", 0, "air_transition", "roll", 1, "roll_scale", "TimeScale 3", 0, "strafe", "air_transition", 0, "air_blend", "air_transition", 1, "aim_transition", "wall_run", 0, "Blend2", "wall_run", 1, "Blend2 2", "wall_run", 2, "roll", "Blend2 2", 0, "Animation 11", "Blend2 2", 1, "Animation 10", "air_blend", 0, "jump_scale", "air_blend", 1, "falling_scale", "air_blend", 2, "landing_scale", "roll_scale", 0, "Animation", "Blend2", 0, "Animation 8", "Blend2", 1, "Animation 9" ]
190node_connections = [ "output", 0, "wall_run", "roll_scale", 0, "Animation", "air_transition", 0, "air_blend", "air_transition", 1, "aim_transition", "Blend2 2", 0, "Animation 11", "Blend2 2", 1, "Animation 10", "Blend2", 0, "Animation 8", "Blend2", 1, "Animation 9", "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", "wall_run", 0, "Blend2", "wall_run", 1, "Blend2 2", "wall_run", 2, "roll", "roll", 0, "air_transition", "roll", 1, "roll_scale", "run_scale", 0, "Animation 4", "walk_scale", 0, "Animation 3", "falling_scale", 0, "Animation 6", "landing_scale", 0, "Animation 7", "jump_scale", 0, "jump", "iwr_blend", 0, "Animation 2", "iwr_blend", 1, "walk_scale", "iwr_blend", 2, "run_scale" ]
hypergodot/hyper_godot_core.gd +4 -2
……@@ -68,6 +68,8 @@ func _on_HyperGossip_listening(_extension_name):
6868
6969# TODO : Get these out of here and into player_core or player_core_remote
7070func _on_HyperGossip_event(type, data, from):
71 if data == null:
72 print("You got crap from : " + str(from))
7173 if type == EVENT_PLAYER_SNAPSHOT:
7274 updatePlayerWithSnapshot(data, from)
7375 elif type == EVENT_PLAYER_WANTSTOJUMP:
……@@ -152,7 +154,7 @@ func updatePlayer_maskSwitch(data, id):
152154func updatePlayer_mapchange(data, _id):
153155 var newMapName = data.map.name
154156 # TODO : Do this elsewhere
155 var playerDebugUI = get_tree().get_current_scene().get_node("Players").get_node("PlayerLocal").get_node("PlayerDebugUI")
157 var playerDebugUI = get_tree().get_current_scene().get_node("Players").get_node("PlayerCoreLocal").get_node("PlayerDebugUI")
156158 playerDebugUI.tryMapChange(newMapName, false)
157159
158160func updatePlayer_respawnPlayer(data, id):
……@@ -167,7 +169,7 @@ func updatePlayer_direction(data, id):
167169 remotePlayer.playerCoreNetworkDataUpdate(data)
168170
169171func getPlayerLocalSnapshotData() -> Dictionary:
170 var snapshotPlayer : KinematicBody = get_tree().get_current_scene().get_node("Players").get_node("PlayerLocal")
172 var snapshotPlayer : KinematicBody = get_tree().get_current_scene().get_node("Players").get_node("PlayerCoreLocal")
171173 var translation : Vector3 = snapshotPlayer.translation
172174 var meshDirection : Vector3 = Vector3(0, snapshotPlayer.meshNode.rotation.y, 0)
173175 var lookingDirection : Vector3 = snapshotPlayer.currentDirection