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 | |
-- Main | |
function setup() | |
if Backup then Backup("TrackDemo 200") end | |
t=Track3() | |
parameter.boolean("Rays",true) | |
end | |
function draw() |
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
-- Grass | |
-- Use this function to perform your initial setup | |
function setup() | |
field = mesh() | |
--field.shader = shader("Documents:Grass") | |
field.shader = shader(GrassShader.vertexShader, GrassShader.fragmentShader) | |
bladeWidth = 0.15 | |
bladeHeight = 1.5 | |
midWeight = 0.4 |
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 | |
-- Light Map | |
-- Use this function to perform your initial setup | |
function setup() | |
displayMode(FULLSCREEN) | |
--initialise the world | |
world = World() | |
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 | |
-- 0 UI | |
-- Use this function to perform your initial setup | |
function setup() | |
displayMode(FULLSCREEN) | |
local p1 = UI.Pad({0,100,200,200}) | |
local p2 = UI.Pad({550,100,200,200}) | |
local shipPos = UI.Item({500,500,scale=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 | |
-- 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
--- This will pull the Gister project into Codea for you | |
-- Instructions: | |
-- * Create a new project in Codea named Gister, leave it empty | |
-- * Create another project to bootstrap (name doesn't matter) | |
-- * Paste this into the Main (not from the raw view, as iSafari will escape special characters) | |
-- * Run, run again, then delete the bootstrap project | |
-- If all went well, you should have a Gister project now | |
function getJsonLib() | |
local tabs = listProjectTabs() |
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 | |
-- 0 fourmi | |
-- copyright JMV38 2013 - all rights reserved | |
displayMode(FULLSCREEN) | |
supportedOrientations(LANDSCAPE_ANY) | |
function setup() | |
-- codea settings |
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
--DropBox features | |
--This code allows an application to register with DropBox and perform file functions. | |
--There are 3 steps to getting a NEW app registed to a DropBox folder: | |
--1: get a request token. this says, "I'm going to request access" | |
--2. have the USER authorize. This proves that a human is choosing to do the request | |
--3. get a "real" token and secret (password) to access DropBox. This is what we want | |
-- to save, so we can access DropBox in the future without re-registering. | |
DropBox = class() | |
--We allow the developer to set these. These are the app Key and app Secret, |
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
-- Copyright 2012 Javier Moral | |
-- | |
-- Licensed under the Apache License, Version 2.0 (the "License"); | |
-- you may not use this file except in compliance with the License. | |
-- You may obtain a copy of the License at | |
-- | |
-- http://www.apache.org/licenses/LICENSE-2.0 | |
-- | |
-- Unless required by applicable law or agreed to in writing, software | |
-- distributed under the License is distributed on an "AS IS" BASIS, |