Share Your Code

Animation

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.

3 votes
Color Transition Wrapper

Since changing color smoothly seems like a task that pops up often during game development, I decided to make a wrapper function (around Corona's default transition.to) in order to make it easier. TO USE : First load the table that contains the function: 1       cTrans = require("colortransition") Then call the wrapper function as such:  cTrans:colorTransition(... More...

Posted by atoko, Posted on 9 May 2012, Last updated 9 May 2012 | 0 comments

1 vote
Invert, Horizontal Flip and Vertical Flip Physics Shapes

I recently discovered that is was very easy way to invert images, e.g: myObject.xScale = -1, will horizontally flip a display object. This works well but it will not flip any custom physics shapes assigned to the object so in order for the objects to have the correct physics the shapes need to be flipped also. Here is a function I created which will output a new list of flipped or inverted shapes coordinates from... More...

Posted by Beloudest, Posted on 7 May 2012, Last updated 7 May 2012 | 0 comments

1 vote
MovieClipX

MovieClipX MovieClipX (mcx) is a very slick library based off the original MovieClip library for Corona SDK. It adds a few very awesome features including More...

Posted by iGARET, Posted on 24 Apr 2012, Last updated 24 Apr 2012 | 0 comments

1 vote
deform images by leveraging capabilities of spritesheets

So what do you do if you want to make an animation that involves deforming an image in corona? Carlos said you cant do it... Eat this.... download the full code from https://www.sugarsync.com/pf/D6265787_9225421_754672 heres an example of how to use it 1 2 3 4 -- VERSION -- -- This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. -- -- http://creativecommons.org/licenses/by-sa/... More...

Posted by open768, Posted on 14 Apr 2012, Last updated 14 Apr 2012 | 4 comments

3 votes
Cat-mull-rom open and closed

So, got back into the old bezier stuff again and figured it might be fun to try and get the curve passing straight through the control points. Makes it more useful for plotting courses for game characters, because players are not going to be drawing lines and placing control points - they'll just drag out a path or whatever and the character should traverse it, etc... More...

Posted by horacebury, Posted on 25 Mar 2012, Last updated 25 Mar 2012 | 0 comments

0 votes
Wellen

Many, many (too many) years ago, I was in love with my Acorn Archimedes and on an Acorn Computer Magazine cover disc was a little BBC BASIC program called Wellen. It was a simple row of red circles, connected by elastic bands - well, green lines. Though simple, it was great fun to see how the mathematics worked with these springy balls and to throw them around the screen. This is the Corona Physics version - using a... More...

Posted by horacebury, Posted on 24 Mar 2012, Last updated 24 Mar 2012 | 0 comments

0 votes
transition class library

--====================================================================-- -- TRANSITION CLASS --====================================================================-- --[[ - Version: 1.0 - Made by Krishna Raj Salim @ 2012 - linkedin profile : in.linkedin.com/in/krishnarajsalim - facebook profile : www.facebook.com/krishnarajsalim - Mail: krishnarajsalim@gmail.com ****************** - INFORMATION... More...

Posted by krishnarajsalim., Posted on 23 Mar 2012, Last updated 1 Apr 2012 | 0 comments

0 votes
Display Extensions

With so many regular operations being performed by code I thought it was time I wrote a library which helps with all this. Operations provided are: - Making a shorter global reference to the stage object - An 'indexOf' function for finding the index of a display object within a display group As with my other libraries, this will grow with time. You may notice that there are some functions designed to extend the '... More...

Posted by horacebury, Posted on 21 Mar 2012, Last updated 5 Apr 2012 | 1 comments

5 votes
Improved Page Curls

Heres an example of how to make an attractive AND interactive realistic page curling effect. It's all the little things that really add up in the end to make the illusion convincing. The full project file can be found in the GitHub link along with all the images you will need. http://img856.imageshack.us/i/screenshot20120329at401.png http://img829.imageshack.us/i/screenshot20120329at400.png http://img545.imageshack.... More...

Posted by dedoubleyou1, Posted on 15 Mar 2012, Last updated 29 Mar 2012 | 12 comments

4 votes
(Not-) Verlet Rope

Just playing about with some of Carlos' code and thought to myself, "Doesn't the bezier line look like a rope?"... So I made the control points physics objects, joined them with distance joints and fixed the first one in place. While the following code has major performance issues, I'm sure, it could probably serve as the basis for some interesting effects. I have commented in CAPITALS everywhere I've changed the... More...

Posted by horacebury, Posted on 15 Mar 2012, Last updated 15 Mar 2012 | 2 comments

1 vote
Sprite Sheet Packer for Corona ImageSheets

Sprite Sheet Packer (Windows Only) is a FREE and fully featured tool by Nick Gravelyn for combining multiple individual images into a single, efficiently laid out image. Get it here: http://spritesheetpacker.codeplex.com/ This SpriteSheetPacker.lua module by Michael Wilson (me!) takes the Output Text files SSP creates and creates a table that works seamlessly with Corona's new ImageSheets... 1 2 3 4 5 6 module... More...

Posted by wilson9, Posted on 13 Mar 2012, Last updated 13 Mar 2012 | 1 comments

1 vote
Simple Progress Bar

This is a simple and easy to integrate progress bar which includes "heartbeat" animation to reflect activity even when not updating. More...

Posted by bob.dickinson, Posted on 12 Mar 2012, Last updated 12 Mar 2012 | 0 comments

3 votes
DMC Lib - Trajectory

dmc_trajectory is a module which provides a method to have objects follow ballistic trajectories without using the physics engine. It's as simple as setting up an object transition with a few Corona parameters. Features simple, single trajectory method object can be auto-rotated to match the slope of the trajectory path additional methods to get trajectory calculations Documentation Quick Guide: http://docs.... More...

Posted by dmccuskey, Posted on 11 Mar 2012, Last updated 12 Mar 2012 | 3 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

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

0 votes
Ultra Simple Parallax Scrolling

So this is a parallax scrolling module that will handle up to 5 "layers" of parallax. This is made for landscape orientation, but you should be able to just flip a few things in the file and make it work for vertical as well. You can insert as many images as you want within each layer (minimum of 3, I don't think it'll work properly with only 2). Also, all images within each layer will need to be the exact same size... More...

Posted by 003naveen, Posted on 26 Feb 2012, Last updated 26 Feb 2012 | 1 comments

8 votes
Grid Manipulation Sample Code

This code allows you to move your player by touching the screen. The grid will then manipulate according to the players position. You can change the radius of the manipulated area, and change the line width. We are having problems with lag if there are multiply objects on the grid. If anyone can help solve the issue, we will update our code accordingly. Hope this helps! More...

Posted by Ninja Pig Studios, Posted on 6 Feb 2012, Last updated 3 Mar 2012 | 8 comments

0 votes
Continuous Scrolling Background

This is some code that was given to me for a continuous scrolling background that works pretty good. Just change the image filenames and set the speed in the code and it ready to go. Go to my website and tweet to get the download link for free. http://j-strahan.com/main/?category_name=free Enjoy this free code and others on my site. Thanks. More...

Posted by jstrahan, Posted on 5 Feb 2012, Last updated 5 Feb 2012 | 6 comments

4 votes
Particle Candy Effects Creator

This is a simple helper project to ease the creation of Particle Candy effects. I've been looking for a decent GUI to help me invent particle candy effects and couldn't find anything working, so I decided to go ahead and create my own GUI. For now it allows to adjust only Particle Type properties [and without fancy FX or fields or anything like that], but if you would like to get more, please let me know. More...

Posted by krystian6, Posted on 5 Feb 2012, Last updated 17 May 2012 | 30 comments

2 votes
Accurate tempo/BPM-based timing in your animations and music apps

Accurate tempo/BPM-based timing in your animations and general beat-sequenced stuff. I am using this logic in a spiffy metronome that I am porting over to iOS using Corona. I've used this rock-solid tempo pulse logic in my music apps for various platforms since 1998 and it has never done me wrong. More...

Posted by Gary Duke, Posted on 2 Feb 2012, Last updated 2 Feb 2012 | 5 comments

1 vote
Get Sprite by Name in a Sprite Sheet

Are you upset with the order of you sprite sheets? I am :) It's easy, for me, to sort sprite by name, example : "ship_1,ship_2", and to get the index of the first frame. Use the Basic layout in Zwoptex, then choose to order by name/Ascending. Here is a short snippet to get a sprite picture index in a sprite sheet. pSheetData is the sprite sheet used by sprite.newSpriteSheetFromData. pName is the picture name,... More...

Posted by dmekersa, Posted on 27 Jan 2012, Last updated 31 Jan 2012 | 1 comments

0 votes
Trajectory plotting

[EDIT: I have updated the code to provide a better user interface and make the calculated trajectory path longer if necessary] [NOTICE: A maintainable post for the up to date mathlib.lua is available here: http://developer.anscamobile.com/code/maths-library I have not removed it from this post as it may change beyond this sample's use.] More...

Posted by horacebury, Posted on 30 Dec 2011, Last updated 15 Feb 2012 | 9 comments

1 vote
Virtual Reality Experiment

An experiment to show a virtual reality still image using Corona SDK. In theory, this could be an animation, too... feel free! The app senses the physical attitude of the device using the gyroscope. As you turn the device, the image moves, as though you were turning your head. You can spin in a chair and see the world around you. It seems to freeze in the vertical some times. Quit the app, shut it down, and it... More...

Posted by mimetic, Posted on 17 Dec 2011, Last updated 18 Dec 2011 | 5 comments

2 votes
Animated Number Ticker

I wrote this snippet as a proof of concept for a score/time keeper in a game I'm currently working on. The createTicker() function takes two parameters: a number, and the number of digits you want the display to be. It then generates a 'card' for each digit, based on the width and height of the number font + padding. More...

Posted by bryan.vaccaro, Posted on 13 Dec 2011, Last updated 13 Dec 2011 | 2 comments

4 votes
Calculating Trajectory

This code calculates every point (to the granularity you want) of an object travelling along a trajectory, starting with a given angle and velocity. I wanted to provide some very simply functions developers can call and have the most simple demonstration code - because that's all I can deal with. I have to say that I did not work this stuff out myself, but just went looking for a really good tutorial, which I found... More...

Posted by horacebury, Posted on 5 Dec 2011, Last updated 5 Dec 2011 | 6 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

0 votes
Jake Gundersen

An implementation of the recursive algorithm found on krazydad.com to create lightning/electricity bolts. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 local curDetail = 1   lines = display.newGroup()   function drawLightning(x1, y1, x2, y2, displace, r, g, b)         if displace < curDetail then                ... More...

Posted by fattjake8, Posted on 29 Oct 2011, Last updated 29 Oct 2011 | 2 comments

2 votes
Liquid Simulation For Corona SDK

Optimization of the code See the video at: http://www.youtube.com/watch?v=pPkBw9fIZGU Second test: http://www.youtube.com/watch?v=KMYCPq2w-8s Here is the code: 1 2 3 4 5 6 7 ------------------------------------------------------------------- -- --      Copyright 2011 Emilio Aguirre, All Rights Reserved. --  www.emilioaguirre.com -- -- Permission is hereby granted, free of charge, to any person... More...

Posted by eaguirre, Posted on 27 Oct 2011, Last updated 30 Oct 2011 | 11 comments

2 votes
graffitiPS Free -- A free particle system

Graffiti Particle System Free   Features: Small file size, less then 15kb Works with Director, SceneManager Create particles with unlimited use of the newCircle API Create text particles with limited functions ( native.systemFont only & max of 4 characters ) Move a distance from a point or converge to a point Scale, rotate, fade in/out, set color, set a max number or particles per group Activate a function at... More...

Posted by jstrahan, Posted on 24 Oct 2011, Last updated 24 Oct 2011 | 11 comments

1 vote
Sequence.lua - Transition Execution order

Hello everybody! I am a bit new to Corona but i am working on a game template. Below you can find the class i wrote to handle sequential animations (function calls). It's really easy but i think it will be helpful for somebody here. My idea is to integrate it with TransitionManager somehow, but still havent stated with that, if somebody has any ideas about it i will be glad to here them. PS: I think methods like... More...

Posted by calledpaul, Posted on 17 Oct 2011, Last updated 17 Oct 2011 | 0 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
Orbital Rotation

Showing how to set up an orbital rotation for your corona sdk project. In this example the moon orbits the earth. Download Source: http://www.sims3tinkers.com/orbitalrotationcoronasdk.zip 1 2 3 4 5 6 7 8 9 10 11 12 -- -- Orbital Rotation - Moon around Earth -- Demonstrates one method for orbiting objects -- By Wintermuteai1 - http://www.sims3tinkers.com -- Version: 1.0 -- -- Sample code is MIT licensed, see http... More...

Posted by wintermuteai1, Posted on 30 Sep 2011, Last updated 30 Sep 2011 | 6 comments

0 votes
Make objects stick

I am new to corona and just started with physics, what I want to do is I would like to know how to make one object stick to the other, any help? I didnt find any thing in any other forums or websites, also if there is any helpful website you know of please post that too, thank you so much More...

Posted by Gigabook, Posted on 12 Aug 2011, Last updated 12 Aug 2011 | 5 comments

5 votes
ALexplorer

Exercises some of Corona's "secret" OpenAL features as described in our blog entry The secret/undocumented audio APIs in Corona. Also uses simple sprite animation and some Widgets (requires Corona build 579 or so). Please use with care. Support is very limited; the Corona OpenAL APIs used here may change or be removed entirely. Additional Information: More...

Posted by snarla, Posted on 27 Jul 2011, Last updated 19 Aug 2011 | 0 comments

4 votes
Parallax Class

par·al·lax The apparent displacement of an observed object due to a change in the position of the observer. Imagine yourself in a car looking to one side. The grass next to the road goes by fast while the trees in the middle of the field look slower. Meanwhile, the far away mountains look like they are barely moving. This is the essence of parallax. More...

Posted by duff333, Posted on 19 Jul 2011, Last updated 5 Feb 2012 | 31 comments

2 votes
Move Object through a path

Trace path into an array on touch move and animate the object through the path. This code can also be usedto move an object through a predefined path. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 local path = {} local i =1;local j =1   local function traceClicks(event)    if event.phase == "moved" then       path[i] = {}  ... More...

Posted by renvis@technowand, Posted on 13 Jul 2011, Last updated 13 Jul 2011 | 13 comments

0 votes
Sprites Zombie Demo

This was one of my first test projects. Like the Sprites->Horse Animation and the Sprites->Jungle Scene This is a similar type but with a zombie walking complete with sound effects. download link: http://www.sims3tinkers.com/Wintermuteai1ZombieDemo.zip screenshot: http://i56.tinypic.com/dw5puv.jpg 1 2 3 4 5 6 7 8 require "sprite"   display.setStatusBar(display.HiddenStatusBar)  ... More...

Posted by benvsweb, Posted on 1 Jul 2011, Last updated 1 Jul 2011 | 1 comments

5 votes
Custom Particle Emitter Package

I have created a simple Custom Particle Emitter package. You can create particles of required number, size and duration with just a few lines of code. It is also possible to create decent Smoke effects and other effects with this. Feel free to experiment with the code by using different values or even some code tweaking and share it here. USAGE: 1 2 3 4 local emitter = require("emitter") local... More...

Posted by prasannakkcse, Posted on 27 Jun 2011, Last updated 28 Jun 2011 | 13 comments

9 votes
Pauseable timers and transitions with speed adjustment

After searching for pausable timers for corona I found only several implementations. Beebe used enterFrame listener to implement his own timers and transitions. Transition manager has memory leaks and lacks some functionality. So I decided to wrap around existing corona timers and transitions into my own implementation. Remember to free the memory used by this module, I advice you you to call... More...

Posted by Lerg, Posted on 18 Jun 2011, Last updated 14 Apr 2012 | 37 comments

2 votes
Simple particle explosion

Here's a snippet to generate simple particle explosions: 1 2 3 4 5 6 7 8 9 10 11 12 13 -- THE EXPLOSION FUNCTION local particles = {} -- particle table local function explosion (theX, theY, blood)  -- blood is BOOL         local particleCount = 3 -- number of particles per explosion         for  i = 1, particleCount do        ... More...

Posted by finefin, Posted on 17 Jun 2011, Last updated 6 Jul 2011 | 9 comments

0 votes
Balloon Bounce

Hello! More...

Posted by noahdutch, Posted on 30 May 2011, Last updated 30 May 2011 | 2 comments

4 votes
Animation along a Path (via Flash)

I've been looking for ways to get animation along a path and thought I would share what I came up with. This requires Flash but where else would you be making your animations, eh? 1. First, set up your animation in Flash. Along a path or not. 2. Name the symbol instances "object" (If you change, make sure you alter the Actionscript to match) 3. Use this Actionscript in the first frame of your animation: 1 2 3 4 5 6... More...

Posted by ChunkyApps, Posted on 24 May 2011, Last updated 14 Jul 2011 | 6 comments

3 votes
3D Tunnel

Here is the 3D tunnel with texture mapping code. Original Texture Download source http://www.alienhorde.com/files/tunnel.zip More...

Posted by Matthew Pringle, Posted on 8 May 2011, Last updated 9 May 2011 | 10 comments

2 votes
Simple 3D transform in Corona SDK

3D cube and simple 3D transform in Corona SDK: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 --focal length to determine perspective scaling local focalLength = 300 -- initial decays of 3D cube local userX = - 0.01 local userY =  0.01 local line = {}   -- here we set up a function to make an object with -- x, y and z properties to represent a 3D point.   local make3DPoint = function... More...

Posted by gtatarkin, Posted on 22 Apr 2011, Last updated 22 Apr 2011 | 3 comments

5 votes
Rope Demo

This is a demo of a rope with a ball attached at the end bouncing when you touch the ball. See Rope Video This is code is as is. You can use it to your hearts content. It may have some bugs. Enjoy. Download it here Rope.zip You can create your own effect and see if you can cut the rope. Open Source. Carlos More...

Posted by carlos m. icaza, Posted on 18 Feb 2011, Last updated 18 Feb 2011 | 14 comments

3 votes
Pausable Transitions

This is a library and example file which shows how to use any easing function to generate a transition which has pause and rewind capabilities. It also provides onStart, onComplete and onEnterFrame table and function listeners (onEnterFrame being called every time the transition/tween is updated.) The original forum thread is here: https://developer.anscamobile.com/forum/2010/11/20/pausable-transitionstween The... More...

Posted by horacebury, Posted on 14 Feb 2011, Last updated 14 Feb 2011 | 5 comments

6 votes
Carousel - simulating depth in Corona

A technique to make 2D objects appear to move around in 3D space. -- Carousel animation demo. -- Mark H Carolan 2010 -- Simulate depth in 2D on Corona platform.   local nImages = 8 local range = 360 local sectionSize = range / nImages local xCentre = display.contentWidth / 2 local yCentre = display.contentHeight / 2 local diameter = display.contentWidth - xCentre/2 local r = diameter / 2 local points = {... More...

Posted by MarkHenryC, Posted on 8 Feb 2011, Last updated 23 Aug 2011 | 4 comments

12 votes
BeebeGames Class

*Requires Corona Build 243 at the very least. Download it here: beebegames1-8.zip VERSION 1.8 - Released January 16, 2011 What's new in this (and previous) version? 1.8 - Fixed major memory leak issues in regards to the destroy() function for objects and cancel() for timers. Also, randomTable functions have been deprecated because after extensive testing, localizing math.random actually works A LOT faster than using... More...

Posted by jonbeebe, Posted on 14 Dec 2010, Last updated 16 Jan 2011 | 70 comments

46 votes
SpriteGrabber --SpriteSheets in two lines

SpriteGrabber is the easy way to use spritesheets in Corona for including animated and stationary graphics in your project. With SpriteGrabber you need to write significantly less code compared to directly calling the SDK functions. Moreover, you don't have to remember the index numbers for the frames of your sprites, since SpriteGrabber calls sprites using their image-names. Technically, SpriteGrabber is a helper... More...

Posted by Magenda, Posted on 29 Oct 2010, Last updated 6 Apr 2011 | 157 comments

4 votes
How to use textures to create notion of movement

In the field of computer graphics, due to limited CPU performance, textures are often use to create the notion of movement. Here I upload a simple demo that demonstrate several features of Corona. 1) eventListener 2) sprites 3) alpha channels In this demo, I use an alpha channel trick, plus a random water texture, to make it look as there is water motion. Download sources here: Clownfish.zip See video at Aquarium More...

Posted by carlos m. icaza, Posted on 24 Oct 2010, Last updated 24 Oct 2010 | 3 comments

14 votes
More Easing!

An extended easing library with in and out versions of bounce, elastic and standard ease. More...

Posted by scarnie, Posted on 23 Aug 2010, Last updated 7 Oct 2010 | 8 comments

4 votes
Sine Wave

This is a great piece of sample code that demonstrates how to use the Sine function to create an animated sine wave. More...

Posted by Gilbert, Posted on 16 Aug 2010, Last updated 18 Nov 2011 | 1 comments

3 votes
Sprite Extended

This code snippet is a reworked movieclip module to use sprite sheets instead of individual pngs for generally better performance. It provides all the same features as movieclip. More...

Posted by scarnie, Posted on 13 Aug 2010, Last updated 7 Oct 2010 | 4 comments

2 votes
3D Clock

This is 3D Clock sample. Code is exported from AS3 to corona. More...

Posted by muxukeikei, Posted on 21 Jul 2010, Last updated 7 Oct 2010 | 0 comments

2 votes
Pause and Restart Animation

If you have programmatic animations, you can pause and restart them. Here’s how you can make a button start and stop an animation. More...

Posted by Gilbert, Posted on 20 Jul 2010, Last updated 7 Oct 2010 | 0 comments

2 votes
Movie clips and retina display

Wish to use movieclips with retina display? When you use the built in movieclip library it defaultly uses newImage to spawn images... which is fine, but doesn't work with retina displays! Download my movie clip library below to use movieclips with the retina display! THE RETINA DISPLAY SUPPORTED MOVIECLIP LIBRARY HAS BEEN UPDATED! You must go here: http://bit.ly/iTnsF9 to download! Thank you for your support guys! More...

Posted by iGARET, Posted on 19 Jul 2010, Last updated 10 May 2011 | 11 comments

5 votes
Modified movieclip.lua

Here is a modified movieclip.lua file that will let you set the speed of the animation. To do this, call the setSpeed method with the speed factor. 1.0 means the animation will be updated every frame, 0.5 means every second frame and so on. More...

Posted by MikeHart, Posted on 11 Jun 2010, Last updated 7 Oct 2010 | 3 comments

1 vote
Modified sprite.lua implementation

Here is a slightly modified sprite.lua file that will let you set the speed of the animation. To do this, call the setSpeed method with the speed factor. 1.0 means the animation will be updated every frame, 0.5 means every second frame and so on. I hope it is usefull. I will try to extend this so it becomes framerate independant. More...

Posted by MikeHart, Posted on 27 Apr 2010, Last updated 7 Oct 2010 | 0 comments

3 votes
Classic 3d wireframe cube demo

Here is a classic 3d wireframe cube demo. Who said Corona could not render basic 3d ? More...

Posted by Hasufel, Posted on 17 Apr 2010, Last updated 7 Oct 2010 | 1 comments

1 vote
It's snowing and shake example

Digital snow globe. More...

Posted by freshworks, Posted on 10 Dec 2009, Last updated 7 Oct 2010 | 1 comments

2 votes
Simple parallax starfield

Simple starfield More...

Posted by freshworks, Posted on 9 Dec 2009, Last updated 7 Oct 2010 | 3 comments

2 votes
Simple Clock

An example of using the timer apis to make a simple clock. More...

Posted by willsingleton, Posted on 5 Dec 2009, Last updated 7 Oct 2010 | 0 comments

1 vote
Compute event.lastFrameTime

This piece of code will compute the last-frame-time (very useful when doing time-based animation) and make it available to all enterFrame event handlers that follow. You'll want to place/require() this code very early (if not first) in your program. More...

Posted by DGuy, Posted on 4 Dec 2009, Last updated 7 Oct 2010 | 0 comments