function Player(x, y) { this.x = x; this.y = y; this.update = function(delta) { // }; this.draw = function() { fill(200, 0 , 0); image(sprites.get(0, 112, 16, 16), 100, 100, 32, 32); }; };