mirror of
https://github.com/mightypanders/GMTKJam2021.git
synced 2025-06-28 02:24:02 +02:00
player calculates score
This commit is contained in:
7
Playa.gd
7
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 = []
|
||||
|
Reference in New Issue
Block a user