Advertisement
CGar

customized checkers.js from board-gamer-2d by thejoshwolfe

Apr 14th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module.exports = {
  2.   roles: [
  3.     { id: "red",   name: "Red",   },
  4.     { id: "blue",  name: "Blue",  },
  5.     { id: "black", name: "Black", },
  6.   ],
  7.   objects: [
  8. //     {
  9. //       faces: ["checkers/board.png"],
  10. //       locked: true,
  11. //       x: 200,
  12. //       y: 200,
  13. //       width: 400,
  14. //       height: 400,
  15. //       snapZones: [
  16. //         { cellWidth: 50, cellHeight: 50 },
  17. //       ],
  18. //     },
  19. //     {
  20. //       id: "checkersPiece",
  21. //       prototype: true,
  22. //       width: 50,
  23. //       height: 50,
  24. //     },
  25. //     {
  26. //       id: "redPiece",
  27. //       prototype: true,
  28. //       prototypes: ["checkersPiece"],
  29. //       faces: [
  30. //         "checkers/red_pawn.png",
  31. //         "checkers/red_king.png",
  32. //       ],
  33. //     },
  34. //     {
  35. //       id: "blackPiece",
  36. //       prototype: true,
  37. //       prototypes: ["checkersPiece"],
  38. //       faces: [
  39. //         "checkers/black_pawn.png",
  40. //         "checkers/black_king.png",
  41. //       ],
  42. //     },
  43. //     { prototypes: ["redPiece"],   x: 250, y: 200},
  44. //     { prototypes: ["redPiece"],   x: 350, y: 200},
  45. //     { prototypes: ["redPiece"],   x: 450, y: 200},
  46. //     { prototypes: ["redPiece"],   x: 550, y: 200},
  47. //     { prototypes: ["redPiece"],   x: 200, y: 250},
  48. //     { prototypes: ["redPiece"],   x: 300, y: 250},
  49. //     { prototypes: ["redPiece"],   x: 400, y: 250},
  50. //     { prototypes: ["redPiece"],   x: 500, y: 250},
  51. //     { prototypes: ["redPiece"],   x: 250, y: 300},
  52. //     { prototypes: ["redPiece"],   x: 350, y: 300},
  53. //     { prototypes: ["redPiece"],   x: 450, y: 300},
  54. //     { prototypes: ["redPiece"],   x: 550, y: 300},
  55. //     { prototypes: ["blackPiece"], x: 200, y: 550},
  56. //     { prototypes: ["blackPiece"], x: 300, y: 550},
  57. //     { prototypes: ["blackPiece"], x: 400, y: 550},
  58. //     { prototypes: ["blackPiece"], x: 500, y: 550},
  59. //     { prototypes: ["blackPiece"], x: 250, y: 500},
  60. //     { prototypes: ["blackPiece"], x: 350, y: 500},
  61. //     { prototypes: ["blackPiece"], x: 450, y: 500},
  62. //     { prototypes: ["blackPiece"], x: 550, y: 500},
  63. //     { prototypes: ["blackPiece"], x: 200, y: 450},
  64. //     { prototypes: ["blackPiece"], x: 300, y: 450},
  65. //     { prototypes: ["blackPiece"], x: 400, y: 450},
  66. //     { prototypes: ["blackPiece"], x: 500, y: 450},
  67. //
  68. //     {
  69. //       id: "d6",
  70. //       prototype: true,
  71. //       width: 25,
  72. //       height: 25,
  73. //       faces: [
  74. //         "dice/d6_1.png",
  75. //         "dice/d6_2.png",
  76. //         "dice/d6_3.png",
  77. //         "dice/d6_4.png",
  78. //         "dice/d6_5.png",
  79. //         "dice/d6_6.png",
  80. //       ],
  81. //     },
  82. //     { prototypes: ["d6"], x: 650, y: 400},
  83. //     { prototypes: ["d6"], x: 675, y: 400},
  84.  
  85.     {
  86.       id: "frenchCard",
  87.       prototype: true,
  88.       x: 100,
  89.       y: 400,
  90.       width: 50,
  91.       height: 70,
  92.       back: "french_deck/back.png",
  93.     },
  94.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 0*560)+","+(0*780)+",560,780"},
  95.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 1*560)+","+(0*780)+",560,780"},
  96.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 2*560)+","+(0*780)+",560,780"},
  97.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 3*560)+","+(0*780)+",560,780"},
  98.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 4*560)+","+(0*780)+",560,780"},
  99.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 5*560)+","+(0*780)+",560,780"},
  100.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 6*560)+","+(0*780)+",560,780"},
  101.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 7*560)+","+(0*780)+",560,780"},
  102.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 8*560)+","+(0*780)+",560,780"},
  103.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 9*560)+","+(0*780)+",560,780"},
  104.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+(10*560)+","+(0*780)+",560,780"},
  105.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+(11*560)+","+(0*780)+",560,780"},
  106.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+(12*560)+","+(0*780)+",560,780"},
  107.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 0*560)+","+(1*780)+",560,780"},
  108.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 1*560)+","+(1*780)+",560,780"},
  109.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 2*560)+","+(1*780)+",560,780"},
  110.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 3*560)+","+(1*780)+",560,780"},
  111.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 4*560)+","+(1*780)+",560,780"},
  112.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 5*560)+","+(1*780)+",560,780"},
  113.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 6*560)+","+(1*780)+",560,780"},
  114.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 7*560)+","+(1*780)+",560,780"},
  115.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 8*560)+","+(1*780)+",560,780"},
  116.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 9*560)+","+(1*780)+",560,780"},
  117.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+(10*560)+","+(1*780)+",560,780"},
  118.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+(11*560)+","+(1*780)+",560,780"},
  119.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+(12*560)+","+(1*780)+",560,780"},
  120.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 0*560)+","+(3*780)+",560,780"},
  121.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 1*560)+","+(3*780)+",560,780"},
  122.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 2*560)+","+(3*780)+",560,780"},
  123.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 3*560)+","+(3*780)+",560,780"},
  124.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 4*560)+","+(3*780)+",560,780"},
  125.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 5*560)+","+(3*780)+",560,780"},
  126.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 6*560)+","+(3*780)+",560,780"},
  127.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 7*560)+","+(3*780)+",560,780"},
  128.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 8*560)+","+(3*780)+",560,780"},
  129.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 9*560)+","+(3*780)+",560,780"},
  130.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+(10*560)+","+(3*780)+",560,780"},
  131.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+(11*560)+","+(3*780)+",560,780"},
  132.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+(12*560)+","+(3*780)+",560,780"},
  133.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 0*560)+","+(2*780)+",560,780"},
  134.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 1*560)+","+(2*780)+",560,780"},
  135.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 2*560)+","+(2*780)+",560,780"},
  136.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 3*560)+","+(2*780)+",560,780"},
  137.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 4*560)+","+(2*780)+",560,780"},
  138.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 5*560)+","+(2*780)+",560,780"},
  139.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 6*560)+","+(2*780)+",560,780"},
  140.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 7*560)+","+(2*780)+",560,780"},
  141.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 8*560)+","+(2*780)+",560,780"},
  142.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+( 9*560)+","+(2*780)+",560,780"},
  143.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+(10*560)+","+(2*780)+",560,780"},
  144.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+(11*560)+","+(2*780)+",560,780"},
  145.     { prototypes: ["frenchCard"], front: "french_deck/fronts.png#"+(12*560)+","+(2*780)+",560,780"},
  146.  
  147.     {
  148.       id: "handScreen",
  149.       prototype: true,
  150.       locked: true,
  151.       x: 100,
  152.       width:  600,
  153.       height: 100,
  154.       hideFaces: ["front"],
  155.       snapZones: [{}],
  156.     },
  157.     { prototypes: ["handScreen"], y:   0, visionWhitelist: ["red"  ], backgroundColor: "rgba(255,0,0,alpha)", labelPlayerName: "red",   },
  158.     { prototypes: ["handScreen"], y: 350, visionWhitelist: ["blue" ], backgroundColor: "rgba(0,0,255,alpha)", labelPlayerName: "blue",   },
  159.     { prototypes: ["handScreen"], y: 700, visionWhitelist: ["black"], backgroundColor: "rgba(0,0,0,alpha)",   labelPlayerName: "black", },
  160.   ],
  161. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement