This file contains 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 | |
-- Physics Sandbox | |
-- Use this function to perform your initial setup | |
function setup() | |
displayMode(FULLSCREEN) | |
lineCapMode(PROJECT) | |
debugDraw = PhysicsDebugDraw() | |
--1 is max bouncyness, 0 is no bounce |
This file contains 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 | |
-- Use this function to perform your initial setup | |
function setup() | |
displayMode(STANDARD) | |
availableTests = { Test2(), Test1() } | |
currentTest = availableTests[1] |
This file contains 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
-- 3d sin | |
-- todo project touch to y=0 plane... | |
-- Use this function to perform your initial setup | |
function setup() | |
gridSize = 30 | |
--displayMode(FULLSCREEN) | |
parameter.number("speed", 0, 1,0.2) |
This file contains 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 | |
-- Cube | |
function setup() | |
parameter.number("ambient", 0, 1, 0.1) | |
parameter.number("diffuse", 0, 1, 1.0) | |
parameter.number("specular", 0, 1, 1) | |
parameter.color("lightColor", color(255,255,255,255)) | |
parameter.color("surfaceColor", color(191,41,85,255)) | |
allTextures = { |
This file contains 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 | |
-- Use this function to perform your initial setup | |
displayMode(FULLSCREEN) | |
function setup() | |
stick = Stick() |
This file contains 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 | |
-- Cube | |
function setup() | |
parameter.number("ambient", 0, 1, 0.1) | |
parameter.number("diffuse", 0, 1, 1.0) | |
parameter.number("specular", 0, 1, 1) | |
parameter.color("lightColor", color(255,255,255,255)) | |
parameter.color("surfaceColor", color(191,41,85,255)) | |
allTextures = { |
This file contains 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 | |
-- Use this function to perform your initial setup | |
displayMode(FULLSCREEN) | |
function setup() | |
stick = Stick() | |
pylon = Wall("Cargo Bot:Crate Red 2") |
This file contains 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 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
LitMesh = class() | |
--[[ | |
LitMesh provides a bumpmappable ADS (ambient/diffuse/specular) lighting enhanced class | |
for meshes. | |
usage: | |
setup() | |
myObject = LitMesh(isTextured, isBumpMapped) | |
myObject.litMesh.vertices = some table of vertices |
This file contains 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 |
OlderNewer