summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--level.go4
-rw-r--r--main.go2
2 files changed, 4 insertions, 2 deletions
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))
diff --git a/main.go b/main.go
index 84ea5b8..848f2f1 100644
--- a/main.go
+++ b/main.go
@@ -426,7 +426,7 @@ func (g *Game) UpdatePlacing() {
for i := len(g.objects)-1; i >= 0; i-- {
obj := g.objects[i]
obj.Update(*g.tilemap, g.objects)
- if obj.y > screenHeight {
+ if obj.y > screenHeight && obj != g.player{
g.toPlace = append(g.toPlace, obj)
g.RemoveObject(obj)
}