Share Your Code

Game and App Templates

Sort by: Latest Additions | Most Viewed | Recently Updated | Top Rated

The latest additions of sample code and code libraries shared by developers for Corona SDK.

2 votes
Shortest Path Through A Concave Polygon With Holes

This program draws the shortest path between two points inside any polygon (with or without holes). The source for this program is C code by Darel Finley found at http://alienryderflex.com/shortest_path/ and translated into Lua by horacebury and me. The program lets you draw a bounding polygon that is either a convex polygon or a concave polygon. Other polygons can be drawn within the bounding polygon to create “... More...

Posted by brucemartin, Posted on 19 Apr 2012, Last updated 20 Apr 2012 | 8 comments

5 votes
3D Object Rendering

A new example I wanted to share with you guys, was some 3D Object rendering. Not quite as exciting at the raycasting sample I posted a few weeks back, but still interesting enough I think ;) Glenz: Wireframe: More...

Posted by Jesder, Posted on 2 Mar 2012, Last updated 2 Mar 2012 | 4 comments

13 votes
Raycasting Engine

Back in 1997, I wrote a raycasting engine in Turbo Pascal. It had a number of features and was heading towards being turned into a fully fledged game engine. That never happened. But since then, as I move between development platforms, I like to port a cutdown version of it to help make me familiar with the syntax and API on the new platform. Here is a basic raycasting engine written in LUA with the Corona SDK. More...

Posted by Jesder, Posted on 14 Feb 2012, Last updated 14 Feb 2012 | 13 comments

1 vote
Cipr

Cipr (pronounced "sipper") is part package manager, part development framework for Corona SDK. Much like Python's pip, Cipr makes it easier to share packages and integrate them into Corona apps. The Goal for Cipr is that there's a generous amount of third-party, best-of-breed packages available for use in Corona apps. This will help new developers get started developing apps sooner and reduce the re-inventing of the... More...

Posted by cixate, Posted on 28 Jan 2012, Last updated 28 Jan 2012 | 1 comments

0 votes
Running Clock

This code will create a variable running timer for your game/app. Please see below for what to set it up. Functions: clock.cancelTimers(): This will cancel or pause your timers clock.resumeTimers(): This will resume your timers from a clock.cancelTimer call First you have to require the clock by writing: 1 local clock = require("clock") Then to set up a clock you have to follow this: 1 2 3 4 5 6 7... More...

Posted by jeremyapplebaum12, Posted on 22 Jan 2012, Last updated 22 Jan 2012 | 2 comments

1 vote
oop - no metas, no module()

Introduction I've build a Class - with actually just one function - for easy and very basic OOP in Lua. After some tryings I've decided to go without metatables and without module(...). This is my own approach and of course ain't the best out there, but as far as I've tested it, it does its job very well for me, so may it do for you too. My first approach was using metas, as everywhere suggested. And this... More...

Posted by jack0088, Posted on 16 Dec 2011, Last updated 19 Dec 2011 | 2 comments

7 votes
Missile Command

A step-by-step tutorial showing how to create a Missile Command game using the Corona SDK. The resulting game is compatible across iOS and Android devices. The repository includes: assets: all of the graphics, audio, etc. required in the game; exercises: if you want to start with a particular exercise, then you can refer to the corresponding folder and start from there; MissileCommand: the finished game, if you... More...

Posted by Ludicrous Software, Posted on 24 Nov 2011, Last updated 24 Nov 2011 | 3 comments

3 votes
Corona Slot Machine

Corona Slot Machine is a simple example code that can be used to create a Slot Machine or Casino style app. The example features a fully functional slot machine that cycles through seven images on three slides to create a slot machine feel. This is just the skeleton of the code that can be changed to have a different look or extra features, or be used as is. More...

Posted by ertzel, Posted on 22 Nov 2011, Last updated 24 Nov 2011 | 3 comments

3 votes
RagDoll example

