OverviewFilesCommitsIssuesDocsReleasesPeers

godot-marble_madness_demo commits / 54276d1

Ash can hear me talk stupid things
54276d1448242dd604ed5ee839b7b7808805b410
by Dresk Spidflisk <dreskspidflisk@gmail.com> · 2022-02-04T02:44:28.000Z

Changed files (4) +69 -64

hypergodot/hyper_gossip/hyper_gossip.gd +3 -0
……@@ -20,6 +20,8 @@ var requestQueue = []
2020var isRequesting = false
2121
2222func _ready():
23 randomize()
24
2325 add_child(peerListRequest)
2426 peerListRequest.connect("request_completed", self, "_on_peer_list")
2527
……@@ -73,6 +75,7 @@ func load_peers():
7375
7476func _generateEvent(type, data):
7577 var id = _make_id()
78 print("generateEvent ID : " + String(id) )
7679 seen_messages.track(id)
7780 return {
7881 "id": id,
player/ball/player_ball_controller.gd +2 -2
……@@ -51,11 +51,11 @@ func updateBallPhysicsMode() -> void:
5151 self.linear_velocity = Vector3(0, 0, 0)
5252 self.mode = RigidBody.MODE_STATIC
5353 elif(ball_physics_mode == BallPhysicsMode.ENGINE_PHYSICS_ROLL):
54 lBallPhysicsMode.text = "Engine Physics (Roll)"
54 lBallPhysicsMode.text = "Rolling"
5555 self.physics_material_override.friction = 1.0
5656 self.mode = RigidBody.MODE_RIGID
5757 else:
58 lBallPhysicsMode.text = "Engine Physics (Linear)"
58 lBallPhysicsMode.text = "Linear"
5959 self.physics_material_override.friction = 0.035
6060 self.mode = RigidBody.MODE_RIGID
6161
ui/debug/ball/ui_debug_ball.tscn +43 -23
……@@ -1,4 +1,7 @@
1[gd_scene format=2]
1[gd_scene load_steps=2 format=2]
2
3[sub_resource type="StyleBoxFlat" id=1]
4bg_color = Color( 0, 0, 0, 0.470588 )
25
36[node name="Control" type="Control"]
47anchor_right = 1.0
……@@ -7,66 +10,83 @@ __meta__ = {
710"_edit_use_anchors_": false
811}
912
10[node name="BallInfoContainer" type="GridContainer" parent="."]
11margin_left = 24.0
13[node name="Panel" type="Panel" parent="."]
14margin_left = 10.0
1215margin_top = 62.0
13margin_right = 629.0
14margin_bottom = 285.0
16margin_right = 373.0
17margin_bottom = 124.0
18custom_styles/panel = SubResource( 1 )
19__meta__ = {
20"_edit_use_anchors_": false
21}
22
23[node name="BallInfoMarginContainer" type="MarginContainer" parent="Panel"]
24margin_left = 4.0
25margin_top = 6.0
26margin_right = 147.0
27margin_bottom = 56.0
28__meta__ = {
29"_edit_use_anchors_": false
30}
31
32[node name="BallInfoContainer" type="GridContainer" parent="Panel/BallInfoMarginContainer"]
33margin_right = 143.0
34margin_bottom = 50.0
1535columns = 2
1636__meta__ = {
1737"_edit_use_anchors_": false
1838}
1939
20[node name="BallVelocity" type="Label" parent="BallInfoContainer"]
21margin_right = 139.0
40[node name="BallVelocity" type="Label" parent="Panel/BallInfoMarginContainer/BallInfoContainer"]
41margin_right = 111.0
2242margin_bottom = 14.0
23text = "Ball Velocity :"
43text = "Velocity :"
2444align = 2
2545__meta__ = {
2646"_edit_use_anchors_": false
2747}
2848
29[node name="BallVelocity_Value" type="Label" parent="BallInfoContainer"]
30margin_left = 143.0
31margin_right = 143.0
49[node name="BallVelocity_Value" type="Label" parent="Panel/BallInfoMarginContainer/BallInfoContainer"]
50margin_left = 115.0
51margin_right = 115.0
3252margin_bottom = 14.0
3353__meta__ = {
3454"_edit_use_anchors_": false
3555}
3656
37[node name="BallAngularVelocity" type="Label" parent="BallInfoContainer"]
57[node name="BallAngularVelocity" type="Label" parent="Panel/BallInfoMarginContainer/BallInfoContainer"]
3858margin_top = 18.0
39margin_right = 139.0
59margin_right = 111.0
4060margin_bottom = 32.0
41text = "Ball Angular Velocity :"
61text = "Angular Velocity :"
4262align = 2
4363__meta__ = {
4464"_edit_use_anchors_": false
4565}
4666
47[node name="BallAngularVelocity_Value" type="Label" parent="BallInfoContainer"]
48margin_left = 143.0
67[node name="BallAngularVelocity_Value" type="Label" parent="Panel/BallInfoMarginContainer/BallInfoContainer"]
68margin_left = 115.0
4969margin_top = 18.0
50margin_right = 143.0
70margin_right = 115.0
5171margin_bottom = 32.0
5272__meta__ = {
5373"_edit_use_anchors_": false
5474}
5575
56[node name="BallPhysicsMode" type="Label" parent="BallInfoContainer"]
76[node name="BallPhysicsMode" type="Label" parent="Panel/BallInfoMarginContainer/BallInfoContainer"]
5777margin_top = 36.0
58margin_right = 139.0
78margin_right = 111.0
5979margin_bottom = 50.0
60text = "Ball Physics Mode :"
80text = "Physics :"
6181align = 2
6282__meta__ = {
6383"_edit_use_anchors_": false
6484}
6585
66[node name="BallPhysicsMode_Value" type="Label" parent="BallInfoContainer"]
67margin_left = 143.0
86[node name="BallPhysicsMode_Value" type="Label" parent="Panel/BallInfoMarginContainer/BallInfoContainer"]
87margin_left = 115.0
6888margin_top = 36.0
69margin_right = 143.0
89margin_right = 115.0
7090margin_bottom = 50.0
7191__meta__ = {
7292"_edit_use_anchors_": false
ui/debug/hypercore/ui_debug_hypercore.tscn +21 -39
……@@ -41,39 +41,20 @@ __meta__ = {
4141"_edit_use_anchors_": false
4242}
4343
44[node name="Label" type="Label" parent="HypercoreDebugPanel/HypercoreDebugContainer"]
44[node name="GatewayStatus_Value" type="Label" parent="HypercoreDebugPanel/HypercoreDebugContainer"]
4545margin_left = 164.0
4646margin_top = 3.0
47margin_right = 364.0
47margin_right = 514.0
4848margin_bottom = 17.0
49__meta__ = {
50"_edit_use_anchors_": false
51}
52
53[node name="GatewayStatus" type="Label" parent="HypercoreDebugPanel/HypercoreDebugContainer"]
54margin_top = 24.0
55margin_right = 160.0
56margin_bottom = 38.0
57text = "Gateway Status :"
58align = 2
59__meta__ = {
60"_edit_use_anchors_": false
61}
62
63[node name="GatewayStatus_Value" type="Label" parent="HypercoreDebugPanel/HypercoreDebugContainer"]
64margin_left = 164.0
65margin_top = 24.0
66margin_right = 364.0
67margin_bottom = 38.0
6849text = "Not Running"
6950__meta__ = {
7051"_edit_use_anchors_": false
7152}
7253
7354[node name="GossipURL" type="Label" parent="HypercoreDebugPanel/HypercoreDebugContainer"]
74margin_top = 42.0
55margin_top = 24.0
7556margin_right = 160.0
76margin_bottom = 56.0
57margin_bottom = 38.0
7758text = "Gossip URL :"
7859align = 2
7960__meta__ = {
……@@ -82,42 +63,43 @@ __meta__ = {
8263
8364[node name="GossipURL_Value" type="Label" parent="HypercoreDebugPanel/HypercoreDebugContainer"]
8465margin_left = 164.0
85margin_top = 42.0
86margin_right = 364.0
87margin_bottom = 56.0
66margin_top = 24.0
67margin_right = 514.0
68margin_bottom = 38.0
8869text = "N/A"
8970
9071[node name="GossipUpdateRate" type="Label" parent="HypercoreDebugPanel/HypercoreDebugContainer"]
91margin_top = 61.0
72margin_top = 43.0
9273margin_right = 160.0
93margin_bottom = 75.0
74margin_bottom = 57.0
9475rect_min_size = Vector2( 160, 0 )
9576text = "Gossip in 1 Seconds :"
9677align = 2
9778
9879[node name="GossipUpdateRate_Value" type="HSlider" parent="HypercoreDebugPanel/HypercoreDebugContainer"]
9980margin_left = 164.0
100margin_top = 60.0
101margin_right = 364.0
102margin_bottom = 76.0
81margin_top = 42.0
82margin_right = 514.0
83margin_bottom = 58.0
10384rect_min_size = Vector2( 200, 0 )
104min_value = 0.25
85min_value = 0.1
10586max_value = 5.0
106step = 0.25
107value = 1.0
87step = 0.1
88value = 0.5
10889
10990[node name="GossipIPList" type="Label" parent="HypercoreDebugPanel/HypercoreDebugContainer"]
110margin_top = 80.0
91margin_top = 62.0
11192margin_right = 160.0
112margin_bottom = 94.0
93margin_bottom = 76.0
11394text = "Gossip ID List :"
11495align = 2
11596
11697[node name="GossipIDList_Value" type="ItemList" parent="HypercoreDebugPanel/HypercoreDebugContainer"]
11798margin_left = 164.0
118margin_top = 80.0
119margin_right = 364.0
120margin_bottom = 94.0
99margin_top = 62.0
100margin_right = 514.0
101margin_bottom = 76.0
102rect_min_size = Vector2( 350, 0 )
121103auto_height = true
122104
123105[connection signal="button_up" from="HypercoreDebugPanel/HypercoreDebugContainer/GatewayStartStopButton" to="." method="_on_GatewayStartStopButton_button_up"]