![]() Like I said, even though this is a Texture Packer tutorial, I wanted to show you an example of this working in an actual game, so we’ll be using Cocos2D for that. If you’re curious to learn more about Cocos2D, check out some of our other Cocos2D tutorials. If you are new to Cocos2D, you can still follow along with this Texture Packer tutorial, but there may be some missing gaps in your knowledge about Cocos2D itself as the focus will be on TexturePacker. This Texture Packer tutorial will show you how to use Texture Packer to create and optimize sprite sheets in your games, using a Cocos2D 2.X game as an example.Īlong 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! When making 2D games, it’s important to combine your sprites into large images called sprite sheets, in order to get the best performance for your games.Īnd Texture Packer is a great tool that makes it extremely easy to generate these sprite sheets – with the click of a button. Update : Fully updated for Cocos2D 2.1-rc0a, Texture Packer 3.07, and Modern Objective-C style (original post by Ray Wenderlich, update by Tony Dahbura). Much more important are time and inspiration.Optimize texture usage with Texture Packer and Pixel Formats! ![]() The memory is only one (and the least important) reason to use tools like TexturePacker. Its a complexity to memory saved ratio that doesn't make sense to most indie developers. No, we are using the algorithms which deploy our sprites efficiency to multiple spritesheets. Most people aren't constructing huge sprite-sheets. If I don't I wouldn't be using a spritesheet creator, I'd lay my pics down. Likewise, you don't need to make placement that complex at all. It's an unusable alternative for an open-sourced project. But, why I, as a graphic designer, must share a Propellerheads Reason with a music designer?! ![]() Yes, and Reason is much more difficult to share. It's difficult to share with team members It's closed if you want to hack it with Python and PIL. You're basically arguing why use Photoshop when you have DirectX. They're not designed to achieve the same thing. Once the texture is packed, you would ideally also keep the meta-data about the image that you can feed into your engine so that it is aware of what sprites map to what parts of the image - writing a general solution for this is also impossible (since people all do this differently.) Ideally, like I said above, the metadata would be exported as XML, then it could be transformed with XSLT to a desired format. But you really need an automated script with lots of fidelity when you're dealing with a huge bulk of frames organized in a non-standard way (that is to say, there is no widely accepted standard way of organizing the frames of a rendered isometric image and so constructing a general solution for that is incredibly difficult.) Texture-packer etc are good for small sprite-sheets or sets of sprite-sheets. Using Texture-packer (or any command line utility) would make doing this incredibly tedious - they do not map in a compatible fashion to the directory structure I had to use, the naming conventions used etc. That's over several thousand frames that need to be compiled into individual sprite-sheets (on a per action basis.) Each frame was rendered into a separate png. Each character was rendered at 8 different angles for ~13 different actions. For example, my use case was transforming a bunch of rendered images (for an isometric game.) However IMO it still lacks the fidelity you get with Python and Wand. ![]() Feedback Friday Screenshot Saturday Soundtrack Sunday Marketing Monday WIP Wednesday Daily Discussion Quarterly Showcase Related communities 1 For questions, get in touch with mods, we're happy to help you. Free assets OK, be sure to specify license. If you need to use screenshots, that's ok so long as is illustrates your issues.ĭo not solicit employment. Use discord, /r/indiegames, /r/playmygame or /r/gamedevscreens.īe specific about your question. Feedback, praise, WIP, screenshots, kickstarters, blogs, memes, "play my game", twitch streams.
0 Comments
Leave a Reply. |