particle.js 564 B

12345678910111213141516171819202122
  1. var Particle = function(position){
  2. Collectible.call(this, position);
  3. this.type = "Higgs";
  4. this.mass = 125;
  5. this.draw_properties = {
  6. colors: ["hsl(0, 100%, 50%)", "hsl(0, 40%, 50%)"],
  7. ratios: [0, 1],
  8. inner_radius: .03,
  9. outer_radius: .13,
  10. inner_center: {x: .07, y: .07},
  11. outer_center: {x: 0, y: 0}
  12. };
  13. this.charge = 0;
  14. this.start_time = 1234;
  15. this.decay_time = 4444;
  16. this.halflife_time = 1000;
  17. this.target = null;
  18. this.velocity = null;
  19. this.points = 125;
  20. this.parent_type = "W";
  21. this.decays = [{particles: ["W", "W"], probability: 1}]
  22. }