OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-godot4-test commits / a02219f

updates to hyperChat
a02219f3a0a21ae060884fe3d8fe94e1cb766315
by Dresk Spidflisk <dreskspidflisk@gmail.com> · 2022-04-29T22:16:20.000Z

Changed files (5) +106 -11

game/player/player_core_local.tscn +94 -0
……@@ -9,6 +9,97 @@
99
1010[node name="PlayerCoreLocal" instance=ExtResource( "1" )]
1111
12[node name="Skeleton3D" parent="Model/Armature" index="0"]
13bones/1/position = Vector3(3.74218e-14, 0.0634533, 1.02831)
14bones/1/rotation = Quaternion(8.46653e-08, 0.61252, 0.790455, 2.99052e-08)
15bones/2/rotation = Quaternion(0.0925973, -3.56091e-07, -6.91741e-08, 0.995704)
16bones/3/rotation = Quaternion(-9.68419e-08, 0.998783, 0.0493129, -3.06423e-06)
17bones/4/rotation = Quaternion(0.00162716, -2.0214e-06, 4.89793e-09, 0.999999)
18bones/5/rotation = Quaternion(-6.01138e-08, 0.97944, 0.201738, 6.7326e-07)
19bones/6/rotation = Quaternion(0.0948577, -1.07455e-12, -3.69389e-08, 0.995491)
20bones/7/rotation = Quaternion(7.0754e-09, 0.995599, 0.0937121, -7.51656e-08)
21bones/8/position = Vector3(0.021036, 0.157738, 0.0899508)
22bones/8/rotation = Quaternion(-0.574533, -0.380402, -0.372139, 0.621867)
23bones/9/rotation = Quaternion(-0.0781163, 0.768422, -0.600986, 0.205526)
24bones/9/scale = Vector3(0.999877, 1.00025, 0.999877)
25bones/10/rotation = Quaternion(1.51331e-07, -0.030928, -1.01527e-07, 0.999522)
26bones/11/rotation = Quaternion(0.131204, -0.0309258, 0.00409734, 0.990864)
27bones/11/scale = Vector3(0.999664, 1.0007, 0.999638)
28bones/12/rotation = Quaternion(8.84133e-07, 0.0331753, -6.0102e-07, 0.99945)
29bones/13/rotation = Quaternion(-0.0275201, 0.0331775, -0.113121, 0.992646)
30bones/13/scale = Vector3(1.00039, 0.999155, 1.00046)
31bones/15/position = Vector3(0.000886593, 0.0800313, 1.91273e-05)
32bones/16/rotation = Quaternion(-0.00581887, 0.0016982, -0.00528009, 0.999968)
33bones/17/rotation = Quaternion(0.0065653, -0.00667406, 0.0208095, 0.99974)
34bones/18/position = Vector3(0.0235933, 0.0697305, -0.0610185)
35bones/18/rotation = Quaternion(0.178116, 0.150551, -0.33769, 0.911907)
36bones/19/rotation = Quaternion(-0.148158, 0.0254844, -0.0646288, 0.986521)
37bones/20/rotation = Quaternion(-0.0146405, -0.0187557, 0.0313062, 0.999227)
38bones/22/position = Vector3(-0.00202787, 0.0783301, -0.00199709)
39bones/22/rotation = Quaternion(0.155842, 0.00461602, -0.0101422, 0.987719)
40bones/23/rotation = Quaternion(-0.0133977, -0.000793498, 0.00273888, 0.999906)
41bones/24/rotation = Quaternion(-0.00209431, 0.00257172, -0.00834415, 0.99996)
42bones/26/position = Vector3(-0.00151126, 0.077316, -0.000154029)
43bones/26/rotation = Quaternion(0.118904, 0.0306709, -0.0560406, 0.990848)
44bones/27/rotation = Quaternion(-0.013392, -0.00270695, 0.00650454, 0.999885)
45bones/28/rotation = Quaternion(0.000326484, -0.00915124, 0.0211577, 0.999734)
46bones/30/position = Vector3(0.00136774, 0.0745291, 0.000474518)
47bones/30/rotation = Quaternion(0.119319, -0.0143616, 0.0193321, 0.992564)
48bones/31/rotation = Quaternion(-0.0149339, 0.0107445, -0.0181568, 0.999666)
49bones/32/rotation = Quaternion(0.0224833, -0.00492395, 0.00846113, 0.999699)
50bones/33/position = Vector3(-0.0210362, 0.157738, 0.0899507)
51bones/33/rotation = Quaternion(-0.574533, 0.380401, 0.372139, 0.621867)
52bones/34/rotation = Quaternion(0.0781163, 0.768422, -0.600986, -0.205526)
53bones/34/scale = Vector3(0.999877, 1.00025, 0.999877)
54bones/35/rotation = Quaternion(4.894e-07, 0.0309286, 5.70601e-07, 0.999522)
55bones/36/rotation = Quaternion(0.131205, 0.0309267, -0.00409664, 0.990864)
56bones/36/scale = Vector3(0.999664, 1.0007, 0.999639)
57bones/37/rotation = Quaternion(-3.67523e-07, -0.0331773, -2.1813e-07, 0.99945)
58bones/38/rotation = Quaternion(-0.0275206, -0.0331778, 0.11312, 0.992646)
59bones/38/scale = Vector3(1.00039, 0.999156, 1.00046)
60bones/40/position = Vector3(-0.00088668, 0.0800313, 1.89864e-05)
61bones/40/rotation = Quaternion(0.152494, -0.0320192, 0.0648275, 0.985656)
62bones/41/rotation = Quaternion(-0.0058182, -0.00169902, 0.00528057, 0.999968)
63bones/42/rotation = Quaternion(0.00656411, 0.00667606, -0.0208096, 0.99974)
64bones/43/position = Vector3(-0.0235932, 0.069731, -0.0610188)
65bones/43/rotation = Quaternion(0.178115, -0.150549, 0.337691, 0.911907)
66bones/44/rotation = Quaternion(-0.14816, -0.0254828, 0.0646272, 0.98652)
67bones/45/rotation = Quaternion(-0.0146359, 0.0187393, -0.0313094, 0.999227)
68bones/47/position = Vector3(0.00202794, 0.0783306, -0.00199749)
69bones/48/rotation = Quaternion(-0.0134026, 0.000799712, -0.00273872, 0.999906)
70bones/49/rotation = Quaternion(-0.00209714, -0.00256799, 0.00834452, 0.99996)
71bones/51/position = Vector3(0.00151125, 0.0773163, -0.000153924)
72bones/52/rotation = Quaternion(-0.0133977, 0.00271319, -0.00650378, 0.999885)
73bones/53/rotation = Quaternion(0.000341449, 0.00913482, -0.0211588, 0.999734)
74bones/55/position = Vector3(-0.00136773, 0.0745294, 0.000474296)
75bones/55/rotation = Quaternion(0.119319, 0.0143618, -0.0193322, 0.992564)
76bones/56/rotation = Quaternion(-0.0149346, -0.0107439, 0.0181571, 0.999666)
77bones/57/rotation = Quaternion(0.0224814, 0.00492577, -0.00846109, 0.999699)
78bones/58/position = Vector3(0.177163, -0.0671752, -0.0509083)
79bones/58/rotation = Quaternion(-3.44743e-07, 0.696936, 0.717133, 3.4553e-07)
80bones/59/position = Vector3(-0.177162, -0.0671751, -0.0509087)
81bones/59/rotation = Quaternion(-3.44744e-07, 0.696936, 0.717133, 3.4553e-07)
82bones/60/position = Vector3(3.00642e-07, -0.114907, -0.303985)
83bones/60/rotation = Quaternion(0.0142813, -4.9445e-07, 7.0621e-09, 0.999898)
84bones/63/rotation = Quaternion(-0.000665779, -0.126809, 0.991927, 1.72349e-05)
85bones/63/scale = Vector3(0.998759, 1.00249, 0.99876)
86bones/64/rotation = Quaternion(-5.08396e-10, -0.124696, -8.00788e-10, 0.992195)
87bones/65/rotation = Quaternion(0.125008, -0.12471, 0.0159037, 0.984158)
88bones/65/scale = Vector3(0.999957, 1.00032, 0.999725)
89bones/66/rotation = Quaternion(-4.15466e-08, -0.00657663, -1.01208e-07, 0.999978)
90bones/67/rotation = Quaternion(-0.283251, -0.0065805, 0.000842836, 0.959023)
91bones/67/scale = Vector3(1.00129, 0.998573, 1.00015)
92bones/68/rotation = Quaternion(-0.0191087, 0.813682, -0.580927, 0.0089989)
93bones/69/rotation = Quaternion(0.000548311, -0.2102, 0.977658, -0.000684877)
94bones/69/scale = Vector3(1.00048, 0.999036, 1.00048)
95bones/70/rotation = Quaternion(-1.86531e-08, -8.05049e-05, -3.07205e-08, 1)
96bones/71/rotation = Quaternion(0.151268, -8.05677e-05, 3.74502e-06, 0.988493)
97bones/71/scale = Vector3(1.00003, 0.999812, 1.00016)
98bones/72/rotation = Quaternion(2.97917e-08, 0.0181738, 3.00054e-10, 0.999835)
99bones/73/rotation = Quaternion(-0.225792, 0.0181711, -0.00135875, 0.974005)
100bones/73/scale = Vector3(0.999489, 1.00073, 0.999786)
101bones/74/rotation = Quaternion(0.0191237, 0.813682, -0.580926, -0.00901949)
102
12103[node name="Sound_Jump" parent="Model" index="2"]
13104transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
14105
……@@ -41,6 +132,7 @@ debug_shape_thickness = 5
41132transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2.5)
42133
43134[node name="PlayerDebugUI" parent="." index="7" instance=ExtResource( "5" )]
135visible = false
44136
45137[connection signal="player_jump" from="Input" to="." method="_on_input_player_jump"]
46138[connection signal="player_mousemotion_event" from="Input" to="." method="_on_input_player_mousemotion_event"]
……@@ -49,3 +141,5 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2.5)
49141[connection signal="player_respawn_player" from="Input" to="." method="_on_input_player_respawn_player"]
50142[connection signal="player_shoot_grapplinghook" from="Input" to="." method="_on_input_player_shoot_grapplinghook"]
51143[connection signal="player_toggle_light" from="Input" to="." method="_on_input_player_toggle_light"]
144
145[editable path="Model"]
main.tscn +1 -0
……@@ -44,6 +44,7 @@ script = ExtResource( "4_djf6c" )
4444script = ExtResource( "3_g8xkj" )
4545
4646[node name="HyperDebugUI" parent="HyperGodot" instance=ExtResource( "5_7ejif" )]
47visible = false
4748
4849[connection signal="started_gateway" from="HyperGodot/HyperGateway" to="HyperGodot" method="_on_hyper_gateway_started_gateway"]
4950[connection signal="stopped_gateway" from="HyperGodot/HyperGateway" to="HyperGodot" method="_on_hyper_gateway_stopped_gateway"]
menu/chat/HyperChat/HyperChat.gd +11 -11
……@@ -51,9 +51,9 @@ func send_current():
5151 display_item(get_username(), text)
5252 broadcast_text(text)
5353
54func update_identity(_from, username):
54func update_identity(_from, _username):
5555 # Have some sort of sidebar to display known users?
56 display_item('System', 'Seen user ' + username)
56 display_item('System', 'Seen user ' + _username)
5757 pass
5858
5959func list_peers():
……@@ -81,18 +81,18 @@ func get_username():
8181 return username.text
8282
8383func broadcast_text(content):
84 var username = get_username()
84 var _username = get_username()
8585 broadcast_message({
8686 'type': 'text',
8787 'content': content,
88 'username': username
88 'username': _username
8989 })
9090
9191func broadcast_identity():
92 var username = get_username()
92 var _username = get_username()
9393 broadcast_message({
9494 'type': 'identity',
95 'username': username
95 'username': _username
9696 })
9797
9898func broadcast_message(message):
……@@ -146,11 +146,6 @@ func make_id():
146146func start_listening():
147147 eventSource.request(extensionsFolder)
148148
149func _on_HyperGateway_started_gateway(_pid):
150 start_listening()
151 list_peers()
152 broadcast_identity()
153
154149func _on_ChatInput_text_entered(_new_text):
155150 send_current()
156151 pass # Replace with function body.
……@@ -160,3 +155,8 @@ func _on_send_button_pressed():
160155
161156func _on_hyper_event_source_event(data, event, id):
162157 _on_event(data, event, id)
158
159func _on_hyper_gateway_started_gateway(pid):
160 start_listening()
161 list_peers()
162 broadcast_identity()
menu/main/main_multiplayer.scn +0 -0
(no content changes — binary or rename)
menu/main/menu_main.scn +0 -0
(no content changes — binary or rename)