Skip to content

Instantly share code, notes, and snippets.

@wilbefast
Last active August 29, 2015 14:20
Show Gist options
  • Save wilbefast/c6c8f6c98c57bf2d871d to your computer and use it in GitHub Desktop.
Save wilbefast/c6c8f6c98c57bf2d871d to your computer and use it in GitHub Desktop.
ByNumbers example usage
love.load = function()
-- prepare team-colour palettes
bynumbers.addPalette("assets/bynumbers/red.png")
bynumbers.addPalette("assets/bynumbers/blue.png")
bynumbers.addPalette("assets/bynumbers/green.png")
bynumbers.addPalette("assets/bynumbers/yellow.png")
-- create the sprite pack
foregroundb = fudge.new("assets/foreground", {
npot = false,
preprocess_images = { bynumbers.paint }
})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment