This week, I was very fascinated with the concept of springs. After watching Professor Dan's tutorial on creating springy motion, I wanted to explore the concept of an 'anchor' and a 'bob' even further, and see if I could alter the relationship between those two particles.
In the tutorial, it seemed like the 'anchor' was a stationary particle, while the bob's velocity was able to be altered according to the location of the anchor itself. I thought it would be interesting to be able to imbue the anchor with some sort of motion as well, to create a push & pull effect. For my first draft, I simply changed the anchor into a 'bob' particle, and set the bob's location to the mouse location on the canvas. As I watched the bob drag the anchor around and off the screen, I couldn't help but think of sumo wrestling:
In sumo wrestling, one of the ways to win is to either toss or pull your opponent out of the ring. When I saw how my bob tossed the anchor out of the canvas, I decided to make a small game where two players are able to control their respective 'bobs' and attempt to push (or pull) the other player out of the canvas.
Link to Sketch (Player 1: Arrow Keys, Player 2: WASD keys):