Action game on development. currently testing on browser and wish to use JSB to iPhone app in the future.
My character has over 300 frames of actions. currently using a single sprite and set texture rect to focus on the correct ‘frame’
at first i have problem on iPhone 3G once the texture gone over 1024*1024. Not a problem, i don’t expect it to run on iPhone 3G.
Now the texture has reach another limit of 2048*2048. it will work on retina display devices, but i still want to add more frames (soon or later)
What should i do? i have couple of imagination here (don’t want to hugely modify my code just to test)
- split the texture? (can 1 sprite load multiple texture? will there be delay when i swap texture on play?)
currently using setTextureRect to call the fame, it is really smooth without delays
also currently the sprite is child of batchNode (so multiple character using same texture draws faster)
- just expend the texture source (canvas of the png) and hope device is getting better and better?