之前有提過的Docker最近出了支援Windows&Mac OSX雙版本的安裝套件
Windows版下載連結:https://github.com/boot2docker/windows-installer/releases/tag/v1.4.1
Mac OSX版下載連結:https://github.com/boot2docker/osx-installer/releases/tag/v1.4.1
以上安裝套件前請確認您的作業系統為64位元版本,接著快樂的享用Docker吧.
2015年1月31日 星期六
[筆記]Corona SDK的第一個程式
Corona SDK支援Apple跟android雙平台,算的上是好上手的開發程式,但是請考慮圖片、影片跟聲音的授權問題,還有該平台版本的尺寸問題,下面的範例程式只是入門,要更精進就要大家一起用力學習了.
--note:Printing "Hello World!" on command
print("Hello World")
--note:Displaying "Hello World!" on GUI
local text = display.newText("Hello World", 325, 325, "Arial", 48 )
--note:Setting Text Color
text:setTextColor( 255,255,255 )
--note:display button
local button = display.newImage("button.png")
button.x = display.contentWidth / 2
button.y = display.contentHeight - 550
--note:Basic Interactivity
function screenTap()
local r = math.random( 0, 100 )
local g = math.random( 0, 100 )
local b = math.random( 0, 100 )
text:setFillColor( r/100, g/100, b/100 )
end
--note:Event Listener
display.currentStage:addEventListener( "tap", screenTap )
--note:sound player
transition.to(textO,{ time=1000, y=text.y+100 })
function button:tap( event )
local r = math.random( 0, 255 )
local g = math.random( 0, 255 )
local b = math.random( 0, 255 )
text:setTextColor(r,g,b )
media.playEventSound("test.mp3")
end
button:addEventListener("tap",button )
--note:Printing "Hello World!" on command
print("Hello World")
--note:Displaying "Hello World!" on GUI
local text = display.newText("Hello World", 325, 325, "Arial", 48 )
--note:Setting Text Color
text:setTextColor( 255,255,255 )
--note:display button
local button = display.newImage("button.png")
button.x = display.contentWidth / 2
button.y = display.contentHeight - 550
--note:Basic Interactivity
function screenTap()
local r = math.random( 0, 100 )
local g = math.random( 0, 100 )
local b = math.random( 0, 100 )
text:setFillColor( r/100, g/100, b/100 )
end
--note:Event Listener
display.currentStage:addEventListener( "tap", screenTap )
--note:sound player
transition.to(textO,{ time=1000, y=text.y+100 })
function button:tap( event )
local r = math.random( 0, 255 )
local g = math.random( 0, 255 )
local b = math.random( 0, 255 )
text:setTextColor(r,g,b )
media.playEventSound("test.mp3")
end
button:addEventListener("tap",button )
訂閱:
文章 (Atom)