Skip to content

Instantly share code, notes, and snippets.

View flamendless's full-sized avatar
🎯
Focusing on Game Development and University

flamendless flamendless

🎯
Focusing on Game Development and University
View GitHub Profile
----------------------------------------------------------------------
-- Generate Normal Map
--
-- It works only for RGB color mode.
----------------------------------------------------------------------
if app.apiVersion < 1 then
return app.alert("This script requires Aseprite v1.2.10-beta3")
end
-- these have to be sorted by longest first
local keywords = {
"function",
"then",
"end",
"if",
}
local symbols = {
@1bardesign
1bardesign / dialogue.lua
Created June 12, 2019 02:32
example dialogue system for love2d based on coroutines - runnable love file prepared here: https://www.dropbox.com/s/0n6vs634jzlk266/dialogue_co.love
--dialogue type
local dialogue = {}
dialogue._mt = {
__index = dialogue,
}
function dialogue:new(f)
return setmetatable({
@1bardesign
1bardesign / main.lua
Created November 13, 2018 00:10
recolour.lua
--[[
example use
]]
local recolour = require("recolour")
--we want to recolour this asset image
local to_recolour = love.image.newImageData("path/to/image.png")
--using this palette image
local palette = love.image.newImageData("path/to/palette.png")