From 31802c51ad3c6fb6a78ce4ee480fda36bcafde86 Mon Sep 17 00:00:00 2001 From: mightypanders Date: Sat, 12 Jun 2021 23:28:39 +0200 Subject: [PATCH] player calculates score --- Playa.gd | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Playa.gd b/Playa.gd index 74c31ac..f8b95f0 100644 --- a/Playa.gd +++ b/Playa.gd @@ -42,9 +42,12 @@ func get_a_springjoint(parent,child): return springJoint func get_score_from_guest(guest): + var now = OS.get_system_time_msecs() + var diff = now - guest.pickup_time + var score = diff / 1000 + score = 50 - score + return score - return 1 - func remove_Guests_from_Line(color): var colormatches = []