Dice throwing “game” for Nokia 5800
My kids weren’t impressed by the sensor test so I tried to make it more interesting by adding more dimensions. Many Nokia phones implement 3D acceleration and it seems that Nokia 5800 isn’t an exception. update I guess there isn’t a dedicated chip on board, but for our purposes the rendering is plenty fast.It’s been a long time since I’ve done matrix calculations, but I managed to get a dice rolling with some textures. The physics of dice rolling are faked, because it would propably take me better part of the year even to come close. The dice is always rotated same way, but the amount is taken from the current speed of the dice and multiplied with magic numbers. I didn’t quite get the effect I wanted, but this was another three hour project and I didn’t want to spend too much time on it.
Anyhow here it is Dice rolling game:
SensorTestVgl.sisx
Settings:
try the settings out, I set them to fairly reasonable values, range of the values is pretty much between 0 – 1.0. No checking for bad values is done so it is possible to get division by zero or something strange. Values are not stored, so restarting the application will reset everything.
Application keeps running in the foreground and doesn’t let the light go out so it will drain battery if left on top. It should be ok in the background, but I haven’t made any measurements.

















