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 | |
-- Moving a sprite with a VirtualStick | |
displayMode(FULLSCREEN) | |
function setup() | |
pos = vec2(WIDTH/2, HEIGHT/2) | |
steer = vec2(0,0) | |
speed = 400 -- pixels per second |
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 | |
-- Test of various controls | |
displayMode(FULLSCREEN) | |
function setup() | |
pos = vec2(WIDTH/2, HEIGHT/2) | |
steer = vec2(0,0) |
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 | |
-- 0 conversion | |
-- unit test of variuos fonctions | |
function setup() | |
convert = Convert() | |
-- types | |
typeUnitTests() | |
-- integer |
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
--# Convert | |
Convert = class() | |
-- converting a 3d object into a color image is done in steps: | |
-- 1/ convert each element of object in an image | |
-- 2/ assemble the image elements in one big image | |
-- the reading is the same in inverse order | |
function Convert:init() |
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
Convert = class() | |
-- converting a 3d object into a color image is done in steps: | |
-- 1/ convert each element of object in an image | |
-- 2/ assemble the image elements in one big image | |
-- the reading is the same in inverse order | |
function Convert:init() | |
end |
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 | |
-- 0 chemin 00 | |
-- copyright JMV38 2012 - all rights reserved | |
displayMode(FULLSCREEN) | |
setInstructionLimit(0) | |
-- Use this function to perform your initial setup | |
function setup() |
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 | |
-- 0 fourmi | |
-- copyright JMV38 2013 - all rights reserved | |
displayMode(FULLSCREEN) | |
supportedOrientations(LANDSCAPE_ANY) | |
function setup() | |
-- codea settings |
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
--# Window | |
Window = class() | |
-- functionnalities: | |
-- a window name + close button (x) + minimize/maximize button (_)/(=) | |
-- 1 touch: move the window | |
-- 2 touches: resize h, resize v | |
-- 1 touch long press: print txt, save to documents image dialog |
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
-- fix the black screen problem by dave1707 | |
function setup() | |
project = "forum bone simeon" --YOUR PROJECT NAME HERE | |
projectTabs = listProjectTabs(project) | |
for t = 1, #projectTabs do | |
fix(project..":"..projectTabs[t]) | |
end | |
print("finished") |
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
local wait = function (delay,DoSomething) | |
tween.delay(delay,DoSomething) | |
end | |
XFC.Functions.wait = wait | |
OlderNewer