package main func drawPlayer(game *Game) { game.screen.SetContent(game.player.position.x, game.player.position.y, '@', nil, game.style) } func movePlayer(game *Game, press int) { if press == Left { if game.player.position.x != 2 { game.player.position.x-- } } else if press == Right { if game.player.position.x != 78 { game.player.position.x++ } } else if press == Up { if game.player.position.y != 1 { game.player.position.y-- } } else if press == Down { if game.player.position.y != 22 { game.player.position.y++ } } } func telePort(game *Game) { // Draw something nice }