Make the flying creature's body match her nose. Pull the sling-shot down to fire (it's not necessary to actually pull the string - anywhere below that is fine).
Hit Spacebar to Toggle Colors, 'e' to switch to Easy Mode, 'd' to switch back to Difficult Mode.

Source: PaintBaaah.java  Sheep.java  Matrix4x4.java  Matrix.java  Vertex.java  Face.java  Graph.java  Shape.java  Sphere.java  Perlin's BufferedApplet.java  Perlin's Cubic.java 

This game is a variation on Professor Perlin's wonderful color matching game. I wanted to do something that was a little more engaging than the other applets I put together during the semester, involved dynamics, and employed a cubic spline or two. I used a Bezier curve for the sling shot. The displacement of the sling depends on how far the user drags the mouse in the y-direction, and the shape of the stretched sling depends on the x-coordinate of the click (actually, on how far the click was from one of the control points of the curve). The force applied to the projectile depends on the displacement (Hooke's law) and the shape of the sling. I use dp/dt = -mg to calculate the trajectory of the projectile, but I didn't use real physics to calculate the angular momentum of the missiles. You can switch to an 'Easy Mode', which means you don't need to match the colors as accurately and you only need to get the missile close to score a hit. The soundtrack was generously supplied by A.C. Jobim.
I hope I haven't squandered any good karma I might have with the gods of music by using it thus.
Back