Milestone 7 Beta 1

Redid the entire serverside and clientside, matchmaking is finally out, bugfixes.
This commit is contained in:
patrick_pluto 2024-08-08 21:49:24 +02:00
commit 699320353a
16 changed files with 324 additions and 266 deletions

View file

@ -20,9 +20,10 @@ func _ready():
Game.computers += 1
func _on_computer_tick_timeout():
if Server.is_server:
if Game.is_server:
current += (pc_occupied[0] + pc_occupied[1] + pc_occupied[2])
Server.sync_computers.rpc(name, current)
for id in Game.player_list:
Client.rpc_id(id,"sync_computers",name, current)
if current >= TARGET:
current = "Complete"
$computer_tick.stop()