This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# Main | |
| -- Grass | |
| function setup() | |
| displayMode(FULLSCREEN) | |
| R,H = 40,1 | |
| base = mesh() | |
| base.vertices = { | |
| vec3(-1,0,-1), vec3(1,0,-1), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# Main | |
| -- Formation | |
| function setup() | |
| displayMode(FULLSCREEN) | |
| physics.gravity(0,0) | |
| touches = {} | |
| items = {} | |
| ships = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 4 play | |
| -- Use this function to perform your initial setup | |
| function setup() | |
| displayMode(FULLSCREEN) | |
| createPitchTable() | |
| parameter.integer("X", 1,10,1,play) | |
| song = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# 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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# Main | |
| supportedOrientations(LANDSCAPE_ANY) | |
| myimage = image(WIDTH,HEIGHT) | |
| setContext(myimage) | |
| function setup() | |
| --backingMode(RETAINED) | |
| toolbox = ToolBox() |