Game over on collision with dino
This commit is contained in:
parent
23755f7970
commit
4985642acb
@ -113,6 +113,8 @@ func _process_collision():
|
|||||||
#Logger.debug("removing crystal...")
|
#Logger.debug("removing crystal...")
|
||||||
collision.collider.queue_free()
|
collision.collider.queue_free()
|
||||||
_interface.increaseScore()
|
_interface.increaseScore()
|
||||||
|
elif collision.collider.name == "Dino":
|
||||||
|
_interface.gameOver()
|
||||||
|
|
||||||
|
|
||||||
func _input(event):
|
func _input(event):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user