CORONA
方又生
Evan, Yu-Sheng Fang
evanfang102@gmail.com
What is Corona SDK?
Develop apps
10x faster
Publish to all
major platforms

SORRY :P
Build on industry
standards
Monetize, grow,
and prosper
Objective-c

Java
 Scripting Language
指令碼語言
 執行快速,檔案小

 簡單、易學、易用
 只需簡易編輯器
About Lua
and
for
or

break
do
else
function if
in
repeat
return then

+
==

-

*
~=

(
;

)
:

elseif
local
true

/
<=
{
...
Links
http://www.lua.org/
http://docs.coronalabs.com/guide/st
art/introLua/index.html
Hall of Fame
Throne Wars
Mandora
不思議微生物タマタマ研究所
Handy Tools 7-in-1
Scott’s Submarine
Animals’ Boat for Toddlers
Install
Download Corona
Register
Mac OS X or Microsoft Windows
Get Started
Corona Simulator
Corona Simulator Output
Get Started
Sample Apps
APIs
Forum
Demos
Images & Text
local sky = display.newImage(“sky.png”)
local sky = display.newImage(“sky.png”)

local logo =
display.newImage(“corona.png”, 25, 65)

logo:setFillColor( 245, 132,...
local sky = display.newImage(“sky.png”)
local logo =
display.newImage(“corona.png”, 25, 65)
logo:setFillColor( 245, 132, 0...
local sky = display.newImage(“sky.png”)
local logo =
display.newImage(“corona.png”, 25, 65)
logo:setFillColor( 245, 132, 0...
Touch & Sound
local onTouch = function( event )
if event.phase = “began” then
local img = display.newImage
(“logo.png”, event.x, event.y...
local onTouch = function( event )
if event.phase = “began” then
local img = display.newImage
(“logo.png”, event.x, event.y...
local onTouch = function( event )
if event.phase = “began” then
local img = display.newImage
(“logo.png”, event.x, event.y...
local tapSound = audio.loadSound( “beep.mp3” )
local onTouch = function( event )

if event.phase = “began” then
local img ...
physics
local sky = display.newImage( “sky.png” )
local grass = display.newImage( “grass.png” )
grass.y = 439

local crate = displ...
local physics = require “physics”
physics.start()
local sky = display.newImage( “sky.png” )

local grass = display.newImag...
Corona_introduction
Corona_introduction
Corona_introduction
Corona_introduction
Upcoming SlideShare
Loading in …5
×

Corona_introduction

437 views

Published on

簡單的Corona基礎介紹,Corona是跨平台的智慧型裝置軟體開發工具,內建強大的2D遊戲物理引擎,API也支援基本控件、網路、硬體等等APP開發必備的內容,由於開發快速,有興趣的人務必嘗試嘗試!

Published in: Technology, Art & Photos
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
437
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
15
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Corona_introduction

  1. 1. CORONA 方又生 Evan, Yu-Sheng Fang evanfang102@gmail.com
  2. 2. What is Corona SDK?
  3. 3. Develop apps 10x faster
  4. 4. Publish to all major platforms SORRY :P
  5. 5. Build on industry standards
  6. 6. Monetize, grow, and prosper
  7. 7. Objective-c Java
  8. 8.  Scripting Language 指令碼語言  執行快速,檔案小  簡單、易學、易用  只需簡易編輯器
  9. 9. About Lua and for or break do else function if in repeat return then + == - * ~= ( ; ) : elseif local true / <= { , end nil until false not while % ^ # >= < >= } [ ] . .. ...
  10. 10. Links http://www.lua.org/ http://docs.coronalabs.com/guide/st art/introLua/index.html
  11. 11. Hall of Fame
  12. 12. Throne Wars
  13. 13. Mandora
  14. 14. 不思議微生物タマタマ研究所
  15. 15. Handy Tools 7-in-1
  16. 16. Scott’s Submarine
  17. 17. Animals’ Boat for Toddlers
  18. 18. Install
  19. 19. Download Corona
  20. 20. Register
  21. 21. Mac OS X or Microsoft Windows
  22. 22. Get Started
  23. 23. Corona Simulator
  24. 24. Corona Simulator Output
  25. 25. Get Started
  26. 26. Sample Apps
  27. 27. APIs
  28. 28. Forum
  29. 29. Demos
  30. 30. Images & Text
  31. 31. local sky = display.newImage(“sky.png”)
  32. 32. local sky = display.newImage(“sky.png”) local logo = display.newImage(“corona.png”, 25, 65) logo:setFillColor( 245, 132, 0)
  33. 33. local sky = display.newImage(“sky.png”) local logo = display.newImage(“corona.png”, 25, 65) logo:setFillColor( 245, 132, 0) logo:removeSelf() logo = nil
  34. 34. local sky = display.newImage(“sky.png”) local logo = display.newImage(“corona.png”, 25, 65) logo:setFillColor( 245, 132, 0) logo:removeSelf() logo = nil local text = display.newText( “Corona is Easy!”, 40, 35, “Helvetica”, 22 ) text:setTextColor( 255 )
  35. 35. Touch & Sound
  36. 36. local onTouch = function( event ) if event.phase = “began” then local img = display.newImage (“logo.png”, event.x, event.y) end end
  37. 37. local onTouch = function( event ) if event.phase = “began” then local img = display.newImage (“logo.png”, event.x, event.y) end end Runtime:addEventListener( “touch”, onTouch)
  38. 38. local onTouch = function( event ) if event.phase = “began” then local img = display.newImage (“logo.png”, event.x, event.y) end end Runtime:addEventListener( “touch”, onTouch)
  39. 39. local tapSound = audio.loadSound( “beep.mp3” ) local onTouch = function( event ) if event.phase = “began” then local img = display.newImage (“logo.png”, event.x, event.y) audio.play( tapSound ) end end Runtime:addEventListener( “touch”, onTouch)
  40. 40. physics
  41. 41. local sky = display.newImage( “sky.png” ) local grass = display.newImage( “grass.png” ) grass.y = 439 local crate = display.newImage( “crateA.png” ) crate.x, crate.y = 200, 100 crate.rotation = 50
  42. 42. local physics = require “physics” physics.start() local sky = display.newImage( “sky.png” ) local grass = display.newImage( “grass.png” ) grass.y = 439 physics.addBody( grass, “static”, { friction=0.3} ) local crate = display.newImage( “crateA.png” ) crate.x, crate.y = 200, 100 crate.rotation = 50 physics.addBody( crate, { bounce = 0.3 } )

×