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
-- Use this function to perform your initial setup | |
function setup() | |
displayMode(FULLSCREEN) | |
boxheight = 50 | |
boxwidth = 50 | |
ballX = 400 | |
ballY = 400 |
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
-- Use this function to perform your initial setup | |
function setup() | |
displayMode(FULLSCREEN) | |
boxheight =3D 50 | |
boxwidth =3D 50 | |
ballX =3D 400 | |
ballY =3D 400 | |
ballZ =3D 74 | |
updown =3D -4 |
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
-- Sphere rotation program | |
-- main.lua first | |
-- Use this function to perform your initial setup | |
function setup() | |
-- displayMode(FULLSCREEN) | |
ballX =3D 300 | |
ballY =3D 300 |
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
-- A converted javascript (by Keith Peters) adapted for Codea by Bri_G | |
-- ref. http://www.bit-101.com/blog/?p=3214 | |
-- excellent description given note - retained background used | |
function setup() | |
-- system and variable initialisations | |
displayMode(FULLSCREEN) | |
backingMode(RETAINED) | |
wide = WIDTH | |
high = HEIGHT |
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
-- code from http://rosettacode.org/wiki/Draw_a_sphere | |
-- tickled slightly for Codea by Bri_G | |
-- various authors under GNU Free Documentation Licence 1.2 | |
-- http://www.gnu.org/licenses/fdl-1.2.html | |
-- Use this function to perform your initial setup | |
saveProjectInfo("Description", "Text Sphere") | |
saveProjectInfo("Version", "1.001 beta") | |
saveProjectInfo("Author", "Bri_G") |
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
-- Use this function to perform your initial setup | |
function setup() | |
saveProjectInfo("Description", "Flash Screen") | |
saveProjectInfo("Version", "1.001 beta") | |
saveProjectInfo("Author", "Bri_G") | |
print(string.char(0xe2,0x98,0x83)) | |
snow = string.char(0xe2,0x98,0x83) | |
displayMode(FULLSCREEN) | |
-- iparameter("posX",40,100,60) |
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
-- A converted javascript (by Keith Peters) adapted for Codea by Bri_G | |
-- ref. http://www.bit-101.com/blog/?p=3148 | |
-- excellent description given | |
-- Use this function to perform your initial setup | |
function setup() | |
-- initialisations of system and variables used | |
displayMode(FULLSCREEN) | |
points = {x={}, y={}, z={}, vx={}, vy={}, size={}, colr={}} | |
numPoints = 50 |
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
-- A converted javascript (by Keith Peters) adapted for Codea by Bri_G | |
-- ref. http://www.bit-101.com/blog/?p=3150 | |
-- excellent description given | |
-- Use this function to perform your initial setup | |
function setup() | |
-- initialisations of system and variables used | |
displayMode(FULLSCREEN) | |
numPoints = 300 | |
gravity = 0.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
-- A translation of the javascript from Guido D'Albore by Bri_G | |
-- reference http://www.bitstorm.it/blog/en/2011/05/3d-sphere-html5-canvas/ | |
-- with help from Inviso and Andrew Stacey on the mechanics | |
-- set up for Love2D too - remove the comment marks | |
--[[ if require ~= nil then | |
require("loveCodea") | |
require("Polar") | |
end --]] | |
function setup() |
OlderNewer