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 | |
| -- Cider Controls 7.1 | |
| -- ===================== | |
| -- Designed for use with the Cider interface designer | |
| -- Use this file to test and demostrate controls in the library | |
| -- ===================== | |
| function setup() | |
| displayMode(FULLSCREEN) |
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 | |
| --The name of the project must match your Codea project name if dependencies are used. | |
| --Project: Place Project Name Here | |
| --Version: Alpha 1.0 | |
| --Comments: | |
| --by ignatz | |
| --November 2013 | |
| --This map shows light/dark in real time | |
| --It knows your time, but it needs your longitude, so BEFORE RUNNING THE CODE |
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
| --# Barier | |
| Barier = class() | |
| function Barier:init(x) | |
| bariers={} | |
| barierno=1 | |
| for i=1, 5 do | |
| Barier:CreateBarier() | |
| end | |
| 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 | |
| --Main | |
| --This code manages which Code tab is run | |
| --it remembers your last choice, and if you select a different one, it runs that instead | |
| local tabs = {} | |
| local fnames = {"setup","draw","touched","collide","orientationChanged","close","restart","keyboard","cleanup"} | |
| local fns = {} |
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 | |
| -- Snake tutorial | |
| -- by West | |
| --Graphics used are those supplied with Codea, particularly those of Kenney.nl and twolivesleft.com | |
| -- This is a very simple example snake game. It is intended for use as an introduction into creating your second game in codea and is aimed at absolute beginners. Try the lander tutorial before this one | |
| --ONLY THE FURTHEST RIGHT HAND TAB WILL BE EXECUTED. DRAG THE TAB FOR THE STEP YOU WISH TO RUN TO THE FAR RIGHT THEN PRESS RUN |
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
| Album = class() | |
| function Album:init() | |
| self.title = "" | |
| self.comment = "" | |
| self.firstPhoto = "Documents:Frame" | |
| self.photos = {} | |
| self.x = 0 | |
| self.y = 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 | |
| function setup() | |
| LoadImages() | |
| end | |
| function setup2() | |
| parameter.integer("Viewpoint",-2000,2000,20) | |
| speed,angle=0,0 | |
| ds,da=0,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
| function setup() | |
| LoadImages() --do this first, on its own | |
| end | |
| --put your setup code in here | |
| function setup2() | |
| print("Doing the rest of the setup....") | |
| end | |
| --this loads the images |
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 | |
| --# ReadMe | |
| --[[ | |
| First, don't be put off by all this text. This utility is extremely simple to use. | |
| It creates code that reproduces images so you don't need to include them separately with your projects. It uses RLE, a well known compression technique. Essentially, it runs through all the pixels, and every time the color changes, it stores the last color and the number of pixels it applied to. | |
| FUNCTIONALITY |
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
| function setup() | |
| parameter.integer("Viewpoint",-2000,2000,20) | |
| local i=CreateImage() | |
| local f=readImage("SpaceCute:Background") --NEW | |
| speed,angle=0,0 | |
| ds,da=0,0 | |
| posX,posY,posZ=-20,0,10 --starting position | |
| rad=math.pi/180 | |
| meshTable={} | |
| AddFourWalls(0,0,400,150,200,40,i) |