mirror of
https://github.com/mightypanders/GMTKJam2021.git
synced 2025-01-30 21:59:55 +01:00
player calculates score
This commit is contained in:
parent
e6626fe60d
commit
31802c51ad
7
Playa.gd
7
Playa.gd
@ -42,9 +42,12 @@ func get_a_springjoint(parent,child):
|
|||||||
return springJoint
|
return springJoint
|
||||||
|
|
||||||
func get_score_from_guest(guest):
|
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):
|
func remove_Guests_from_Line(color):
|
||||||
|
|
||||||
var colormatches = []
|
var colormatches = []
|
||||||
|
Loading…
Reference in New Issue
Block a user