Skip to content

Instantly share code, notes, and snippets.

Focusing on Game Development and University

flamendless flamendless

Focusing on Game Development and University
View GitHub Profile
View Generate Normal Map.lua
-- 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")
rm-code / ProFi.lua
Last active Mar 5, 2022 — forked from perky/ProFi.lua
Forked from ( || ProFi, a simple lua profiler that works with LuaJIT and prints a pretty report file in columns.
View ProFi.lua
ProFi v1.3, by Luke Perkin 2012. MIT Licence
Updated to v1.4 by Robert Machmer 2017
ProFi = require 'ProFi'
coroutine.resume( some_coroutine )
View tokenizer.lua
-- these have to be sorted by longest first
local keywords = {
local symbols = {
1bardesign / dialogue.lua
Created Jun 12, 2019
example dialogue system for love2d based on coroutines - runnable love file prepared here:
View dialogue.lua
--dialogue type
local dialogue = {}
dialogue._mt = {
__index = dialogue,
function dialogue:new(f)
return setmetatable({
View main.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")