Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A Loading bar for mobile game!

 
namlah ak
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 904
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
thank you!
but what does ListOfImages represents?Is it picture array?
 
Svend Rost
Ranch Hand
Posts: 904
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what does ListOfImages represents?Is it picture array?


Yes.
 
namlah ak
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic