I want to make a bouncy platformer as in this https://www.youtube.com/watch?v=WMrmGUdWprA.
This game is not tile based, but there are sloppy lines going in any direction.
I see two challenges:
- How to represent and make levels. This includes generating arbitrary paths, also paths has to have normals so I can draw two lines for the edges of the path.
How to represent this path? I need an api similar to Path2D, and I need to be able get the points that make up the lines of the path, so I can draw it. Also maybe I need the normals of the path so I can draw two lines opposite each other that make up the tunnel. How to generate a random tunnel using this Path2D api? For more advanced, The tunnel randomly shrinks with sharp spikes and sometimes contains smooth square shapes lines.
- How to do collision detection against sloppy lines.