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
[code]–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;
[/code]
and i so fare just added this code to my splash.lua
[code]module(…,package.seeall)
function new()
local localGroup= display.newGruop();
return localGroup;
local background = display.newImage( “images/startscreen.png” )
localGroup:insert(background);
end
[/code]
i just have norting show in the simulator
thank you for your help [import]uid: 27349 topic_id: 11133 reply_id: 311133[/import]