IOGamer

M#LaserBattle

May 31st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.06 KB | None | 0 0
  1. var Pulsar_501 = '{"name":"Fly","level":5,"model":1,"size":3.6,"specs":{"shield":{"capacity":[140,140],"reload":[10,10]},"generator":{"capacity":[450,450],"reload":[90,90]},"ship":{"mass":180,"speed":[120,120],"rotation":[60,60],"acceleration":[90,90]}},"bodies":{"main":{"section_segments":12,"offset":{"x":0,"y":20,"z":40},"position":{"x":[0,0,0,0,0,0,0,0,0,0],"y":[-24,-22,-18,-14,-8,8,14,18,22,24],"z":[-10,-6,-3,-1,0,0,-1,-3,-6,-10]},"width":[10,20,25,35,40,40,35,25,20,10],"height":[0,1,2,3,4,4,3,2,1,0],"angle":90,"propeller":false,"texture":[2,2,3,3,16,3,3,2,2]},"cockpit":{"section_segments":12,"offset":{"x":30,"y":20,"z":-46},"position":{"x":[0,0,0,0,0,0,0,0,0,0],"y":[-24,-22,-18,-14,-6,6,12,13,11,9],"z":[11,8,6,5,8,20,28,34,36,36]},"width":[10,20,25,35,40,40,35,25,20,10],"height":[0,1,2,3,4,4,3,2,1,0],"angle":90,"propeller":false,"texture":[2,2,3,3,16,3,3,2,2]},"cannon":{"section_segments":8,"offset":{"x":0,"y":-40,"z":0},"position":{"x":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"y":[-10,10,0,5,20,35,40,45,50,55,60,65,70,75,84,87],"z":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},"width":[0,1,2,4,3,5,10,4,4,10,4,4,10,4,3,0],"height":[0,1,2,4,3,5,10,4,4,10,4,4,10,4,3,0],"angle":0,"laser":{"damage":[4.5,4.5],"rate":2,"type":1,"speed":[110,110],"number":100,"error":0,"recoil":4},"propeller":false,"texture":[17,17,11,10,10,17,17,11,17,17,11,17,17,10,4]}},"wings":{"main":{"length":[20,20],"width":[5,5,5],"angle":[60,60],"position":[0,5,10],"doubleside":true,"offset":{"x":0,"y":23,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing2":{"length":[20,20],"width":[5,5,5],"angle":[60,60],"position":[0,0,0],"doubleside":true,"offset":{"x":0,"y":23,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing3":{"length":[20,20],"width":[5,5,5],"angle":[60,60],"position":[0,10,20],"doubleside":true,"offset":{"x":0,"y":4,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing4":{"length":[20,20],"width":[5,5,5],"angle":[60,60],"position":[0,0,0],"doubleside":true,"offset":{"x":0,"y":4,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing5":{"length":[20,21],"width":[5,5,5],"angle":[60,60],"position":[0,0,0],"doubleside":true,"offset":{"x":0,"y":4,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing6":{"length":[23,22],"width":[5,5,5],"angle":[-20,-20],"position":[0,0,0],"doubleside":true,"offset":{"x":0,"y":23,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing7":{"length":[23,22],"width":[5,5,5],"angle":[-20,-20],"position":[0,10,20],"doubleside":true,"offset":{"x":0,"y":23,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing8":{"length":[23,22],"width":[5,5,5],"angle":[-20,-20],"position":[0,10,20],"doubleside":true,"offset":{"x":0,"y":4,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing9":{"length":[23,22],"width":[5,5,5],"angle":[-20,-20],"position":[0,0,0],"doubleside":true,"offset":{"x":0,"y":4,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing10":{"length":[23,22],"width":[5,5,5],"angle":[-70,-70],"position":[0,0,0],"doubleside":true,"offset":{"x":0,"y":23,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing11":{"length":[23,22],"width":[5,5,5],"angle":[-70,-70],"position":[0,10,20],"doubleside":true,"offset":{"x":0,"y":23,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing12":{"length":[23,22],"width":[5,5,5],"angle":[-70,-70],"position":[0,10,20],"doubleside":true,"offset":{"x":0,"y":4,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing13":{"length":[23,22],"width":[5,5,5],"angle":[-70,-70],"position":[0,0,0],"doubleside":true,"offset":{"x":0,"y":4,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]}},"typespec":{"name":"Pulsar","level":5,"model":1,"code":501,"specs":{"shield":{"capacity":[140,140],"reload":[10,10]},"generator":{"capacity":[450,450],"reload":[90,90]},"ship":{"mass":180,"speed":[120,120],"rotation":[60,60],"acceleration":[90,90]}},"shape":[3.6,2.803,1.512,1.551,1.524,1.487,1.477,2.447,2.969,3.147,3.211,3.152,3.117,3.12,3.196,3.329,3.533,3.822,4.247,4.785,5.02,5.038,4.773,4.273,4.358,4.328,4.358,4.273,4.773,5.038,5.02,4.785,4.247,3.822,3.533,3.329,3.196,3.12,3.117,3.152,3.211,3.147,2.969,2.447,1.477,1.487,1.524,1.551,1.512,2.803],"lasers":[{"x":0,"y":-3.6,"z":0,"angle":0,"damage":[4.5,4.5],"rate":2,"type":1,"speed":[110,110],"number":100,"spread":0,"error":0,"recoil":4}],"radius":5.038}}';
  2. var Pulsar_101 = '{"name":"Pulsar","level":1,"model":1,"size":3.6,"specs":{"shield":{"capacity":[140,140],"reload":[10,10]},"generator":{"capacity":[450,450],"reload":[90,90]},"ship":{"mass":180,"speed":[120,120],"rotation":[60,60],"acceleration":[90,90]}},"bodies":{"main":{"section_segments":12,"offset":{"x":0,"y":20,"z":40},"position":{"x":[0,0,0,0,0,0,0,0,0,0],"y":[-24,-22,-18,-14,-8,8,14,18,22,24],"z":[-10,-6,-3,-1,0,0,-1,-3,-6,-10]},"width":[10,20,25,35,40,40,35,25,20,10],"height":[0,1,2,3,4,4,3,2,1,0],"angle":90,"propeller":false,"texture":[2,2,3,3,16,3,3,2,2]},"cockpit":{"section_segments":12,"offset":{"x":30,"y":20,"z":-46},"position":{"x":[0,0,0,0,0,0,0,0,0,0],"y":[-24,-22,-18,-14,-6,6,12,13,11,9],"z":[11,8,6,5,8,20,28,34,36,36]},"width":[10,20,25,35,40,40,35,25,20,10],"height":[0,1,2,3,4,4,3,2,1,0],"angle":90,"propeller":false,"texture":[2,2,3,3,16,3,3,2,2]},"cannon":{"section_segments":8,"offset":{"x":0,"y":-40,"z":0},"position":{"x":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"y":[-10,10,0,5,20,35,40,45,50,55,60,65,70,75,84,87],"z":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},"width":[0,1,2,4,3,5,10,4,4,10,4,4,10,4,3,0],"height":[0,1,2,4,3,5,10,4,4,10,4,4,10,4,3,0],"angle":0,"laser":{"damage":[4.5,4.5],"rate":2,"type":1,"speed":[110,110],"number":100,"error":0,"recoil":4},"propeller":false,"texture":[17,17,11,10,10,17,17,11,17,17,11,17,17,10,4]}},"wings":{"main":{"length":[20,20],"width":[5,5,5],"angle":[60,60],"position":[0,5,10],"doubleside":true,"offset":{"x":0,"y":23,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing2":{"length":[20,20],"width":[5,5,5],"angle":[60,60],"position":[0,0,0],"doubleside":true,"offset":{"x":0,"y":23,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing3":{"length":[20,20],"width":[5,5,5],"angle":[60,60],"position":[0,10,20],"doubleside":true,"offset":{"x":0,"y":4,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing4":{"length":[20,20],"width":[5,5,5],"angle":[60,60],"position":[0,0,0],"doubleside":true,"offset":{"x":0,"y":4,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing5":{"length":[20,21],"width":[5,5,5],"angle":[60,60],"position":[0,0,0],"doubleside":true,"offset":{"x":0,"y":4,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing6":{"length":[23,22],"width":[5,5,5],"angle":[-20,-20],"position":[0,0,0],"doubleside":true,"offset":{"x":0,"y":23,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing7":{"length":[23,22],"width":[5,5,5],"angle":[-20,-20],"position":[0,10,20],"doubleside":true,"offset":{"x":0,"y":23,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing8":{"length":[23,22],"width":[5,5,5],"angle":[-20,-20],"position":[0,10,20],"doubleside":true,"offset":{"x":0,"y":4,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing9":{"length":[23,22],"width":[5,5,5],"angle":[-20,-20],"position":[0,0,0],"doubleside":true,"offset":{"x":0,"y":4,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing10":{"length":[23,22],"width":[5,5,5],"angle":[-70,-70],"position":[0,0,0],"doubleside":true,"offset":{"x":0,"y":23,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing11":{"length":[23,22],"width":[5,5,5],"angle":[-70,-70],"position":[0,10,20],"doubleside":true,"offset":{"x":0,"y":23,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing12":{"length":[23,22],"width":[5,5,5],"angle":[-70,-70],"position":[0,10,20],"doubleside":true,"offset":{"x":0,"y":4,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]},"wing13":{"length":[23,22],"width":[5,5,5],"angle":[-70,-70],"position":[0,0,0],"doubleside":true,"offset":{"x":0,"y":4,"z":0},"bump":{"position":30,"size":20},"texture":[2,11]}},"typespec":{"name":"Pulsar","level":5,"model":1,"code":101,"specs":{"shield":{"capacity":[140,140],"reload":[10,10]},"generator":{"capacity":[450,450],"reload":[90,90]},"ship":{"mass":180,"speed":[120,120],"rotation":[60,60],"acceleration":[90,90]}},"shape":[3.6,2.803,1.512,1.551,1.524,1.487,1.477,2.447,2.969,3.147,3.211,3.152,3.117,3.12,3.196,3.329,3.533,3.822,4.247,4.785,5.02,5.038,4.773,4.273,4.358,4.328,4.358,4.273,4.773,5.038,5.02,4.785,4.247,3.822,3.533,3.329,3.196,3.12,3.117,3.152,3.211,3.147,2.969,2.447,1.477,1.487,1.524,1.551,1.512,2.803],"lasers":[{"x":0,"y":-3.6,"z":0,"angle":0,"damage":[4.5,4.5],"rate":2,"type":1,"speed":[110,110],"number":100,"spread":0,"error":0,"recoil":4}],"radius":5.038}}';
  3. var ships = [];
  4. ships.push(Pulsar_101),
  5. ships.push(Pulsar_501);
  6.  
  7. this.options = {
  8. root_mode: "deathmatch",
  9. map_name: "Laser Battle",
  10. ships:ships,
  11. survival_level: 8,
  12. reset_tree: true,
  13. starting_ship: 101,
  14. map_size: 40,
  15. map_id: 50,
  16. crystal_value: 1,
  17. asteroids_strength: 4,
  18. };
  19. var timer = 1;
  20. this.tick = function(game) {
  21. if ( timer % 1200 === 0 ) {
  22. game.addAlien({"code":16, "level":Math.round(Math.random()*2)});
  23. }
  24. timer++;
  25. };
Add Comment
Please, Sign In to add comment