Note: I am rather new to programming, even more-so game programming, so I apologize if my question is rather broad but it's hard to find a tutorial for this topic.
Description of Project
A simple endless side-scrolling runner similar to Canabalt where the player may tap on the screen to make the character jump. The only movement allowed to the character sprite is along the y axis.
What I Have...
- A scrolling parallax background.
What I Want...
- A character sprite that has a bounding box
- A ground sprite that has a bounding box
- A way to tell when either is touching/intersecting
- A means to keep them from continuing to intersect
What I've Tried...
- Ray Wenderlich's Tutorial (semi-outdated, also is tile-based which I didn't like very much and seemed quite prone to buggy-ness)
There are really two parts to my question:
- For a beginner to physics, is it recommended to just stick with an API like Chipmunk or Box2D?
if first question == FALSE - What is the best way to go about building my own physics engine given the above information?
Thank you in advance for any tips/advice you may share. :)