JavaScript-UI-and-DOM/Workshops/Canvas-and-SVG/05.08.2016 - Jumping Pikachu/src/js/physics.js
// creates a new physcal object by a set of options
creates a new physcal object by a set of options
creates a new physcal object by a set of options
function physicalObject(options) {
        return {
            name: options.name,
            coordinates: options.coordinates, 
            width: options.width, 
            height: options.height, 
            speed: options.speed, 
            move: move, 
            teleportTo: teleportTo, 
            collidesWith: collidesWith 
        };
    }
function physicalObject ( options ) { return { name : options . name , coordinates : options . coordinates , width : options . width , height : options . height , speed : options . speed , move : move , teleportTo : teleportTo , collidesWith : collidesWith } ; }
creates a new physcal object by a set of options
creates a new physcal object by a set of options
// x- and y-axis coordinates  // width of the physical object // height of the physical object // speed for the x and y axises // move method // teleport method // collision method