Date post: | 17-Dec-2014 |
Category: |
Mobile |
Upload: | charles-mckeever |
View: | 187 times |
Download: | 1 times |
CORONA SDK
CoronaLabs.com | @CoronaLabsCorona Labs, Palo Alto, CA
Build Apps for iOS, Android, Kindle Fire, Fire TV, OUYA, NOOK, Windows Phone
An Introduction
Appcelerator, Phone Gap, Xamarin, Unity
coronalabs.com
display.newImage( "sky.png" )local ground = display.newImage("ground.png", 0, 400)local crate = display.newImage("crate.png", 160, 50 );crate.rotation = 30!local physics = require("physics")physics.start()!physics.addBody( ground, "static", { friction=0.5, bounce=0.3 } )physics.addBody( crate, { density=0.9, friction=0.3, bounce=0.3} )
Develop 10x faster
Publish to top stores
Write once Monetize and distribute
coronalabs.comsites.google.com/site/marbux/home/where-lua-is-used
coronalabs.com
Lua is a powerful, fast, lightweight, embeddable scripting language.!!
Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.
WHAT IS LUA?
SOURCE: http://www.lua.org/
LAUNCHING CORONA
LAUNCHING CORONA
PROJECT FOLDERAdd images, sounds and Lua files to the project folder
A SIMPLE IMAGEIn one line you can display an image
local clouds = display.newImage(“clouds.png”)
X & YEasily position your images
local physics = require( "physics" )!physics.start()!!local sky = display.newImage( "bkg_clouds.png", 160, 195 )!!local ground = display.newImage( "ground.png", 160, 445 )!physics.addBody( ground, "static", { friction=0.5, bounce=0.3 } )!!local crate = display.newImage( "crate.png", 180, -50 )!crate.rotation = 5!physics.addBody( crate, { density=3.0, friction=0.5, bounce=0.3 } )
MANIPULATIONSize, x, y, alpha and rotation are all simple to adjust
local physics = require( "physics" )!physics.start()!!local sky = display.newImage( "bkg_clouds.png", 160, 195 )!!local ground = display.newImage( "ground.png", 160, 445 )!physics.addBody( ground, "static", { friction=0.5, bounce=0.3 } )!!local crate = display.newImage( "crate.png", 180, -50 )!crate.rotation = 5!physics.addBody( crate, { density=3.0, friction=0.5, bounce=0.3 } )
BUILT IN SIMULATORSee updates as you save your code changes.
SAMPLE CODEApplications / CoronaSDK / SampleCode
coronalabs.com/products/books
BurtonsMediaGroup.com (Dr. Brian Burton)
YouTube.com/CoronaGeek Corona Geek
@charlesmckeeverCharles McKeever
Build Apps 10x Faster
CORONA SDK
coronaLabs.com | @CoronaLabs
Build Apps for iOS, Android, Kindle Fire & NOOK