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 |
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
| -- People Popcorn | |
| -- by West | |
| --two space chameleons, Clive and Agnes descend on the unsuspecting planet. Who will gobble up the most people? | |
| supportedOrientations(LANDSCAPE_ANY) | |
| -- Use this function to perform your initial setup | |
| function setup() | |
| displayMode(FULLSCREEN_NO_BUTTONS) | |
| -- displayMode(FULLSCREEN) | |
| WALK=1 |
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
| -- Touch based space invaders | |
| -- by West | |
| -- Use this function to perform your initial setup | |
| supportedOrientations(PORTRAIT_ANY) | |
| function setup() | |
| displayMode(FULLSCREEN) | |
| READY=1 | |
| GAMEOVER=2 | |
| PLAY=3 |
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
| --Slash, Pop, Spin & Squash | |
| -- by West | |
| -- basic game framework in place. Flick on the screen to slash - create a vertical line slash through the V Slash rectangles, and a horizontal line through the H Slash ones | |
| --Tap inside the rectangle to destroy the Pop ones. Draw a circle (making sure start and end meets) to destroy the spin rectangles. Pinch screen inside rectangle to destry the Pinch ones. | |
| function setup() | |
| displayMode(FULLSCREEN) | |
| READY=1 | |
| PLAYING=2 | |
| LEVELCOMPLETE=3 | |
| GAMEOVER=4 |
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 | |
| -- Meshchopper | |
| --various goals | |
| --chop without letting fragments on screen go above a certain amount | |
| --get x fragments on screen at once | |
| --use limited number of slashes |
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
| --simple lemmings clone with all the basic skills. All images used are shipped with Codea. Not an exact clone, rough and ready in places. No scrolling and no finite state machine control but basics demonstrateed. | |
| --by West | |
| --alternative selection | |
| --use tap or drag to select active men then click on buttons to apply to them. use arrows to indicate selectiom | |
| displayMode(FULLSCREEN) | |
| function setup() | |
| FALL=1 | |
| WALK=2 | |
| DOWNDIG=3 |
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
| --# Particle | |
| Particle = class() | |
| --Class to deal with individual particles. Used for the starburst and raindrops | |
| function Particle:init(x,y,xspd,yspd,type,fade) | |
| -- you can accept and set parameters here | |
| --map to the position of the 100 by 100 blocks in the sprite sheet. The location in the array refers to the type of particle | |
| local map={} | |
| map[1]={x=0, y=4}--stars | |
| map[2]={x=2, y=4}--rain |
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
| -- Mountains | |
| -- Simple endless runner game by West | |
| -- taking inspiration from "Alto's adventure" for the Mountain backdrop and day to night cycle | |
| -- Use this function to perform your initial setup | |
| function setup() | |
| --get rid of the sidebar | |
| displayMode(FULLSCREEN) | |
| -- define 3 the three game states for the finite state machine game engine and initialise gamestate variable | |
| READY=1 | |
| GAMEOVER=2 |
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
| -- Foggy Bummer | |
| -- By West | |
| --Game overview: A sideways scroller where the player controls a bumblebee. Touch screen to provide upward thrust to the bee. Collect as many rings as you can in 24 hours or until you complete the full course. Don't hit the top or bottom of the screen. | |
| --Feel free to use this code as you wish to help you learn and understand codea. Most of the images are either hand drawn or sections extracted from photos - feel free to use, mangle and adapt the sprite sheet too. Just please don't take the code and images wholesale and upload them to the apple store! | |
| --Often a good way to learn to program is to take existing code, tweak it and build on it. Hopefully this will give someone a foot up towards making their own sideways scroller. This is the most basic version, but I've also added the following if anyone is interested | |
| --Added bonuses |
OlderNewer