Skip to content

Instantly share code, notes, and snippets.

View NulllStack's full-sized avatar
👋

NulllStack

👋
  • Zhuhai
  • 13:11 (UTC +08:00)
View GitHub Profile
@AustinEast
AustinEast / Outline.hx
Last active September 27, 2025 21:44
HaxeFlixel Pixel-Perfect Outline Shader
import flixel.system.FlxAssets.FlxShader;
import flixel.util.FlxColor;
class Outline extends FlxShader
{
@:glFragmentSource('
#pragma header
uniform vec2 size;
uniform vec4 color;
@jasonbradley
jasonbradley / jsonStorage.lua
Created December 15, 2012 05:28
Lua read/write data in JSON format
-- load the JSON library.
local Json = require("json")
local JsonStorage = {}
-- Function to save a table.  Since game settings need to be saved from session to session, we will
-- use the Documents Directory
JsonStorage.saveTable = function(t, filename)
local path = system.pathForFile( filename, system.DocumentsDirectory)
local file = io.open(path, "w")