Ver Fonte

Move printing around, gives a more accurate result.

Sacha Ligthert há 2 anos atrás
pai
commit
f0ad3157f3
1 ficheiros alterados com 4 adições e 2 exclusões
  1. 4 2
      game.go

+ 4 - 2
game.go

@@ -87,10 +87,8 @@ func (game *Game) gameDirector() {
 
 		// Draw starter conditions
 		game.drawBox()
-		game.drawScore()
 		game.drawPlayer()
 		//game.drawCoords()
-		game.drawDebug()
 
 		// Draw robots??
 		if len(game.robots) == 0 {
@@ -103,6 +101,10 @@ func (game *Game) gameDirector() {
 		// Draw my ex-wife
 		game.drawTrash()
 
+		// Draw stuff last
+		game.drawScore()
+		game.drawDebug()
+
 		// Draw the screen
 		game.screen.Show()