player.js 203 B

12345678910111213
  1. function Player(x, y) {
  2. this.x = x;
  3. this.y = y;
  4. this.update = function(delta) {
  5. //
  6. };
  7. this.draw = function() {
  8. fill(200, 0 , 0);
  9. image(sprites.get(0, 112, 16, 16), 100, 100, 32, 32);
  10. };
  11. };