An intreactive desktop game for ButterflyFields Company as part of an assignment for the internship.
You can Play the game Here
Note: If You are using firefox, the flip functionality doesn't work
Create a game which can be played on a browser. Simulate the scenario given in the image below:
Player moves a magnet on a path & keeps collecting iron keys on the path. Each time the player's magnet gets attracted to another magnet, the player loses a life.
2.Bar magnets - at fixed positions
3.Iron keys
4.Obstruction on the path
1.Iron keys attract to the bar magnet
2.Two bar magnets repel or attract based on their poles
(Hint: Like poles repel & unlike poles attract)
§Move Right
§Flip (Change orientation of poles)
§Jump
2.Iron key - Disappears when main bar magnet comes close to it
3.Fixed position bar magnets:
§Move upwards when facing a like pole of main bar magnet
§Player loses life when facing an unlike pole of main bar magnet
2.Keys collected