• No results found

App and Game Development with Corona SDK

N/A
N/A
Protected

Academic year: 2021

Share "App and Game Development with Corona SDK"

Copied!
18
0
0

Loading.... (view fulltext now)

Full text

(1)

App and Game Development

with Corona SDK

- Altaf Rehmani

(2)

Jun 11 – Jun 12

(3)

What is Corona?

• A cross development mobile sdk from

AnscaMobile (http://www.anscamobile.com)

• An SDK that empowers developers to write

mobile games and graphical rich apps for iOS and Android, quickly, and easily.

Android, quickly, and easily.

• Corona produced apps have been

downloaded35m times

• Corona apps are approved for the Nook Platform. • Price – USD 349 per year to publish for both iOS

(4)

Success Stories

• Bubble Ball 14 yr old – Robert Nay (> 7m

Downloads)

• Float – Crawl Space games ~ 1 million

downloads; one day to prototype; 2 months to downloads; one day to prototype; 2 months to develop

• Blast Monkeys – > 300K downloads: created in

14 days

• Joe Kauffman – Fire Maple Games: 2 games

(5)

What is the SDK?

• Lua Interpreter (110KB interpreter) • Open GL – ES 2.0 (graphics hardware

acceleration standard)

• Open AL

• Open AL

• Physics engine built around Box2D

• Native C, C++ libraries (injected at runtime

(6)

SDK Overview

Graphics and Drawing Animation Event handling /Timers Location and Maps Data / networking / Physics Hardware

Features Audio / Video

Ads / Notifications

(7)

Things we love about the SDK

• Huge Productivity Gains

• Cross Platform Ability for iOS and Android • Simple, effective Dev environment and

workflow

• Helpful and active community • Helpful and active community • API keeps expanding

• Physics and other Framework support

• Lots of sample code and third party tools • Migration path from Flash to Corona

(8)

Productivity

• Displaying an image

– Objective C (iOS) – Java (Android)

– Corona sdk (both platforms) – Corona sdk (both platforms)

• Display.newImage(“myImage.png”)

(9)

Simple and effective dev workflow

• Projects are kept separate folders • Assets are compiled into app

• App Code starts in the “main.lua” • Code Editors of your choice:

• Code Editors of your choice:

Text Wrangler, BBEdit, Xcode, Notepad ++ ..

• Works on Windows and Mac

(10)

SDK is good at

• 2-D Games

• Graphical-oriented Utilities • Rapid Prototyping

• Apps which are graphical in nature • Apps which are graphical in nature

(11)

Catch the Ball – Game Prototype

• Backgrounds • Physics • Collisions Story: • Story:

– basketballs dropping from the sky

• Use a basket (hoop) to catch them

• Don’t catch bombs, but catch a special bonus ball

• Scoring: + 1 for each basketball, +5 for special bonus, -2 for bomb • You have 10 lives, each time you drop a ball life decreases.

(12)

Limitations of the SDK

• Android Only 2.2 or higher • Android Armv7 only.

• Android push notifications – not available • iAds only possible through a workaround

• Some iOS features don’t work yet on android • Some iOS features don’t work yet on android • when not to use

– If you need native code integration and 3rd party

toolkits integrated

– If you need a business app with native device UI

(13)

Sample Code available

(14)

What about Lua?

• Lua is small

As small as <100 KB (DLL/LIB)

Easy runs on small devices or in small apps.

• Lua is simple to use

To use-well suited for small software To use-well suited for small software To learn- ~20 keywords, ~20 operators Powerful arrays

• Lua is fast

• Apart from this, dynamic typing first class functions,

(15)

Corona Development Process

Test them on the

Test them on the Compile native Compile native Design Images, Audio,Video, animation Design Images, Audio,Video, animation Rapidly develop/program your apps Rapidly develop/program your apps

Test them on the simulator with

rapid change feedback Test them on the

simulator with rapid change feedback Compile native optimised apps and distirbute to either device or appstores Compile native optimised apps and distirbute to either device or appstores

(16)

Benefits to game developers

• SDK is easy to use; powerful with 500 APIs • Lua , fast powerful and easy to use language • Ability to publish to both iOS and Android • Animation and sprite techniques

• Physics engine

• inApp purchases for both iOS

• inMobi and Papaya Mobile Ad networks

Dynamic Content Scaling

• Dynamic Content Scaling

• File manipulation, xml / JSON parsing, SqlLite

• Reusable frameworks and code available from community – Director,

Memory monitor etc

• Social integration, Launchpad, partnership with inMobi and Papayamobile • Native Device Features(accelerometer, gyroscope, GPS, MAPS, async http

(17)

Tools for game developers

• Spriteloq – convert Flash animations to

Corona

• Kwik – Photoshop CS5 plugin to create comics,

storybooks from psd files storybooks from psd files

• CPM – Corona Project Manager to manage

your projects

• Particle Candy – professional effects for games • Lime – include tilemaps created in Tiled

(18)

App Dev Experiences

The Good

• Real Fast development • Ability to cater for

multiple resolution and devices

• Focus on creativity and

content

Challenges

• Android and iOS

differences

• Native UI look

• Limited to what the SDK

has to offer.

content

• Excellent community

of developers

• Source code available

for common patterns

• Daily build, improved

features

has to offer.

• Both platforms may not

have common elements

• Marketing and App

discovery

References

Related documents

Thus the null hypothesis of no co-integration is rejected for the supply model, and a non-spurious long-run relationship is confirmed among the monthly mutton marketed, the

Animation, Film and TV, Music, Song Writing, Game Design, Entertainment Management, Audio Engineering and Digital Design course information and employment opportunities advice

Three more substantial reasons for revisiting legal capital are developed: the evidence against legal capital being an effective bulwark against short termist corporate behaviour

Method— Longitudinal network analysis was used to assess the mutual influences between teen drinking and social networks among adolescents in two large Add Health schools where full

Puno espouses that the eual protection clause can no loner be interpreted as onl% a uarantee of for!al eualit% but of substantive eualit%.. each person !a%

Considering that a banking group is composed of numerous entities (branches and subsidiaries), and that each one of them is represented by an Operational Risk Manager (ORM), we

age (d) relationship, (B) growth rate (mm shell length d −1 through planktonic development, and C) larval culture water temperature re- siduals (°C) from the average larval

In the quartz grain measurement phase, the adaptive thresholding, median filter and blob analysis are used for obtaining the quartz grains, and the modified