Game Logic

I just started a new project and thought this kind of code may be helpful for people trying to learn.

Comments, 263 Votes - submitted on 05/12/2014 view repo

it will give you a feeling of a spaceship moving in space

another function could show planets and nebulae with different speeds

you can also tweak it a little bit and create different transition speeds for stars depending on their sizes

Comments, 238 Votes - submitted on 25/10/2014 view repo

i think the idea is cool

just one loop will create small objects (circles or rectangles) to fill the screen
each object will have the same touch event which will fill the object with a randomly selected color

add a few lines to have different background color, and different sizes for your objects

Comments, 282 Votes - submitted on 25/10/2014 view repo

A simple Lua/Corona module for an on-screen joystick. Based on code from Rob Miracle (, somewhat simplified, removed some nice-ities, but it still works.

Comments, 315 Votes - submitted on 08/10/2014 view repo

An Executive is basically an object collection, with proper constructors and destructors. There is an asynchronous message system, a timer system and an update system. What it provides over classic Lua OOP is proper tidying up, the ability to have independent objects, and reusable library objects.

Comments, 626 Votes - submitted on 05/07/2014 view repo

Building a scrabble game, or any game where you need to check for correct words. Wordz.lua has over 100,000 words in its dictionary with character lengths from 2 - 28. There are functions to verify if the word is usable, to remove words from the list, and to limit the character count of words.

Comments, 217 Votes - submitted on 19/06/2014 view repo

Composer/Storyboard if you like doing things with classes rather than files.

Comments, 291 Votes - submitted on 01/06/2014 view repo

A list of RGB colours with supporting functions and Gfx2.0 colour code conversion.

Comments, 343 Votes - submitted on 17/04/2014 view repo

Clone of 2048 built in Corona SDK

Comments, 248 Votes - submitted on 15/04/2014 view repo

This small library extends the timer object (performWithDelay, pause, resume, and cancel) to use optional tags.

Comments, 275 Votes - submitted on 07/04/2014 view repo