Not only the keyboard of my MacBook lits up in the dark, it seems to be equiped with a Sudden Motion Sensor or SMS.
This motion sensor is designed to protect your hard disk when the computer is dropped or undergoes severe vibration.
The Sudden Motion Sensor is designed to detect unusually strong vibrations, sudden changes in position or accelerated movement. If the computer is dropped, the Sudden Motion Sensor instantly parks the hard drive heads to help reduce the risk of damage to the hard drive on impact.
Ofcourse the sensor can be used for more vital applications as well. How about a game of Pong anyone? It has been done in Processing, so why not give it a try in Flash. Just for the sake of it!
Here is an example I've build using Java and Flash.
I know the ball is going at 'loser' speed, but hey it's MY party and I cry if I want to!
Download the source code here:
http://www.seeingisbelieving.be/blog/AppleSMS2Flash.zip
Included are the Unimotion library and the Java API to work with it, the Flash files and the Java socket server.
The big picture is you use the Unimotion library in Java for detecting the motion and then send it to the Flash through a Java socket server.
Related links:
Lincoln Ramsey (created Unimotion library)
Daniel Shiffman (created the Java API for Unimotion)
Grant Skinner (for the Flash collision detection)
Info about the SMS
Posts tonen met het label as2. Alle posts tonen
Posts tonen met het label as2. Alle posts tonen
zondag, maart 11, 2007
woensdag, januari 10, 2007
Sandy: a flash AS2 3D engine
Here's a little test I did with the Sandy 3D engine.
You can find it here:
http://osflash.org/sandy
In the video you see Helena, my 2 year old daughter cheering 'pianisimokey'. She rules!
You can find it here:
http://osflash.org/sandy
In the video you see Helena, my 2 year old daughter cheering 'pianisimokey'. She rules!
donderdag, november 02, 2006
Animating with code
A very fine open source project for animating everything in Flash, including the new filters:
http://www.mosessupposes.com/Fuse/
Check it out yeah!
http://www.mosessupposes.com/Fuse/
Check it out yeah!
Abonneren op:
Posts (Atom)