parameters.js 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. /**
  2. * Created by quanchen on 2014/12/1.
  3. * 参数记录;
  4. *
  5. */
  6. var isTest=true;//是否为本地测试版本 true 是 false 否;
  7. var isNeedFps=false;//是否显示fps帧频;
  8. var username='洛克小蛋蛋'//用户名;
  9. var isNeedTeach=true;//是否出现新手教程;
  10. var isLoadBigPic=true;//是否加载大图;
  11. var defultW=640;
  12. var defultH=1008;
  13. var HEARTNUM=3;//血值;
  14. var CONW=640;
  15. var CONH=1008;
  16. //分数区间;
  17. var scoreInterval=[
  18. [ 0, 1000,0, 0.2],
  19. [20001, 30000,0.21,0.3],
  20. [30001, 40000,0.31,0.4],
  21. [40001, 50000,0.41,0.5],
  22. [50001, 60000,0.51,0.6],
  23. [60001, 70000,0.61,0.7],
  24. [70001, 80000,0.71,0.8],
  25. [80001, 90000,0.81,0.9],
  26. [90001,100000,0.91,1]
  27. ];
  28. var score=0;//分数;
  29. //合并大图数据;
  30. var gamedata0=
  31. {
  32. "images": ["images/images0.png"],
  33. "frames": [
  34. [448, 299, 55, 74],
  35. [448, 425, 45, 74],
  36. [2, 466, 33, 29],
  37. [2, 2, 278, 462],
  38. [448, 238, 61, 59],
  39. [282, 2, 223, 234],
  40. [282, 238, 164, 222],
  41. [448, 375, 48, 48],
  42. [37, 466, 229, 26],
  43. [282, 462, 111, 38]
  44. ],
  45. "animations": {
  46. "Bitmap29":[0],
  47. "Bitmap33":[1],
  48. "E0":[2],
  49. "EE0037":[3],
  50. "EE0038":[4],
  51. "EE0042":[5],
  52. "EE0048":[6],
  53. "EE0052":[7],
  54. "Q6":[8],
  55. "Z3":[9]
  56. },
  57. "texturepacker": [
  58. "SmartUpdateHash: $TexturePacker:SmartUpdate:effaec617119a892c3ac3be8a0f3a30d:278c0070c855f15e2fe7320c3b8373d6:ddba611840aaa9e1d89eeb71897ce6df$",
  59. "Created with TexturePacker (http://www.texturepacker.com) for EaselJS"
  60. ]
  61. }
  62. var gamedata1=
  63. {
  64. "images": ["images/images1.png"],
  65. "frames": [
  66. [124, 366, 170, 66],
  67. [2, 2, 356, 75],
  68. [2, 79, 356, 75],
  69. [360, 2, 149, 156],
  70. [391, 388, 106, 116],
  71. [2, 156, 300, 75],
  72. [124, 434, 265, 75],
  73. [2, 233, 297, 60],
  74. [2, 233, 297, 60],
  75. [2, 295, 294, 69],
  76. [298, 323, 207, 63],
  77. [304, 160, 206, 161],
  78. [2, 388, 120, 120]
  79. ],
  80. "animations": {
  81. "Bitmap28":[0],
  82. "E3":[1],
  83. "E4":[2],
  84. "EE0040":[3],
  85. "EE0050":[4],
  86. "FFFFFF":[5],
  87. "Q2":[6],
  88. "Q3":[7],
  89. "Q3333":[8],
  90. "Q7":[9],
  91. "R2":[10],
  92. "ball17":[11],
  93. "icon":[12]
  94. },
  95. "texturepacker": [
  96. "SmartUpdateHash: $TexturePacker:SmartUpdate:effaec617119a892c3ac3be8a0f3a30d:278c0070c855f15e2fe7320c3b8373d6:ddba611840aaa9e1d89eeb71897ce6df$",
  97. "Created with TexturePacker (http://www.texturepacker.com) for EaselJS"
  98. ]
  99. }
  100. var gamedata2=
  101. {
  102. "images": ["images/images2.png"],
  103. "frames": [
  104. [446, 2, 44, 74],
  105. [446, 78, 44, 74],
  106. [414, 176, 96, 95],
  107. [2, 276, 189, 195],
  108. [2, 2, 262, 272],
  109. [266, 176, 146, 96],
  110. [373, 274, 133, 222],
  111. [193, 276, 178, 172],
  112. [193, 276, 178, 172],
  113. [266, 2, 178, 172]
  114. ],
  115. "animations": {
  116. "Bitmap31":[0],
  117. "Bitmap36":[1],
  118. "E1":[2],
  119. "EE0001":[3],
  120. "EE0046":[4],
  121. "Z2":[5],
  122. "Z4":[6],
  123. "ball1":[7],
  124. "ball25":[8],
  125. "ball5":[9]
  126. },
  127. "texturepacker": [
  128. "SmartUpdateHash: $TexturePacker:SmartUpdate:effaec617119a892c3ac3be8a0f3a30d:278c0070c855f15e2fe7320c3b8373d6:ddba611840aaa9e1d89eeb71897ce6df$",
  129. "Created with TexturePacker (http://www.texturepacker.com) for EaselJS"
  130. ]
  131. }
  132. var gamedata3=
  133. {
  134. "images": ["images/images3.png"],
  135. "frames": [
  136. [255, 152, 107, 104],
  137. [429, 347, 37, 74],
  138. [384, 239, 43, 74],
  139. [429, 271, 41, 74],
  140. [447, 119, 42, 74],
  141. [447, 195, 42, 74],
  142. [384, 315, 43, 74],
  143. [2, 267, 189, 195],
  144. [193, 267, 189, 195],
  145. [2, 2, 251, 263],
  146. [364, 152, 81, 85],
  147. [255, 2, 140, 148],
  148. [397, 2, 85, 115]
  149. ],
  150. "animations": {
  151. "Bitmap26":[0],
  152. "Bitmap30":[1],
  153. "Bitmap32":[2],
  154. "Bitmap34":[3],
  155. "Bitmap35":[4],
  156. "Bitmap37":[5],
  157. "Bitmap38":[6],
  158. "EE0003":[7],
  159. "EE0005":[8],
  160. "EE0044":[9],
  161. "EE0049":[10],
  162. "EE0051":[11],
  163. "Z1":[12]
  164. },
  165. "texturepacker": [
  166. "SmartUpdateHash: $TexturePacker:SmartUpdate:effaec617119a892c3ac3be8a0f3a30d:278c0070c855f15e2fe7320c3b8373d6:ddba611840aaa9e1d89eeb71897ce6df$",
  167. "Created with TexturePacker (http://www.texturepacker.com) for EaselJS"
  168. ]
  169. }
  170. var gamedata4=
  171. {
  172. "images": ["images/images4.png"],
  173. "frames": [
  174. [180, 289, 176, 174],
  175. [2, 282, 176, 177],
  176. [264, 2, 130, 117],
  177. [2, 2, 260, 81],
  178. [2, 85, 189, 195],
  179. [193, 121, 187, 166]
  180. ],
  181. "animations": {
  182. "AA00001":[0],
  183. "AA00007":[1],
  184. "Bitmap27":[2],
  185. "E2":[3],
  186. "EE0007":[4],
  187. "ball19":[5]
  188. },
  189. "texturepacker": [
  190. "SmartUpdateHash: $TexturePacker:SmartUpdate:effaec617119a892c3ac3be8a0f3a30d:278c0070c855f15e2fe7320c3b8373d6:ddba611840aaa9e1d89eeb71897ce6df$",
  191. "Created with TexturePacker (http://www.texturepacker.com) for EaselJS"
  192. ]
  193. }
  194. var gamedata5=
  195. {
  196. "images": ["images/images5.png"],
  197. "frames": [
  198. [190, 2, 176, 174],
  199. [2, 174, 178, 171],
  200. [2, 2, 186, 170],
  201. [2, 347, 171, 163],
  202. [182, 178, 178, 171]
  203. ],
  204. "animations": {
  205. "AA00005":[0],
  206. "ball13":[1],
  207. "ball21":[2],
  208. "ball3":[3],
  209. "ball9":[4]
  210. },
  211. "texturepacker": [
  212. "SmartUpdateHash: $TexturePacker:SmartUpdate:effaec617119a892c3ac3be8a0f3a30d:278c0070c855f15e2fe7320c3b8373d6:ddba611840aaa9e1d89eeb71897ce6df$",
  213. "Created with TexturePacker (http://www.texturepacker.com) for EaselJS"
  214. ]
  215. }
  216. var gamedata6=
  217. {
  218. "images": ["images/images6.png"],
  219. "frames": [
  220. [2, 2, 176, 169],
  221. [180, 173, 174, 168],
  222. [2, 173, 176, 168],
  223. [180, 2, 174, 169]
  224. ],
  225. "animations": {
  226. "AA00003":[0],
  227. "ball11":[1],
  228. "ball23":[2],
  229. "ball7":[3]
  230. },
  231. "texturepacker": [
  232. "SmartUpdateHash: $TexturePacker:SmartUpdate:effaec617119a892c3ac3be8a0f3a30d:278c0070c855f15e2fe7320c3b8373d6:ddba611840aaa9e1d89eeb71897ce6df$",
  233. "Created with TexturePacker (http://www.texturepacker.com) for EaselJS"
  234. ]
  235. }
  236. var gamedataArr=
  237. [
  238. gamedata0,gamedata1,
  239. gamedata2,gamedata3
  240. // gamedata4,
  241. // gamedata5,
  242. // gamedata6
  243. // gamedata7,
  244. // gamedata8,gamedata9,
  245. // gamedata10,gamedata11,
  246. // gamedata12,gamedata13,
  247. // gamedata14,gamedata15,
  248. // gamedata16,gamedata17
  249. ];
  250. SHARE_ICON_URL='http://roco.qq.com/act/a20141208game/images/icon.png';//分享icon地址;
  251. SHARE_URL='http://roco.qq.com/act/a20141208game/index.html';//分享地址;
  252. SHARE_STR='一起来玩洛克王国滚蛋小游戏吧,我一定让你滚得最远!你敢来挑战吗?';//分享文案;
  253. /* |xGv00|5c2ca7f7d33fff3ae48da8866571f766 */