Final Game Jam version
This commit is contained in:
parent
35ce267482
commit
104a1e4297
141 changed files with 4485 additions and 206 deletions
15
scenes/timer/timer.gd
Normal file
15
scenes/timer/timer.gd
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
extends TextureRect
|
||||
|
||||
@onready var animationPlayer = $AnimationPlayer
|
||||
@onready var pointer = $pointer
|
||||
|
||||
func reset():
|
||||
pointer.rotation_degrees = -90
|
||||
animationPlayer.stop()
|
||||
|
||||
func setTime(currentTime: float, endTime: float):
|
||||
var newRotation = (100/(endTime/(endTime-currentTime)))*3.60-90
|
||||
if newRotation >= 180 and not animationPlayer.is_playing():
|
||||
animationPlayer.play("warning")
|
||||
|
||||
pointer.rotation_degrees = newRotation
|
||||
Loading…
Add table
Add a link
Reference in a new issue