Code from Tutorial: Advanced Random Numbers (http://coronalabs.com/blog/2014/03/11/tutorial-advanced-random-numbers/)
Game Logic
I just started a new project and thought this kind of code may be helpful for people trying to learn.
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
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
A simple Lua/Corona module for an on-screen joystick. Based on code from Rob Miracle (http://forums.coronalabs.com/topic/32941-virtual-joystick-module-for-games/), somewhat simplified, removed some nice-ities, but it still works.
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.
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.
Composer/Storyboard if you like doing things with classes rather than files.
A list of RGB colours with supporting functions and Gfx2.0 colour code conversion.
Clone of 2048 built in Corona SDK