Fudge - A lövely texture packer

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Gaeel
Prole
Posts: 4
Joined: Thu Jun 05, 2014 8:12 pm
Location: Lille, France
Contact:

Fudge - A lövely texture packer

Post by Gaeel »

Fudge

Image
Quick title-screen thrown together, all textures are on one spritesheet (ground, title, imp, soul and random junk that I added in to test the system)
Credits to my colleagues Wilbefast and Shapter who are working on Soul Harvest

For those of you who do sprite-heavy games and would like to use some sweet, sweet spritebatching, or just more flexible animation and stuff, you might find yourself wanting to have nicely packed textures and a juicy way to manipulate them.

So I started a project during Mini-Ludum Dare #51 "Tool Jam", with this in mind.

It's far from stable API, and further from feature-complete, but you can get it here, and I'll let you guys know when it's a bit tighter: https://github.com/Bradshaw/Fudge

This is the kind of image it outputs, alongside all the metadata necessary to be useful :
Image
Image produced by dumping images from a bunch of different projects into fudge

Features:
  • Smart (enough) packing for efficient graphics-memory usage
  • Monkey-patched love.graphics.draw for sweet easy code
  • Automatic quad and spritebatch management
  • Automatic animation management
  • Optional NPOT canvases for modern hardware <3
  • Export to image and LON (Lua had a baby with JSON)
Coming soon
  • Export to JSON and XML for use with other engines
  • A standalone texture packer
  • More animation tools (generate from filenames, dedicated methods, etc...)
  • Anti-texturebleed padding for scaled/rotated drawing
If you have any questions or ideas, let me know.
I don't think this is quite ready to be used in a big project, and it'll need documenting too, but take a look at the main.lua and see if you think that this kind of thing would be fun to use ;)
Attachments
Generated by fudge
Generated by fudge
souls.png (91.67 KiB) Viewed 5766 times
everything moves
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: Fudge - A lövely texture packer

Post by Roland_Yonaba »

This sounds like a nice tool. Thanks for the work.
Maybe it will get more visibility if posted in the "Projects and demos" section ?
User avatar
pgimeno
Party member
Posts: 3548
Joined: Sun Oct 18, 2015 2:58 pm

Re: Fudge - A lövely texture packer

Post by pgimeno »

Since the repository is gone, I have set up a mirror here: https://notabug.org/pgimeno/fudge
User avatar
Gaeel
Prole
Posts: 4
Joined: Thu Jun 05, 2014 8:12 pm
Location: Lille, France
Contact:

Re: Fudge - A lövely texture packer

Post by Gaeel »

Woop, yeah, sorry, I took it down because I'm not happy with the name any more
If anyone has a recommendation for a fun name, I'd be happy to put it back up on Github and/or my own repository host
everything moves
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 97 guests