item.js 218 B

1234567891011121314
  1. function Item() {
  2. this.id = 0;
  3. this.position = {x: 0, y: 0};
  4. this.width = 32;
  5. this.height = 32;
  6. this.color = "green";
  7. this.name = "Item";
  8. this.type = "food";
  9. this.sprite = "food1";
  10. };
  11. module.exports = Item;