corona presentation

11
ANDROID GAME DEVELOPMENT USING CORONA SDK

Upload: alirahman

Post on 21-Nov-2015

29 views

Category:

Documents


4 download

DESCRIPTION

Presentation about Corona SDK

TRANSCRIPT

Android Game development using corona sdk

Android Game developmentusing corona sdk

Corona SDKA cross platform sdk for developing and publishing mobile games.No need to rewrite code and recompile for different platforms.Write code once in the environment of the sdk. The sdk compiles it into native code for different platformsCurrent platforms supported: android/iphoneWindows phone 8 support coming soonThe corona sdk environmentNo need for an ide.Basic requirement: corona sdk + text editorNotepad definitely not recommended!Text editor should preferably have good editing and formatting customizations.Corona sdk plugins available for popular text editors. Plugin allows the editor to recognize corona specific syntax and pre-included functionsProgramming is done in lua language

What is lua?

a powerful, fast, lightweight, embeddable scripting language.A dynamic interpreted language.Low learning curveEasy syntaxNo need to type define variables alongside declaration. Type is defined based on data assigned to variable. Type isnt fixed.Lack of a variety of data structures. Only one: tablesThink of them as dynamic arraysLua is not an object oriented language by nature. there are workarounds, though.

Lua interpreters size 30) then print(x) x=x-3 endend

scopeBy default, variables are global.Place the keyword local before a variable declaration to change its scope.Declaring a local variable within a function will only make it accessible to that function or its own sub-functions.

In lua, functions are first class objects. They can be redefined, passed off as arguments for other functions.Back to corona

Comparison of corona vs native codingCorona is ideal for rapid prototyping of games.Qurbani run: