Tuesday 29 August 2017

iOS Accelerometer and CODEF

Some more experimentation with iOS and CODEF! (It SHOULD work on Android, but I do not have a device to test with myself - however a member of the CODEF Facebook group has kindly helped me test this, and states that it works ok).
Using the accelerometer, and some CODEF, fused with some old school tracking sprites, run this, tilt your mobile device screen, and watch the sprites move around and bounce on the edges of your screen!

To be fair, this screenshot doesn't do it justice - but gives you an idea! :-)

NOTE: It WILL work on a desktop PC, but obviously if no suitable accelerometer device is present, all figures will be NULL and no sprites will be displayed.