i have just start coding my game with corona and the first thing i want is to splash up an company logo and then flash up and game tile screen before pushing up the menu for the user
i have coded in code into my main.lua file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | --Hide status bar from the beginning display.setStatusBar( display.HiddenStatusBar ) -- get the director module so we can move between screens local director = require("director"); local mainGruop= display.newGruop(); local function main() mainGroup:insert(director.directorView); diractor:changeScene("splash") return true; end main(); --[[ lets see what size the deviced we are using it as all ios devices and android has an big range off sizes]] local _H=display.contentHeight; local _w=display.contentWidth; --set the iamge for the background local background = display.newImage( "images/splashscreen.png" ) --center the iamge by deviding by two to make it center on all devices background.x=_w/2; background.y=_H/2; |
If the code you posted was copied directly from your source file then one suggestion I have is to check your spelling on lines 6 and 9 in your main.lua
Go look at Cheetomoskettos video tutorials on youtube.