JavaScript-UI-and-DOM/Workshops/Canvas-and-SVG/05.08.2016 - Jumping Pikachu/src/js/physics.js
// teleports the caller object to the given coordinates and returns it's previous position
teleports the caller object to the given coordinates and returns it's previous position
teleports the caller object to the given coordinates and returns it ' s previous position
function teleportTo(coordinates) {
        var last = this.coordinates;
        this.coordinates = coordinates;
        return last;
    }
function teleportTo ( coordinates ) { var last = this . coordinates ; this . coordinates = coordinates ; return last ; }
teleports the caller object to the given coordinates and returns it's previous position
teleports the caller object to the given coordinates and returns it ' s previous position