From d611719af4bd8e8a3628b753585c34532e7fef91 Mon Sep 17 00:00:00 2001 From: Zachary King Date: Sun, 3 Feb 2019 16:40:49 -0600 Subject: [PATCH] removed unneeded global variable --- community/tilemap/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/community/tilemap/main.go b/community/tilemap/main.go index eee4291..d68691f 100644 --- a/community/tilemap/main.go +++ b/community/tilemap/main.go @@ -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")