Code: https://files.me.com/horacebury/dzd1ev Swf Video: https://files.me.com/horacebury/cctx6z I've been wondering about the issue surrounding Ragdoll physics in Corona and had always wanted to produce a direct comparison to illustrate the differences various developers are seeing, myself included. Recently, I found some JavaScript ports of the Box2D Flash engine and thought that I would attempt a rag doll scenario... More...

Posted by horacebury, Posted on 22 Nov 2011, Last updated 22 Nov 2011 | 20 comments

2 votes
Run Rabbit Run

Run Rabbit Run - simple scrolling platform game. Rabbit run and jump between platforms, catch lives and carrots. The goal of project is provide new Corona SDK developers with simple game template. Fill free to use any part of game as you wish. I will write more details about "how to" on my blog aabweber.com You can download game here. More...

Posted by aabweber, Posted on 17 Nov 2011, Last updated 17 Nov 2011 | 5 comments

3 votes
Corona Comics 2.0

The Corona Comics SDK 2.0 is based on the 1.0 version from November, 2010. In truth, this code is not as much an SDK as a demo of a fully functioning app using the code. It is a Lite version of Electric Eggplant’s iPad app, “Be Confident in Who You Are: A Middle School ConfidentialTM Graphic Novel” with all the functionality intact. It contains the opening animation and all of chapter 1, plus the Info page, and... More...

Posted by Gilbert, Posted on 11 Nov 2011, Last updated 11 Nov 2011 | 32 comments

1 vote
Example MessageBox code

