![]() ![]() Note you don’t have to buy anything – for the purposes of this tutorial you can use the free download. The first thing you need to do is download a free copy of Texture Packer. Ok, now that you have a project template and some sample art to work with, time to make a sprite sheet using Texture Packer! Creating a Sprite Sheet with Texture Packer Download this sample artwork I gathered together, and after you unzip it, drag the entire directory as a subfolder of your TextureFun project folder, as shown in the image below. Next, you’ll need some images to make some sprite sheets with. Once you’ve got that installed, start up XCode and make a new project with the Cocos2D Application template, and name the project TextureFun. It’s important to have the latest version, because the new version adds support for a new image format which you’ll be using later on in this article. Getting Startedįirst, make sure that you have the latest version of Cocos2D installed (at the time of writing this article, Cocos2D v0.99.5-rc1). If you are new to Cocos2D, you should start with the How To Create A Simple iPhone App series and some of the other cocos2d tutorials. ![]() This tutorial is intended for those who are already familiar with Cocos2D. I didn’t promise a blog post in return, but after using it a bit to help reduce the memory load for one of my apps I’ve fallen in love with the tool, so wanted to tell you guys about it! Along the way, you’ll learn how to use pixel formats and Texture Packer wisely to make sure your games launch quickly, run smoothly, and use as little memory as possible – while still looking good!įull disclosure: I received a complimentary license key to check out Texture Packer from its author, Andreas Low. This article will start with a tutorial showing you how to use Texture Packer in your Cocos2D games. It’s similar to Zwoptex in that it can create sprite sheets, but it has some amazing new features that come in really handy! However, there’s a new kid in town called Texture Packer. Zwoptex is a great tool – I have used it in many apps and it has saved me a ton of time! If you’ve used Cocos2D for a while, you may have used a tool called Zwoptex that helps you make sprite sheets. In Cocos2D, it’s important to combine your sprites into large images called sprite sheets, in order to get the best preformance for your games. Optimize texture usage with Texture Packer and Pixel Formats!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |