File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes A Loading bar for mobile game! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "A Loading bar for mobile game!" Watch "A Loading bar for mobile game!" New topic
Author

A Loading bar for mobile game!

namlah ak
Greenhorn

Joined: Feb 14, 2005
Posts: 3
Hi,
I'm a new in mobile application games..i've created a game using JBuilder9 but it takes some time to open in the phone..so i was wondering to put a loading screen (to check all the images are loaded properly!
My Application is like this.
fishingMIDlet
Menu------>i have three options:
1-Start Game(a canvas with images)
2-Instructions
3-Highest Score

Only Game(displayable) has images on it)

Can anybody help me please i need it as soon as possible!!

Namlah
Svend Rost
Ranch Hand

Joined: Oct 23, 2002
Posts: 904
Hi,

As you correctly point out, loading the images takes some time.

I would do the following:

Add the boolean loading, the int number_of_images and int cur_image as seen below:



The code in the if(loading) - block can be improved. I hope you get the general idea.

/Svend
[ February 14, 2005: Message edited by: Svend Rost ]
namlah ak
Greenhorn

Joined: Feb 14, 2005
Posts: 3
Hi,
thank you!
but what does ListOfImages represents?Is it picture array?
Svend Rost
Ranch Hand

Joined: Oct 23, 2002
Posts: 904
what does ListOfImages represents?Is it picture array?


Yes.
namlah ak
Greenhorn

Joined: Feb 14, 2005
Posts: 3
Thanks alot...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A Loading bar for mobile game!
 
Similar Threads
Sounds for a Mobile Game
Sending images from the server to the phone
images in palm
Please try my Java Game
Problem with nokia S40 series