This isn't quite a game yet, but use w to jump, a and d to move side to side, and left click to shoot a grappling hook. You can only swing when you're in the air.
This is a project that I made more for myself working towards making a character who had a grappling hook that he could swing on. I'm getting pretty close now. I made this with some help from a mentor and an equation found here: http://hyperphysics.phy-astr.gsu.edu/hbase/pend.html. The program is inspired by the games Final Ninja and Final Ninja Zero.