I don't even know if this is an Android question or a Java question.

I am developing a simple game using Lunarlander as a starting point.

Input is through OnTouch events. This changes the game's state - eg a
touch event may cause some gameplay object to be instantiated.
Obviously I don't want this to occur in the middle of processing.

How do I best synchronise the OnTouch events with the main game loop?
In other environments I have used an "atomic" event (such as creating
a dummy file) as a semaphore to work out when game objects can be
safely read and written. What should I do in Android?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to