50_ex Bumpers.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "lives": 3,
  3. "balls": [
  4. {
  5. "position": [
  6. 250,
  7. 50
  8. ],
  9. "radius": 20
  10. }
  11. ],
  12. "flippers": [
  13. {
  14. "position": [ 170, 1080 ],
  15. "side": "LEFT",
  16. "size": 120
  17. },
  18. {
  19. "position": [ 470, 1080 ],
  20. "side": "RIGHT",
  21. "size": 120
  22. }
  23. ],
  24. "bumpers": [
  25. {
  26. "position": [ 200, 260 ],
  27. "radius": 60
  28. },
  29. {
  30. "position": [ 450, 200 ],
  31. "radius": 60
  32. },
  33. {
  34. "position": [ 280, 550 ],
  35. "radius": 80
  36. },
  37. {
  38. "position": [ 480, 500 ],
  39. "radius": 85
  40. }
  41. ],
  42. "rails": [
  43. // left wall
  44. {
  45. "start": [ 0, 0 ],
  46. "end": [ 0, 1080 ]
  47. },
  48. // right wall
  49. {
  50. "start": [ 630, 1080 ],
  51. "end": [ 630, 0 ]
  52. },
  53. // bottom left
  54. {
  55. "start": [ 0, 1080 ],
  56. "end": [ 220, 1180 ]
  57. },
  58. // bottom right
  59. {
  60. "start": [ 420, 1180 ],
  61. "end": [ 630, 1080 ]
  62. }
  63. ]
  64. }