title: Creating Platforms in HTML5 Canvas, Moving Ball
body: <p>I'm new to canvas and have an elementary knowledge of Javascript.  I'm developing a (seemingly) simple game in which a ball rolls from the top left of the screen along a platform.  <img src="https://i.stack.imgur.com/UY3bq.png" alt="image of ball"></p>
  
  <p>So the ball needs to have some kind of physics applied to it (I suppose) so that it not only moves from right to left but that is also has gravity and the ability to fall off the platform.  </p>
  
  <p>I am not sure how to achieve creating the platforms nor the ball physics.  I realize this is an extremely general question - and I'm not asking someone to program this for me - but I just thought I'd poke around a little and see if someone can give me a good push in the right direction.  I'm a little lost here. </p>
  
  <p>Any help would be appreciated!</p>