Cocos2D Infinite Background Picture

后端 未结 4 1017
清歌不尽
清歌不尽 2020-12-30 17:36

I\'m curious as to how to create an infinite background in cocos2d. For example lets say I was building an app with a man running from left to right, and I want him to run i

4条回答
  •  北海茫月
    2020-12-30 18:25

    CCTMXTiledMap can help you, but I'm afraid that you must handle end of map and add another manually. Check this tutorials how to use tiled maps in side-scrolling games, hope it will be useful for you:

    http://www.raywenderlich.com/15230/how-to-make-a-platform-game-like-super-mario-brothers-part-1

提交回复
热议问题