Share Your Code

Menus

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.

5 votes
Streaming "News Ticker" (Twitter Feed or Online Text File)

I wrote the following bit of code for an app I'm working on where I wanted to have a "news ticker" scroll along the bottom of the home screen that I could change remotely. I also briefly considered streaming the most recent tweets from a Twitter account - so I'm including that code as well. See the commented-out text below for notes on how to change the ticker text or Twitter feed that displays. If you copy this... More...

Posted by jasonschroeder, Posted on 6 Mar 2012, Last updated 6 Mar 2012 | 24 comments

1 vote
Pauseable Transitions, unified timer and transition module, can replace built-in

Here is yet-another pausable transition library. I call it "ctrans", short for "custom transitions". It is different in that it keeps track of all transitions internally, rather than just tag on data to tween objects. This keeps the size of the tween objects small and allows you to perform actions on a large set of transitions with a simple command. More...

Posted by kenneth34, Posted on 4 Mar 2012, Last updated 10 Apr 2012 | 4 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

0 votes
we will miss you steve jobs by dsrawat4u@gmail.com

This tutorial is build for a tribute to "Steve Jobs:The man behind apple" From me(Deepak Singh Rawat) using a better way to understand movieclip action with buttons!! For more information check my blog :- www.anscacorona.blogspot.com or My youtube channel :- www.youtube.com/user/iphonemaclover thank you Have fun with corona SDK File included:- main.lua mainmenu.lua loadmainmenu.lua More...

Posted by Deepak Singh Rawat, Posted on 13 Oct 2011, Last updated 5 Dec 2011 | 3 comments

1 vote
Using splash/load screen on Android

When developing apps for both iOS and Android I've wanted a standard way to display a splash screen while the app is loading. I've written a small module that provides 2 options: Option 1) iOS has a nice built-in feature that displays an image (Default.png) while the app is loading. This option takes advantage of the iOS image files. Option 2) If you don't want/need a graphic (which might in itself might take a few... More...

Posted by ingemar, Posted on 2 Oct 2011, Last updated 6 Oct 2011 | 1 comments

1 vote
Simple menu system for Director Class

When prototyping a game using the Director Class (http://developer.anscamobile.com/code/director-class-10) it's useful to have a simple menu to test out different scenes. I quickly built this simple menu system to help quickly test scenes/levels. menu.lua 1 2 3 4 5 6 7 module(..., package.seeall)   local localGroup = display.newGroup()... More...

Posted by davidchiu, Posted on 28 Sep 2011, Last updated 28 Sep 2011 | 0 comments

1 vote
Enhanced "springboard" slide/photo viewer

New, enhanced "slider + springboard" module, to mimic standard iOS page flip functionality This module mimics the standard iOS "page springboard" for use in your own app. I designed it to resemble iOS as near as possible, so end users can instantly recognize the interface they use every day on their iOS phone or tablet. Also works for Android, of course. :) Features: More...

Posted by Ignis Design, Posted on 9 Aug 2011, Last updated 10 Aug 2011 | 33 comments

0 votes
Keeping score aligned

Hey, i don't know if someone has posted something similar to this, but I couldn't find one, so I wrote my own. If it's already out there somewhere, then sorry -- I just thought this could help the community. Basically, it is an external module that you require in to your code called length.lua. length.lua 1 2 3 4 5 6 7 8 9 10 11 12 13 module(..., package.seeall)   function width(y,t)  ... More...

Posted by mdcapps, Posted on 29 Jul 2011, Last updated 29 Jul 2011 | 7 comments

3 votes
Menu+Game Structure

A generic menu structure for laying out menus in your games, with a main menu (index.lua), level selection (selectlevel.lua) and example level(level1.lua), etc. Includes a level reset without requiring a new reset lua for each level. You still have to restore your physical objects, sounds, etc to their starting state of course. If you've completed the CheetoMoskeeto Tutorials (http://www.cheetomoskeeto.com/ -... More...

Posted by TopherMade, Posted on 11 Jun 2011, Last updated 11 Jun 2011 | 1 comments

9 votes
Enhanced UI Library (ui.lua)

UPDATED to 2.4 Most current copy of and ZIP download available at my website. http://www.pixelenvision.com/1562/coronasdk-enhanced-ui-library-ui-lua/ NEW: Added event support, now returns even.target, event.x & event.y values. You can use x/y values to provide different actions based on the coordinates of the touch event reative to the x/y size of the button image. NEW: isActive state enhanced, so the button can... More...

Posted by PixelEnvision, Posted on 31 May 2011, Last updated 1 Oct 2011 | 93 comments

4 votes
Tab Bar

Create a tab bar that will allow you to switch screens within your app. More...

Posted by Gilbert, Posted on 8 Sep 2010, Last updated 19 Oct 2010 | 28 comments