removed unneeded global variable

This commit is contained in:
Zachary King 2019-02-03 16:40:49 -06:00
parent b13a2c82ec
commit d611719af4
1 changed files with 1 additions and 2 deletions

View File

@ -16,7 +16,6 @@ import (
var clearColor = colornames.Skyblue
var tilemap *tmx.Map
var sprites []*pixel.Sprite
func gameloop(win *pixelgl.Window, tilemap *tmx.Map) {
@ -117,7 +116,7 @@ func run() {
panicIfErr(err)
// Initialize art assets (i.e. the tilemap)
tilemap, err = tmx.ReadFile("gameart2d-desert.tmx")
tilemap, err := tmx.ReadFile("gameart2d-desert.tmx")
panicIfErr(err)
fmt.Println("use WASD to move camera around")