Game Logic

Comments, 359 Votes - submitted on 01/02/2015 view repo

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

Comments, 359 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, 520 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, 432 Votes - submitted on 25/10/2014 view repo

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.

Comments, 488 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, 871 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, 417 Votes - submitted on 19/06/2014 view repo

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

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

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

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

Clone of 2048 built in Corona SDK

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