Skip to content

Instantly share code, notes, and snippets.

@GlueBalloon
GlueBalloon / Box maze.txt
Last active March 18, 2021 05:11
Xavier-tile-box-maze
--# Main
-- Use this function to perform your initial setup
displayMode(OVERLAY)
supportedOrientations(LANDSCAPE_ANY)
function setup()
@GlueBalloon
GlueBalloon / DoubleChoose.txt
Last active May 10, 2021 15:15
Double choose kid's adventure game
--# Main
-- Main
saveProjectInfo( "Description", "Two-choice Adventure Games by Rosie and Charlotte." )
--**NOTE** Assets can be found at:
--https://www.dropbox.com/sh/hg5cplngi7v7268/AAA8ezcK_ZJk2gZNF52sAvL_a?dl=0
--**project will not run without these in the project folder**
--[[
@GlueBalloon
GlueBalloon / ComplexShaderLife.txt
Last active September 10, 2015 20:55
Complex Shader Life
--# Main
displayMode(FULLSCREEN)
function setup()
showBuffer = true
readPixelCode = true
local w,h = WIDTH,HEIGHT
local w,h = 20,20
source = image(w,h)
@GlueBalloon
GlueBalloon / YojimboDrawWithDice.txt
Last active September 11, 2015 16:03
YojimboDrawWithDice
--# Main
-- MakeDice
function setup()
colorPicker = SwipeColorPicker()
colorPicker.position.x, colorPicker.position.y = 50, 50
makeDice = MakeDice()
usingMiniBufferAndOverlay = false
texture = makeDice.mesh.texture
@GlueBalloon
GlueBalloon / ChoiceItem.lua
Last active April 10, 2021 20:14 — forked from JMV38/1aTabOrder
Codea 2D Mesh Creator by Jmv38
--# ChoiceItem
ChoiceItem = class(XFC.MenuItem)
XFC.itemClass["choice"] = ChoiceItem
function ChoiceItem:init(data)
-- this item is a button to make choices
-- special fields of data:
-- data.choices = table of choice elements: {txt="comment",value=v,iconLetter=nil}
-- (iconLetter is optionnal)