Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Sprite Sheets For Developers On A Budget
Started by roaminggamer Dec 06 2017 11:27 AM

3 replies to this topic
release
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,585 posts
  • Corona SDK

Plugin: https://marketplace.coronalabs.com/plugin/texture-packer-helpers

Docs: https://roaminggamer.github.io/RGDocs/pages/Plugins/texturepackerhelpers/#texture-packer-helpers

Samples: https://github.com/roaminggamer/RG_FreeStuff/raw/master/myPluginSamples/texturepackerhelpers/sample.zip

 

I think that most developer here will recognize that Texture Packer by CodeAndWeb is the #1 go-to-solution for packing textures into Sprite Sheets.

 

However, they will also recognize that many developers are on a limited or zero-dollar budget.  So, while I strongly suggest that you buy and use Texture Packer if you can afford it, I don't look down on folks who simply can't afford it. 

 

In fact, I want to help them.

 

This is the release announcement for a low-cost ($5) plugin that was inspired by this threadInitially I strongly suggested that the user pay for Texture Packer, but eventually I realized I was wrong to push so hard.

 

Use Any Of Four Sprite Sheet (Texture Packing) Tools

This plugin allows you to create sprite sheets with these four tools:

Write The 'Same' Code

Then write essentially the same code to load and use them for making: image sheets, images, and sprites.

 

For example, this is the code to create a new image sheet using the four different tool outputs:

-- Create Image Sheet with Texture Packer Sprite Sheet
local sheet = helper.newImageSheet( { definition = "slots", image = "slots.png" } )

-- Create Image Sheet with ShoeBox Sprite Sheet
local sheet = helper.newImageSheet( { definition = "slots", image = "slots.png"} )

-- Create Image Sheet with Texture Free Texture Packer 0.2.4 Sprite Sheet
local sheet = helper.newImageSheet( { definition = "slots.json", image = "slots.png" } )

-- Create Image Sheet with Leshy Sprite Tool Sprite Sheet
local sheet = helper.newImageSheet( { definition = "slots.txt",  image = "slots.png" } )

The plugin is fully documented here and comes with step-by-step instructions on how to export your sprite sheets with each tool, including images (some shown below).

 

texturePacker1.png

 

shoeBox1.png

 

freeTexturePacker2.png

 

leshy2.png


Edited by roaminggamer, 10 December 2017 - 04:08 PM.

  • Michael Flad and remiduchalard like this

[TOPIC: post.html]
#2

anaqim

[GLOBAL: userInfoPane.html]
anaqim
  • Contributor

  • 770 posts
  • Corona SDK

great initiative!

well done  :)



[TOPIC: post.html]
#3

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,585 posts
  • Corona SDK



[TOPIC: post.html]
#4

seha.yetginer

[GLOBAL: userInfoPane.html]
seha.yetginer
  • Observer

  • 5 posts
  • Corona SDK

Plugin: https://marketplace.coronalabs.com/plugin/texture-packer-helpers

Docs: https://roaminggamer.github.io/RGDocs/pages/Plugins/texturepackerhelpers/#texture-packer-helpers

Samples: https://github.com/roaminggamer/RG_FreeStuff/raw/master/myPluginSamples/texturepackerhelpers/sample.zip

 

I think that most developer here will recognize that Texture Packer by CodeAndWeb is the #1 go-to-solution for packing textures into Sprite Sheets.

 

However, they will also recognize that many developers are on a limited or zero-dollar budget.  So, while I strongly suggest that you buy and use Texture Packer if you can afford it, I don't look down on folks who simply can't afford it. 

 

In fact, I want to help them.

 

This is the release announcement for a low-cost ($5) plugin that was inspired by this threadInitially I strongly suggested that the user pay for Texture Packer, but eventually I realized I was wrong to push so hard.

 

Use Any Of Four Sprite Sheet (Texture Packing) Tools

This plugin allows you to create sprite sheets with these four tools:

Write The 'Same' Code

Then write essentially the same code to load and use them for making: image sheets, images, and sprites.

 

For example, this is the code to create a new image sheet using the four different tool outputs:

-- Create Image Sheet with Texture Packer Sprite Sheet
local sheet = helper.newImageSheet( { definition = "slots", image = "slots.png" } )

-- Create Image Sheet with ShoeBox Sprite Sheet
local sheet = helper.newImageSheet( { definition = "slots", image = "slots.png"} )

-- Create Image Sheet with Texture Free Texture Packer 0.2.4 Sprite Sheet
local sheet = helper.newImageSheet( { definition = "slots.json", image = "slots.png" } )

-- Create Image Sheet with Leshy Sprite Tool Sprite Sheet
local sheet = helper.newImageSheet( { definition = "slots.txt",  image = "slots.png" } )

The plugin is fully documented here and comes with step-by-step instructions on how to export your sprite sheets with each tool, including images (some shown below).

 

texturePacker1.png

 

shoeBox1.png

 

freeTexturePacker2.png

 

leshy2.png

 

The Marketplace link is broken, this will be the right one.

 

Seha




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: release