0% found this document useful (0 votes)
206 views11 pages

Android Game Dev with Corona SDK

The document discusses Corona SDK, a cross-platform SDK for developing mobile games that allows writing code once that can run on Android and iOS. It compiles code written in the Lua programming language into native code for different platforms. Lua is a lightweight scripting language with an easy syntax and dynamic typing that supports tables like dynamic arrays. The Corona SDK environment does not require an IDE and code can be written in any text editor, allowing rapid prototyping of games with less code compared to native development.

Uploaded by

AliRahman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
206 views11 pages

Android Game Dev with Corona SDK

The document discusses Corona SDK, a cross-platform SDK for developing mobile games that allows writing code once that can run on Android and iOS. It compiles code written in the Lua programming language into native code for different platforms. Lua is a lightweight scripting language with an easy syntax and dynamic typing that supports tables like dynamic arrays. The Corona SDK environment does not require an IDE and code can be written in any text editor, allowing rapid prototyping of games with less code compared to native development.

Uploaded by

AliRahman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

ANDROID GAME

DEVELOPMENT
USING CORONA SDK

CORONA SDK
A 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 PLATFORMS
CURRENT PLATFORMS SUPPORTED: ANDROID/IPHONE
WINDOWS PHONE 8 SUPPORT COMING SOON

THE CORONA SDK ENVIRONMENT


NO NEED FOR AN IDE.
BASIC REQUIREMENT: CORONA SDK + TEXT EDITOR
NOTEPAD 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
FUNCTIONS
PROGRAMMING IS DONE IN LUA LANGUAGE

WHAT IS LUA?

A POWERFUL, FAST, LIGHTWEIGHT, EMBEDDABLE SCRIPTING LANGUAGE.


A DYNAMIC INTERPRETED LANGUAGE.
LOW LEARNING CURVE
EASY SYNTAX
NO 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: TABLES
THINK OF THEM AS DYNAMIC ARRAYS
LUA IS NOT AN OBJECT ORIENTED LANGUAGE BY NATURE. THERE ARE WORKAROUNDS,
THOUGH.

CODE SNIPPETS
HELLO WORLD:
print("Hello World!")

LOOPS AND DECISION MAKING:


local x=45
for i=1,10 do
if(x>30) then
print(x)
x=x-3
end
end

SCOPE
BY 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


CODING
CORONA IS IDEAL FOR RAPID PROTOTYPING OF GAMES.
QURBANI RUN: <1900 LINES OF CODE.
COMPARISON OF CODE:
CORONA:

JAVA:

TIME TO PLAY WITH


CORONA!

You might also like