How to make a game loading screen

Forum for J2ME mobile games related topics including programming doubts, books and other resources for J2ME game development

How to make a game loading screen

Postby hasharts » Mon Sep 15, 2008 3:28 am

Hi,

Can anybody plc tell me how to make a game loading screen. I have already made one but that is only a sprite animation ( shows a loading bar). How would I know exactly the game is loaded. I want to complete my animation when the game is loaded.

Regards,
Hashani
User avatar
hasharts
 
Posts: 8
Joined: Fri May 16, 2008 5:30 am

Re: How to make a game loading screen

Postby DevelopmentTeam » Mon Sep 15, 2008 4:44 am

Usually we do it in 2 different ways for showing a realistic progress bar.
1) If we have 50 images to be loaded for every level, we increase the progress by 2 after loading every image successfully. This is the simplest way you can do it and its the most efficient way doing it though not exactly a realistic one.
2) You can create a separate thread for showing the progress bar and use different thread for loading the resources. After every resource is loaded you have to increase the progress according to the size of resources loaded. This is not recommended as threading is always an issue in many devices. And knowing the percentage of a single resource loaded cannot be determined using J2ME.
User avatar
DevelopmentTeam
Site Admin
 
Posts: 661
Joined: Tue Aug 15, 2006 8:39 am
Location: India

Re: How to make a game loading screen

Postby hasharts » Mon Sep 15, 2008 7:42 am

Thank you for the early reply. I'll try it and c. Thanks again.

Regards,
Hashani
User avatar
hasharts
 
Posts: 8
Joined: Fri May 16, 2008 5:30 am

Re: How to make a game loading screen

Postby DevelopmentTeam » Mon Sep 15, 2008 8:49 am

Sure, please do post your progress on it.
User avatar
DevelopmentTeam
Site Admin
 
Posts: 661
Joined: Tue Aug 15, 2006 8:39 am
Location: India


Return to J2ME Games

Who is online

Users browsing this forum: No registered users and 2 guests

cron