people.js 1002 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Entities.susie = {
  2. 'controllable': 1,
  3. 'player': 1,
  4. 'mapFollows': {margin: 3} , // in map units
  5. 'collides': 1,
  6. 'aabb': {t:20/64, b: -20/64, l: -20/64, r: 20/64},
  7. 'position': {x: 126, y:126},
  8. 'nextpos': {x: 126, y:126},
  9. 'velocity': {x: 0, y:0},
  10. 'acceleration': {x: 0, y:0},
  11. 'maxSpeed': 1,
  12. 'state': {loco: 'standing'},
  13. 'movable': {pos: {x:126,y:126}, vel:{x:0,y:0}, acc:{x:0,y:0}},
  14. 'urge': {x: 0, y:0, acc: 0, drag: 1000},
  15. 'lookAt': 'velocity',
  16. 'sprite': {img: 'susie', zoom:2.0, angle: 0},
  17. };
  18. Entities.customer1 = {
  19. 'collides': 1,
  20. 'ai': 1,
  21. 'aabb': {t:10/64, b: -10/64, l: -10/64, r: 10/64},
  22. 'position': {x: 123, y:126},
  23. 'nextpos': {x: 123, y:126},
  24. 'velocity': {x: 0, y:0},
  25. 'acceleration': {x: 0, y:0},
  26. 'maxSpeed': 1,
  27. 'state': {loco: 'standing'},
  28. 'thirst': 49,
  29. 'movable': {pos: {x:126,y:126}, vel:{x:0,y:0}, acc:{x:0,y:0}},
  30. 'urge': {x: 0, y:0, acc: 0, drag: 1000},
  31. 'lookAt': 'velocity',
  32. 'odometer': {allTime: 0},
  33. 'sprite': {img: 'susie', zoom:2.0, angle: 0},
  34. };