From cffac12303402c3bfd2d7eb8ab982bdaa86bd72d Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 21 Apr 2024 23:07:10 +0100 Subject: hold r to rewind --- objects.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'objects.go') diff --git a/objects.go b/objects.go index 0bc8b62..e24e331 100644 --- a/objects.go +++ b/objects.go @@ -225,7 +225,9 @@ func OnCollideSpring(this, other *GameObject) bool { } func OnCollideSpike(this, other *GameObject) bool { - other.game.ResetAll() + if other == this.game.player { + other.game.ResetAll() + } return true } -- cgit v1.2.1