Don't destroy ordering information in conv.ConvertObjects
This commit is contained in:
@@ -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