Trying to learn the basic structure of using the HTML5 canvas tag and JS to create games/animations. Primarily trying to recreate a simplified version (non-scrolling) of Mario Brothers, with interactive boundaries such as coinboxes, hit testing with enemies and magnetism? with enemies.