I am making a 2D game in MonoGame. It revolves around keeping an orb on a path. My first idea was to create a mask using an array or a generic data structure. My second idea was to use sprites surrounding the path and then checking for collisions. I am sure some one here has worked on something similar. I was wondering which was a better approach or if there is an even better way to approach it? I understand asking which is "better" is a very subjective question, when I say "better" I mean: more efficient, easier to implement ( using XML for levels), and easier to extend. Here is an image I used to hash out the bounding box idea. The black is the path and the different gray boxes with red outlines would be the sprites used for collisions.
Thanks in advanced!