Skip to content

Instantly share code, notes, and snippets.

@GlueBalloon
GlueBalloon / ChoiceItem.lua
Last active Apr 10, 2021 — forked from JMV38/1aTabOrder
Codea 2D Mesh Creator by Jmv38
View ChoiceItem.lua
--# 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)
View YojimboDrawWithDice.txt
--# Main
-- MakeDice
function setup()
colorPicker = SwipeColorPicker()
colorPicker.position.x, colorPicker.position.y = 50, 50
makeDice = MakeDice()
usingMiniBufferAndOverlay = false
texture = makeDice.mesh.texture
View ComplexShaderLife.txt
--# 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 / DoubleChoose.txt
Last active Sep 1, 2015
Double choose kid's adventure game
View DoubleChoose.txt
--# 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 / Box maze.txt
Last active Mar 18, 2021
Xavier-tile-box-maze
View Box maze.txt
--# Main
-- Use this function to perform your initial setup
displayMode(OVERLAY)
supportedOrientations(LANDSCAPE_ANY)
function setup()