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:
If you are downloading from a mobile here is an alternate link:
I recorded a little demo on YouTube:
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.
Why don’t you guys turn this into a Yatzi game, I’ve been looking for one for ages and there is no such game so far that I can find :-(
I was thinking of that, but doing collision detection on five objects is kind of hard and I don't have the time at the moment to make it nice. I'll see if there is time to do that in the near future. Thanks, -Kalle— Chris · Apr 21, 10:44 AM · #