hi,
The issue is ,my game takes a along time to load.
When the "play" menu is selected, the game initializes the "Game canvas" class. Inside the "Gamecanvas" constructor i'm initializing 7 different image arrays. each array is used to perform different animations (MIDP 1).
I checked the image capacity , it is around 1kb or 2kb for each image some images are 700b.
[I'm using different canvases for different screens (e.g. menus is in one canvas and game is is one canvas , splash screen is in one canvas etc.) so i have to initialize images related to each canvas one by one when it's initializing . Not all the images at once.]
Initializing arrays... is it the correct way or is there any other better ways ?
(Note: actually i took the jar file of a game and extracted the images and tried to recreate the same game for learning purposes, functional wise the game is OK. But the loading time between my game and the original game is huge.)
The original game's time is 5s and my one is 45s .
Also note that after loading the game it runs smoothly. Only the loading time is the problem.
I have written all the info which might be helpful. Someone please help me.
Thanx in advance :-)

Reply With Quote


