Don't destroy ordering information in conv.ConvertObjects
This commit is contained in:
@@ -87,7 +87,7 @@ func main() {
|
||||
env := &env{
|
||||
gameMap: gameMap,
|
||||
set: mapSet,
|
||||
objects: objects,
|
||||
objects: conv.MapByName(objects),
|
||||
batch: batch,
|
||||
}
|
||||
|
||||
|
@@ -69,7 +69,7 @@ func main() {
|
||||
objects, spritesheet := conv.ConvertObjects(rawObjs)
|
||||
batch := pixel.NewBatch(&pixel.TrianglesData{}, spritesheet)
|
||||
|
||||
env := &env{objects: objects, set: mapSet, batch: batch}
|
||||
env := &env{objects: conv.MapByName(objects), set: mapSet, batch: batch}
|
||||
|
||||
// The main thread now belongs to pixelgl
|
||||
pixelgl.Run(env.run)
|
||||
|
Reference in New Issue
Block a user