Introduction to Corona SDK

24
CORONA SDK CoronaLabs.com | @CoronaLabs Corona Labs, Palo Alto, CA Build Apps for iOS, Android, Kindle Fire, Fire TV, OUYA, NOOK, Windows Phone An Introduction Appcelerator, Phone Gap, Xamarin, Unity

description

Corona SDK is a cross platform mobile SDK for creating apps, games, and interactive books for iOS, Android, Kindle Fire, Fire TV, OUYA, NOOK, smart watches, and Windows Phone.

Transcript of Introduction to Corona SDK

Page 1: Introduction to Corona SDK

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

Page 2: Introduction to Corona SDK

GAMES, APPS, BOOKS

coronalabs.com/case-studies

WATCHES, IOT

Page 3: Introduction to Corona SDK

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

Page 4: Introduction to Corona SDK

coronalabs.comsites.google.com/site/marbux/home/where-lua-is-used

Page 5: Introduction to Corona SDK

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/

Page 6: Introduction to Corona SDK

coronalabs.com

Page 7: Introduction to Corona SDK
Page 8: Introduction to Corona SDK

XCODERequired to build for iOS devices

developer.apple.com/xcode

Page 9: Introduction to Corona SDK

CORONA EDITORcoronalabs.com/products/editor/

Page 10: Introduction to Corona SDK

DOWNLOAD CORONA SDKCoronaLabs.com

Page 11: Introduction to Corona SDK

LAUNCHING CORONA

Page 12: Introduction to Corona SDK

LAUNCHING CORONA

Page 13: Introduction to Corona SDK

PROJECT FOLDERAdd images, sounds and Lua files to the project folder

Page 14: Introduction to Corona SDK

A SIMPLE IMAGEIn one line you can display an image

local clouds = display.newImage(“clouds.png”)

Page 15: Introduction to Corona SDK

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 } )

Page 16: Introduction to Corona SDK

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 } )

Page 17: Introduction to Corona SDK

BUILT IN SIMULATORSee updates as you save your code changes.

Page 18: Introduction to Corona SDK

SAMPLE CODEApplications / CoronaSDK / SampleCode

Page 19: Introduction to Corona SDK

DOCUMENTATIONdocs.coronalabs.com

Page 20: Introduction to Corona SDK

CoronaLabs.com/university

Page 21: Introduction to Corona SDK

YouTube.com/CoronaGeek

Corona Geek

Weekly Google+ Hangout

Page 22: Introduction to Corona SDK

coronalabs.com/products/books

BurtonsMediaGroup.com (Dr. Brian Burton)

Page 23: Introduction to Corona SDK

YouTube.com/CoronaGeek Corona Geek

@charlesmckeeverCharles McKeever

Page 24: Introduction to Corona SDK

Build Apps 10x Faster

CORONA SDK

coronaLabs.com | @CoronaLabs

Build Apps for iOS, Android, Kindle Fire & NOOK