Sha256: c04a22cf5516e668ef28f16546b625bf635cb6fcadec53dfee406eef0747cd3a

Contents?: true

Size: 729 Bytes

Versions: 1

Compression:

Stored size: 729 Bytes

Contents

module(..., package.seeall)

require "init_buttons"

-- Main function - MUST return a display.newGroup()
function new()
  local localGroup = display.newGroup()

  local theTimer
  local loadingImage

  local showLoadingScreen = function()
    loadingImage = display.newImageRect( "splash_screen.png", 480, 320 )
    loadingImage.x = display.contentWidth
    loadingImage.y = display.contentHeight
    localGroup:insert(loadingImage)

    local goToLevel = function()
      director:changeScene( "menu" )
    end

    math.randomseed( os.time() )
    theTimer = timer.performWithDelay( 1000, goToLevel, 1 )
  end

  showLoadingScreen()

  unloadMe = function()
  end

  -- MUST return a display.newGroup()
  return localGroup
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nakor-0.0.2 lib/nakor/generators/corona-game-template/loadmenu.lua