Resets player position at the start of a new level. Closes #12
This commit is contained in:
parent
5e587bc348
commit
1542837738
14
game.go
14
game.go
@ -86,17 +86,19 @@ func (game *Game) gameDirector() {
|
||||
// Clean the screen
|
||||
game.screen.Clear()
|
||||
|
||||
// Draw robots??
|
||||
if len(game.robots) == 0 {
|
||||
game.level++
|
||||
game.cleanTrash()
|
||||
game.resetPlayer()
|
||||
game.initRobots()
|
||||
}
|
||||
|
||||
// Draw starter conditions
|
||||
game.drawBox()
|
||||
game.drawPlayer()
|
||||
//game.drawCoords()
|
||||
|
||||
// Draw robots??
|
||||
if len(game.robots) == 0 {
|
||||
game.level++
|
||||
game.cleanTrash()
|
||||
game.initRobots()
|
||||
}
|
||||
game.drawRobots()
|
||||
|
||||
// Draw my ex-wife
|
||||
|
Loading…
x
Reference in New Issue
Block a user