diff options
author | nokoe <nokoe@mailbox.org> | 2024-06-27 18:23:24 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2024-06-27 18:23:24 +0200 |
commit | 2e044d142897038b18ff95fa6087064fc4ff3d89 (patch) | |
tree | 20e22bb42762e5e5d4d55e849da05840695f47a0 | |
parent | 5a94633c97363779ba05f02c8d1a88ddbbf21707 (diff) | |
download | hurrycurry-2e044d142897038b18ff95fa6087064fc4ff3d89.tar hurrycurry-2e044d142897038b18ff95fa6087064fc4ff3d89.tar.bz2 hurrycurry-2e044d142897038b18ff95fa6087064fc4ff3d89.tar.zst |
implement score
-rw-r--r-- | client/map/map.gd | 1 | ||||
-rw-r--r-- | client/map/map.tscn | 1 | ||||
-rw-r--r-- | client/multiplayer.gd | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/client/map/map.gd b/client/map/map.gd index 63527743..49df1ce3 100644 --- a/client/map/map.gd +++ b/client/map/map.gd @@ -56,4 +56,5 @@ func gi_bake_blocking(): print("Baking now!") var start = Time.get_ticks_msec() voxelgi.bake() + voxelgi.visible = true print("Bake done. elapsed=", Time.get_ticks_msec() - start) diff --git a/client/map/map.tscn b/client/map/map.tscn index cd08e416..0f8e4702 100644 --- a/client/map/map.tscn +++ b/client/map/map.tscn @@ -13,5 +13,6 @@ script = ExtResource("1_3en0a") one_shot = true [node name="VoxelGI" type="VoxelGI" parent="."] +visible = false camera_attributes = SubResource("CameraAttributesPractical_kwk4i") data = SubResource("VoxelGIData_m5j5n") diff --git a/client/multiplayer.gd b/client/multiplayer.gd index ecb987d6..eb85898c 100644 --- a/client/multiplayer.gd +++ b/client/multiplayer.gd @@ -42,6 +42,7 @@ signal remove_player_item(player: int) signal set_progress(tile: Vector2i, progress: float, warn: bool) signal set_finished(tile: Vector2i, warn: bool) signal set_ingame(state: bool) +signal score(demands_failed: int, demands_completed: int) signal connection_closed(reason: String) @@ -171,6 +172,9 @@ func handle_packet(bytes: PackedByteArray): "error": var message = decoded["message"] push_warning("server error: %s" % message) + "score": + var demands_failed: int = decoded["demands_failed"] + var demands_completed: int = decoded["demands_completed"] _: push_error("Unrecognized packet type: %s" % packet_type) |