From 8ce2273acb81bd4e5266b513f3628032bbfc10bc Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 23 Apr 2024 21:33:38 +0100 Subject: make exit not movable again afterwards --- level.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'level.go') diff --git a/level.go b/level.go index 6b00cc6..726f760 100644 --- a/level.go +++ b/level.go @@ -293,6 +293,8 @@ func StartLevel6(g *Game) { g.exit.startx = 2 * tileSize g.exit.starty = 8 * tileSize + g.exit.movable = false + g.ResetAll() g.playerAi = g.playerAi[:0] @@ -460,7 +462,7 @@ func StartLevel8(g *Game) { func StartLevel9(g *Game) { g.SetPlacing() - noMoveable(g) + //noMoveable(g) g.toPlace = append(g.toPlace, NewVPlatform(g, 0, 0)) g.toPlace = append(g.toPlace, NewBox(g, 0, 0)) g.toPlace = append(g.toPlace, NewSpring(g, 0, 0)) -- cgit v1.2.1