Skip to content

Instantly share code, notes, and snippets.

@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 = {}
@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
--# Main
-- Grass
function setup()
displayMode(FULLSCREEN)
R,H = 40,1
base = mesh()
base.vertices = {
vec3(-1,0,-1), vec3(1,0,-1),
--# 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
@Techdojo
Techdojo / ImageTools.h
Last active August 29, 2015 14:09 — forked from tnlogy/ImageTools.h
//
// ImageTools.h
// FaceDetection
//
// Created by Tobias Teleman on fredag 12 april 2013
// Copyright (c) Tobias Teleman. All rights reserved.
//
#import <Foundation/Foundation.h>
@Techdojo
Techdojo / 3D touch.lua
Last active August 29, 2015 14:09 — forked from tnlogy/3D touch.lua
--# Main
function setup()
displayMode(FULLSCREEN)
sky = Skybox()
forward, right, up = vec3(0,0,-1), vec3(1,0,0), vec3(0,1,0)
rays = {}
-- creating some random triangles to hit
tris = {}
@Techdojo
Techdojo / Terrain.lua
Last active August 29, 2015 14:09 — 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
@Techdojo
Techdojo / Terrain2.lua
Last active August 29, 2015 14:09 — forked from tnlogy/Terrain2.lua
--# Main
-- Terrain
function setup()
displayMode(FULLSCREEN)
forward, right, up = vec3(0,0,1), vec3(-1,0,0), vec3(0,1,0)
pos = vec3(0,100,0)
t = Terrain()
A = 0
--# Main
-- Infinite Grid
function setup()
displayMode(FULLSCREEN)
g = Grid()
end
--# Main
function setup()
parameter.boolean("FILL")
parameter.integer("RANGE", 1,20,3)
parameter.boolean("LINE")
parameter.boolean("FOV")
parameter.boolean("MOVE")
hs = Hexagons():createMesh():set(0,0,color(207, 67, 67))
u = Unit(hs:pos(0,0))