User icon
I'm trying to recreate the original classic version of Paperio in 2 weeks as a little challenge.

The algorithm for how the filling algorithm for the paperio clone might work. I'm not focused on filling the actual rectangles themselves yet.

Firstly, whenever the player leaves its blob or whatever, it plots points whenever the player switches direction before it goes back to its blob thing.

For how my algorithm will work:
- First it goes to the first point and then the next point and creates a really thin rectangle.
- Depending on the circumstances it will create a tall or a wide thin rectangle.
- If its a tall rectangle, it'll "stretch" vertically until it hits one of the points. If its a wide rectangle, it'll stretch horizontally.
- When it hits a point, we'll backtrack and look for a next point that is not any of the points of the newly created rectangle.
- Then we repeat the previous steps until we run out of points to go to.

Any flaws? Please let me know!
  • User submitted image
Comments