Pop Flamingo
Pop Flamingo

Reputation: 2191

Sprite Kit : Most efficient way to load a big map (like Limbo/Mario)

I am discovering Sprite Kit and Objective-C and I am wondering what is the most efficient way to load a big 2D map from the hard drive ? Should I load the whole map at the beginning ? Should I load the position of the elements on a table and display them when they need to be displayed ? Or is there an other method ?

Upvotes: 2

Views: 425

Answers (1)

user867635
user867635

Reputation:

You should use a Tile Map for that. It's much faster than loading and drawing the entire map. This tutorial explains how to do that. (Scroll down to "Loading the TMXTiledMap".)

Upvotes: 3

Related Questions