A common feature in a lot of games and applications is the use of a MessageBox to display some text to the user and provide then with different buttons to signify what action they want to take. Something like a "Do you want to Exit?" with a Yes and No button. I have posted source for the cMessageBox.lua module along with sample tests showing the features of this code. The code depends on the ui.lua module (... More...

Posted by KenRogoway, Posted on 23 Oct 2011, Last updated 23 Oct 2011 | 9 comments

1 vote
Ghost vs Monsters - OOP

This is Ghost vs Monsters re-written in an object-oriented style of programming. It's intended as a example of how one might separate functionality within the application. Many thanks to everyone at Beebe Games and Ansca for making the code publicly available! More...

Posted by dmccuskey, Posted on 29 Sep 2011, Last updated 18 Oct 2011 | 4 comments

2 votes
Pinball Madness

Try this game out so you can see how you can see how easy it is to setup the Corona physics to create a pinball game. Sample code is MIT licensed and Open Source, so you can use the code at will and create your own game, edit it, add better looking scoring, how about adding a left and right paddle only, more lights, sounds. Show us what you can do. Carlos More...

Posted by carlos m. icaza, Posted on 3 Jun 2011, Last updated 18 Oct 2011 | 6 comments

4 votes
Flight Path

You are in charge. You are the Head Honcho at the new Nimitz class of nuclear powered aircraft carrier and your job is to make sure that every plane/helicopter lands safely. This sample project is provided for you learn a different type of game that can be developed using Corona. It is up to you now to implement sound, different planes, water movement, score, etc. The code is very simple to follow and as usual it... More...

Posted by carlos m. icaza, Posted on 2 Jun 2011, Last updated 18 Oct 2011 | 12 comments

16 votes
Tilt Monster

Tilt Monster (formerly known in the App Store as Doodle Dash!) was the FIRST project of Jonathan Beebe, and was one of (if not THE) first Corona SDK game to reach over 100,000 sales in the App Store! (Special thanks to Biffy Beebe for the artwork/graphics assets, and her ideas and inspiration throughout the development process--this is the project that did it for us!) More...

Posted by jonathanbeebe, Posted on 25 May 2011, Last updated 18 Oct 2011 | 47 comments

2 votes
Angry Turtles

This is a version of our Ghosts vs Monsters re-done as Angry Turtles vs rabbits, or hares, up to you how you want to name it. Just shows you how easy it is to use the Ghosts VS Monsters template (or this one for that matter) and change a couple of assets and have a very different looking game. Enjoy and as always, this code, is Open Source. Feel free to edit, modify and do how ever you please. Carlos. More...

Posted by carlos m. icaza, Posted on 2 May 2011, Last updated 18 Oct 2011 | 1 comments

5 votes
Air Hockey 2 Player Game

Air Hockey is a two player game designed to show off some of the physics engine properties of Corona SDK and how with a few lines of code you can write a very addictive game. First one to score five points wins. Works seamlessly across iOS and Android devices. Open sourced MIT Licensed. Feel free to use the code as you wish. If you decide you want to make changes or additions, feel free to do so and let us know to... More...

Posted by carlos m. icaza, Posted on 20 Apr 2011, Last updated 18 Oct 2011 | 10 comments

2 votes
Two Player Pool Table

This game template is an update to the sample pool game that ships with Corona SDK. This new version includes dual player support, sound, ability to change the felt on the pool table, plus other improvements as well. Feel free to do whatever you want with the game as the code as usual is open source. Now, up to you to learn how to spin and slow down the pool table balls, add more sound, etc. Feel free to share... More...

Posted by carlos m. icaza, Posted on 20 Apr 2011, Last updated 18 Oct 2011 | 4 comments

6 votes
Match The Letter

Match The Letter is a simple picture game for helping kids learn their letters. I posted the source to github. I built it both for my son to play with and to get more familiar with Corona, so any feedback is appreciated. https://github.com/johnpolacek/Match-The-Letter-Game The app is available for download on the iTunes App Store and Google Marketplace. For more info, go to http://johnpolacek.com/matchtheletter More...

Posted by johnpolacek, Posted on 9 Mar 2011, Last updated 18 Oct 2011 | 11 comments

7 votes
Martian Control

Another example game very simliar to Flight Control done using Corona SDK. If you have played Flight Control, this is very simliar game. The code is now open source so you can see how easy it is to recreate using Corona. Once again, especial thanks to Jonathan and Biffy Beebe from Beebe Games for helping us showcase the power of Corona. This sample game took almost 30 hours to do, including imaging, sound, etc.... More...

Posted by carlos m. icaza, Posted on 13 Dec 2010, Last updated 18 Oct 2011 | 8 comments

16 votes
Ghosts vs. Monsters

A sample game very similar to Angry Birds. It is Ghosts vs. Monsters, done in Corona SDK. Two levels to play with and for you to see how easy it is do do a similar game using the Corona SDK. Sample took less than 36 hours to code, with music and graphics. Special thanks to Jonathan and Biffy Beebe for creating the game exclusively for us and for you to enjoy. Read more about it on our blog. More...

Posted by carlos m. icaza, Posted on 9 Dec 2010, Last updated 18 Oct 2011 | 41 comments

2 votes
Samurai Kitchen

We were special guest at the 2009 Adobe Max Russel Brown's Photoshop Pre Conference-Conference and we wrote a game during the session where the attendees could swap in their images for the images in this game. I am uploading the zip file and hopefully it is self explanatory and you can see how easy it is to create games and do animations in just a few lines of code. Samurai Kitchen Carlos More...

Posted by carlos m. icaza, Posted on 15 Oct 2010, Last updated 18 Oct 2011 | 12 comments

1 vote
Corona Game Template by Ziray Studio Labs

The template includes example code for: Display groups Orientation and accelerometer Touch with buttons File reading Example level file for scripting game play The template separates functionality into modules for an object oriented approach. http://www.mikeziray.com/2010/06/27/corona-game-template-in-lua/ If you find the template useful, please consider buying a copy of our current application to support us. It’d... More...

Posted by Eric, Posted on 15 Oct 2010, Last updated 18 Oct 2011 | 1 comments

3 votes
Slide Viewer

This view for images and photos allows the user to swipe from side to side to view each of the images. The nav bar fades out when the user is sliding or taps an image. Similar to the iPhone "Photos" app. More...

Posted by Gilbert, Posted on 18 Aug 2010, Last updated 18 Oct 2011 | 40 comments