Two handlers sharing time

Shari gogypsy at bellsouth.net
Tue Dec 18 17:53:01 EST 2001


>The efficiency of this may be questionable depending on what's being
>processed.  It would help to know what you're doing when setting up data
>that takes long enough to justify preoccupying the user.

This is a level game.  When you enter a new level, it sets up a 
random level.  One of the most time consuming tasks is that it 
randomly places a number of objects on the gameboard.  It must check 
to make sure the object doesn't overlap any other objects, and if it 
does, move it to a new location.

I tried 8 ways to Sunday to make this happen in a matter of seconds, 
but it simply doesn't.  And if it isn't instantaneous, something 
needs to occupy the player.

The idea I came up with to keep the user busy while the level is 
being set up, I am very happy with this, and consider it a very good 
addition to the game overall.

Unfortunately, while the user can see the busy work, he can't do 
anything with it until the level is complete.  Basically the user 
will be typing text in a field, or clicking on buttons.  I will 
experiment with an idle handler or a send handler to see if I can 
coax them to coexist.

-- 
--Shareware Games for the Mac--
http://www.gypsyware.com
http://www.gypsygames.com




More information about the metacard mailing list