forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Flash screen while loading

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
ai3gtmc30



Joined: 16 Mar 2007
Posts: 3

PostPosted: Fri Mar 16, 2007 9:19 pm    Post subject: Flash screen while loading Reply with quote

hi can anyone help how to flash a screen while loading my app? lets say something like ill put a credits and the name of the app(image file) in 3 soconds then dissappear?
Back to top
View user's profile Send private message
romero126



Joined: 24 Dec 2005
Posts: 200

PostPosted: Sat Mar 17, 2007 9:47 am    Post subject: Reply with quote

Code:
function VSH_SplashScreen(image, time)
   local DebugTimer = os.clock()
   screen:clear(Color.new(0,0,0))
   screen:blit(0, 0, image)
   screen.waitVblankStart()
   screen.flip()
   while true do
      local CHECK_TIME = os.clock() - DebugTimer
      
      if (CHECK_TIME >= time) then
         break
      end
   end
end
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group