Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7e4079b3c5
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (28 sloc) 0.879 kb
module(..., package.seeall)
-- Main function - MUST return a display.newGroup()
function new()
local localGroup = display.newGroup()
-- Background
local background = display.newImageRect("bk_default.png", 480, 320)
background.x = display.contentCenterX
background.y = display.contentCenterY
localGroup:insert(background)
-- Title
local title = display.newText("Touch to go back", 0, 0, native.systemFontBold, 16)
title:setTextColor( 255,255,255)
title.x = display.contentCenterX
title.y = display.contentCenterY
title.name = "title"
localGroup:insert(title)
-- Touch to go back
local function touched ( event )
if ("ended" == event.phase) then
director:changeScene("menu","fade")
end
end
background:addEventListener("touch",touched)
unloadMe = function()
end
-- MUST return a display.newGroup()
return localGroup
end
Jump to Line
Something went wrong with that request. Please try again.