Skip to content

Instantly share code, notes, and snippets.

--# Main
-- Slices
function setup()
displayMode(FULLSCREEN)
parameter.number("Limit",0,1,.1)
parameter.integer("LowSlice",-80,80,-80)
parameter.integer("HighSlice",-80,80,80)
R = 0
--# Main
-- Grass
function setup()
displayMode(FULLSCREEN)
R,H = 40,1
base = mesh()
base.vertices = {
vec3(-1,0,-1), vec3(1,0,-1),
@Techdojo
Techdojo / IsoSphere
Last active August 29, 2015 14:09 — forked from tnlogy/IsoSphere
--# Main
-- IsoSphere
-- Use this function to perform your initial setup
function setup()
parameter.integer("Divisions", 0,5,1, createSphere)
parameter.number("H",-10,10,0)
R = 0
end
@Techdojo
Techdojo / Formation
Last active August 29, 2015 14:09 — forked from tnlogy/Formation
--# Main
-- Formation
function setup()
displayMode(FULLSCREEN)
physics.gravity(0,0)
touches = {}
items = {}
ships = {}
-- 4 play
-- Use this function to perform your initial setup
function setup()
displayMode(FULLSCREEN)
createPitchTable()
parameter.integer("X", 1,10,1,play)
song = {
--# Main
-- 2 Face
function parseObjFormat(data)
local avs, ans, auvs = {},{},{}
local f = "%s(\-?%d*[\.]%d+)"
for x,y,z in string.gmatch(data, "v" .. f .. f .. f) do
table.insert(avs,
--# Notes
--[[
ROTATION WITH QUATERNIONS AND FLYING
This project demonstrates the use of quaternions to rotate objects and fly them
The Main tab only contains code to help you choose from a number of demo projects. You will not need it in
your own projects.
@Techdojo
Techdojo / Terrain.lua
Last active August 29, 2015 14:11 — forked from tnlogy/Terrain.lua
--# Main
-- Terrain
function setup()
displayMode(FULLSCREEN)
forward, right, up = vec3(0,0,1), vec3(-1,0,0), vec3(0,1,0)
t = Terrain()
A = 0
end
-- Class EnemyHorde
-- Speed Shooting Earth
-- A freesource game project using Codea and Google Maps
-- More games: xixgames.com
-- by @juaxix
-- 6/6/2012
ENEMY_SPAWN_EASY = 0
ENEMY_SPAWN_HARD = 1
@Techdojo
Techdojo / Harmony.lua
Last active August 29, 2015 14:11 — forked from juaxix/Harmony.lua
--# Main
supportedOrientations(LANDSCAPE_ANY)
myimage = image(WIDTH,HEIGHT)
setContext(myimage)
function setup()
--backingMode(RETAINED)
toolbox = ToolBox()