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
| --# 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
| -- Well Racer | |
| -- Codea Cook Off 2013 | |
| -- by West | |
| -- v1.0 First release | |
| supportedOrientations(PORTRAIT_ANY) | |
| function draw() | |
| func() | |
| 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
| -- Missile command type game | |
| -- by West | |
| displayMode(FULLSCREEN) | |
| function setup() | |
| touches={} | |
| tsup={} --tsup contains the supplementary info about the start position of the touch | |
| resetGame() | |
| --starfield setup --credit to Simeon @TLL: http://codea.io/talk/discussion/644/flicker-drawing-large-images-any-advice/p1 | |
| local gradSize = 2 |
NewerOlder