That is pretty cool... Does this game use the Ultrasonic sensor, or are you saving that for another game?
Thank you, Andy! And thank you for your great work for LeJOS API too.
BBall game did not use the Ultrasonic sensor and unfortunately I still have no idea about where I can use it in other games.
I had designed it for pause games. When nobody in front of the NXTRockBoy, the game pause automatically. But it does not work as what I imagined.
If you download the source, you can find I have written the code for pausing game according to value from ultrasonic sensor. But the code is not invoked. The main issue is there are too many 255 returned from ultrasonic sensor so that the game always pause unexpectedly.
Actually, although one touch sensor is used by the BBall game, but it can run without any sensor except the sensor for reset the NXT position.
btw. I have an interesting idea about how to use the color-light sensor in another game. I want to keep that secret before I finish that.