Эх сурвалжийг харах

优化改造代码后出现的的一个小BUG

lichao 7 сар өмнө
parent
commit
79cf9f7cd9
93 өөрчлөгдсөн 307 нэмэгдсэн , 459 устгасан
  1. BIN
      assets/fonts/game_over.png
  2. BIN
      assets/fonts/level.png
  3. BIN
      assets/fonts/level_grey.png
  4. BIN
      assets/fonts/props_counter.png
  5. BIN
      assets/loading/level_se/back.png
  6. 5 5
      assets/loading/level_se/back.png.meta
  7. BIN
      assets/loading/level_se/bg0.png
  8. BIN
      assets/loading/level_se/bg1.png
  9. 2 2
      assets/loading/level_se/bg1.png.meta
  10. BIN
      assets/loading/level_se/bg2.png
  11. 3 3
      assets/loading/level_se/bg2.png.meta
  12. BIN
      assets/loading/level_se/lock.png
  13. BIN
      assets/loading/loading_bg.jpg
  14. BIN
      assets/loading/play_btn.png
  15. 5 5
      assets/loading/play_btn.png.meta
  16. BIN
      assets/loading/tittle2.png
  17. 3 3
      assets/loading/tittle2.png.meta
  18. BIN
      assets/res/AdPlayer.png
  19. 9 9
      assets/res/AdPlayer.png.meta
  20. BIN
      assets/res/bg0.jpg
  21. BIN
      assets/res/black_btn.png
  22. 6 6
      assets/res/black_btn.png.meta
  23. BIN
      assets/res/brush_btn.png
  24. 6 6
      assets/res/brush_btn.png.meta
  25. BIN
      assets/res/cancel.png
  26. 6 6
      assets/res/cancel.png.meta
  27. BIN
      assets/res/fb_share.png
  28. 5 5
      assets/res/fb_share.png.meta
  29. BIN
      assets/res/game_over/failed.png
  30. 3 3
      assets/res/game_over/failed.png.meta
  31. BIN
      assets/res/game_over/home_btn.png
  32. 4 4
      assets/res/game_over/home_btn.png.meta
  33. BIN
      assets/res/game_over/next_btn.png
  34. 5 5
      assets/res/game_over/next_btn.png.meta
  35. BIN
      assets/res/game_over/replay_btn.png
  36. 5 5
      assets/res/game_over/replay_btn.png.meta
  37. BIN
      assets/res/game_over/win.png
  38. 3 3
      assets/res/game_over/win.png.meta
  39. BIN
      assets/res/img_bz1.png
  40. 6 6
      assets/res/img_bz1.png.meta
  41. BIN
      assets/res/img_bz2.png
  42. BIN
      assets/res/img_bz3.png
  43. BIN
      assets/res/img_bz4.png
  44. BIN
      assets/res/level.png
  45. 5 5
      assets/res/level.png.meta
  46. BIN
      assets/res/light_btn.png
  47. 6 6
      assets/res/light_btn.png.meta
  48. BIN
      assets/res/repeat_btn.png
  49. 6 6
      assets/res/repeat_btn.png.meta
  50. BIN
      assets/res/rules/click_btn.png
  51. 5 5
      assets/res/rules/click_btn.png.meta
  52. BIN
      assets/res/rules/rules_bg.png
  53. 5 5
      assets/res/rules/rules_bg.png.meta
  54. BIN
      assets/res/rules_btn.png
  55. 5 5
      assets/res/rules_btn.png.meta
  56. BIN
      assets/res/setting/off_btn.png
  57. 5 5
      assets/res/setting/off_btn.png.meta
  58. BIN
      assets/res/setting/on_btn.png
  59. 5 5
      assets/res/setting/on_btn.png.meta
  60. BIN
      assets/res/setting/setting_bg.png
  61. 3 3
      assets/res/setting/setting_bg.png.meta
  62. BIN
      assets/res/setting_btn.png
  63. 6 6
      assets/res/setting_btn.png.meta
  64. BIN
      assets/res/star_1.png
  65. 6 6
      assets/res/star_1.png.meta
  66. BIN
      assets/res/star_2.png
  67. 6 6
      assets/res/star_2.png.meta
  68. BIN
      assets/resources/ares_bndl/icons/0.png
  69. BIN
      assets/resources/ares_bndl/icons/1.png
  70. BIN
      assets/resources/ares_bndl/icons/10.png
  71. BIN
      assets/resources/ares_bndl/icons/11.png
  72. BIN
      assets/resources/ares_bndl/icons/12.png
  73. BIN
      assets/resources/ares_bndl/icons/13.png
  74. BIN
      assets/resources/ares_bndl/icons/14.png
  75. BIN
      assets/resources/ares_bndl/icons/15.png
  76. BIN
      assets/resources/ares_bndl/icons/16.png
  77. BIN
      assets/resources/ares_bndl/icons/17.png
  78. BIN
      assets/resources/ares_bndl/icons/18.png
  79. 3 3
      assets/resources/ares_bndl/icons/18.png.meta
  80. BIN
      assets/resources/ares_bndl/icons/19.png
  81. BIN
      assets/resources/ares_bndl/icons/2.png
  82. BIN
      assets/resources/ares_bndl/icons/20.png
  83. BIN
      assets/resources/ares_bndl/icons/3.png
  84. BIN
      assets/resources/ares_bndl/icons/4.png
  85. BIN
      assets/resources/ares_bndl/icons/5.png
  86. BIN
      assets/resources/ares_bndl/icons/6.png
  87. BIN
      assets/resources/ares_bndl/icons/7.png
  88. BIN
      assets/resources/ares_bndl/icons/8.png
  89. BIN
      assets/resources/ares_bndl/icons/9.png
  90. 121 121
      assets/scenes/game.fire
  91. 8 105
      assets/scenes/loading.fire
  92. 35 90
      assets/scripts/TileBlock.ts
  93. 1 1
      settings/project.json

BIN
assets/fonts/game_over.png


BIN
assets/fonts/level.png


BIN
assets/fonts/level_grey.png


BIN
assets/fonts/props_counter.png


BIN
assets/loading/level_se/back.png


+ 5 - 5
assets/loading/level_se/back.png.meta

@@ -20,12 +20,12 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
-      "offsetY": 0,
+      "offsetX": -0.5,
+      "offsetY": -1,
       "trimX": 15,
-      "trimY": 25,
-      "width": 70,
-      "height": 62,
+      "trimY": 29,
+      "width": 69,
+      "height": 56,
       "rawWidth": 100,
       "rawHeight": 112,
       "borderTop": 0,

BIN
assets/loading/level_se/bg0.png


BIN
assets/loading/level_se/bg1.png


+ 2 - 2
assets/loading/level_se/bg1.png.meta

@@ -20,11 +20,11 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": -0.5,
+      "offsetX": 0,
       "offsetY": 0,
       "trimX": 0,
       "trimY": 0,
-      "width": 123,
+      "width": 124,
       "height": 124,
       "rawWidth": 124,
       "rawHeight": 124,

BIN
assets/loading/level_se/bg2.png


+ 3 - 3
assets/loading/level_se/bg2.png.meta

@@ -20,11 +20,11 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0.5,
+      "offsetX": 0,
       "offsetY": 0,
-      "trimX": 1,
+      "trimX": 0,
       "trimY": 0,
-      "width": 123,
+      "width": 124,
       "height": 124,
       "rawWidth": 124,
       "rawHeight": 124,

BIN
assets/loading/level_se/lock.png


BIN
assets/loading/loading_bg.jpg


BIN
assets/loading/play_btn.png


+ 5 - 5
assets/loading/play_btn.png.meta

@@ -20,12 +20,12 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
-      "offsetY": 0,
-      "trimX": 30,
-      "trimY": 10,
+      "offsetX": 1,
+      "offsetY": -5.5,
+      "trimX": 31,
+      "trimY": 15,
       "width": 369,
-      "height": 128,
+      "height": 129,
       "rawWidth": 429,
       "rawHeight": 148,
       "borderTop": 0,

BIN
assets/loading/tittle2.png


+ 3 - 3
assets/loading/tittle2.png.meta

@@ -20,11 +20,11 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
+      "offsetX": 0.5,
       "offsetY": 0,
-      "trimX": 0,
+      "trimX": 2,
       "trimY": 0,
-      "width": 401,
+      "width": 398,
       "height": 172,
       "rawWidth": 401,
       "rawHeight": 172,

BIN
assets/res/AdPlayer.png


+ 9 - 9
assets/res/AdPlayer.png.meta

@@ -1,6 +1,6 @@
 {
   "ver": "2.3.7",
-  "uuid": "bbf3e207-e745-4276-b441-2ba409c9ac2d",
+  "uuid": "7047ac0d-857c-458f-a4c6-10991db7330a",
   "importer": "texture",
   "type": "sprite",
   "wrapMode": "clamp",
@@ -14,18 +14,18 @@
   "subMetas": {
     "AdPlayer": {
       "ver": "1.0.6",
-      "uuid": "798f56e9-4ec9-42d0-86be-61b93c1dfe0b",
+      "uuid": "8560650b-6d7b-491e-bc5a-4c02c36f689c",
       "importer": "sprite-frame",
-      "rawTextureUuid": "bbf3e207-e745-4276-b441-2ba409c9ac2d",
+      "rawTextureUuid": "7047ac0d-857c-458f-a4c6-10991db7330a",
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
-      "offsetY": 0,
-      "trimX": 0,
-      "trimY": 0,
-      "width": 200,
-      "height": 200,
+      "offsetX": 0.5,
+      "offsetY": -3.5,
+      "trimX": 16,
+      "trimY": 25,
+      "width": 169,
+      "height": 157,
       "rawWidth": 200,
       "rawHeight": 200,
       "borderTop": 0,

BIN
assets/res/bg0.jpg


BIN
assets/res/black_btn.png


+ 6 - 6
assets/res/black_btn.png.meta

@@ -20,12 +20,12 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
-      "offsetY": -8,
-      "trimX": 21,
-      "trimY": 25,
-      "width": 136,
-      "height": 140,
+      "offsetX": 0.5,
+      "offsetY": -4.5,
+      "trimX": 22,
+      "trimY": 22,
+      "width": 135,
+      "height": 139,
       "rawWidth": 178,
       "rawHeight": 174,
       "borderTop": 0,

BIN
assets/res/brush_btn.png


+ 6 - 6
assets/res/brush_btn.png.meta

@@ -20,12 +20,12 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
-      "offsetY": -8,
-      "trimX": 21,
-      "trimY": 25,
-      "width": 136,
-      "height": 140,
+      "offsetX": 0.5,
+      "offsetY": -4.5,
+      "trimX": 22,
+      "trimY": 22,
+      "width": 135,
+      "height": 139,
       "rawWidth": 178,
       "rawHeight": 174,
       "borderTop": 0,

BIN
assets/res/cancel.png


+ 6 - 6
assets/res/cancel.png.meta

@@ -20,12 +20,12 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
-      "offsetY": 0,
-      "trimX": 19,
-      "trimY": 27,
-      "width": 58,
-      "height": 52,
+      "offsetX": 2.5,
+      "offsetY": -1,
+      "trimX": 22,
+      "trimY": 24,
+      "width": 57,
+      "height": 60,
       "rawWidth": 96,
       "rawHeight": 106,
       "borderTop": 0,

BIN
assets/res/fb_share.png


+ 5 - 5
assets/res/fb_share.png.meta

@@ -20,12 +20,12 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
-      "offsetY": 1,
+      "offsetX": 0.5,
+      "offsetY": -3,
       "trimX": 11,
-      "trimY": 9,
-      "width": 58,
-      "height": 58,
+      "trimY": 12,
+      "width": 59,
+      "height": 60,
       "rawWidth": 80,
       "rawHeight": 78,
       "borderTop": 0,

BIN
assets/res/game_over/failed.png


+ 3 - 3
assets/res/game_over/failed.png.meta

@@ -21,11 +21,11 @@
       "trimThreshold": 1,
       "rotated": false,
       "offsetX": 0,
-      "offsetY": 0,
+      "offsetY": 1,
       "trimX": 0,
-      "trimY": 0,
+      "trimY": 5,
       "width": 526,
-      "height": 114,
+      "height": 102,
       "rawWidth": 526,
       "rawHeight": 114,
       "borderTop": 0,

BIN
assets/res/game_over/home_btn.png


+ 4 - 4
assets/res/game_over/home_btn.png.meta

@@ -21,11 +21,11 @@
       "trimThreshold": 1,
       "rotated": false,
       "offsetX": 0,
-      "offsetY": 0,
-      "trimX": 30,
+      "offsetY": -2,
+      "trimX": 29,
       "trimY": 30,
-      "width": 94,
-      "height": 93,
+      "width": 96,
+      "height": 97,
       "rawWidth": 154,
       "rawHeight": 153,
       "borderTop": 0,

BIN
assets/res/game_over/next_btn.png


+ 5 - 5
assets/res/game_over/next_btn.png.meta

@@ -21,11 +21,11 @@
       "trimThreshold": 1,
       "rotated": false,
       "offsetX": 1,
-      "offsetY": 0,
-      "trimX": 38,
-      "trimY": 14,
-      "width": 252,
-      "height": 93,
+      "offsetY": -4.5,
+      "trimX": 10,
+      "trimY": 9,
+      "width": 308,
+      "height": 112,
       "rawWidth": 326,
       "rawHeight": 121,
       "borderTop": 0,

BIN
assets/res/game_over/replay_btn.png


+ 5 - 5
assets/res/game_over/replay_btn.png.meta

@@ -21,11 +21,11 @@
       "trimThreshold": 1,
       "rotated": false,
       "offsetX": 1,
-      "offsetY": 0,
-      "trimX": 38,
-      "trimY": 14,
-      "width": 252,
-      "height": 93,
+      "offsetY": -4.5,
+      "trimX": 10,
+      "trimY": 9,
+      "width": 308,
+      "height": 112,
       "rawWidth": 326,
       "rawHeight": 121,
       "borderTop": 0,

BIN
assets/res/game_over/win.png


+ 3 - 3
assets/res/game_over/win.png.meta

@@ -21,11 +21,11 @@
       "trimThreshold": 1,
       "rotated": false,
       "offsetX": 0,
-      "offsetY": 0,
+      "offsetY": 1,
       "trimX": 0,
-      "trimY": 0,
+      "trimY": 5,
       "width": 526,
-      "height": 114,
+      "height": 102,
       "rawWidth": 526,
       "rawHeight": 114,
       "borderTop": 0,

BIN
assets/res/img_bz1.png


+ 6 - 6
assets/res/img_bz1.png.meta

@@ -20,12 +20,12 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
-      "offsetY": 0,
-      "trimX": 0,
-      "trimY": 0,
-      "width": 604,
-      "height": 115,
+      "offsetX": 0.5,
+      "offsetY": -0.5,
+      "trimX": 1,
+      "trimY": 1,
+      "width": 603,
+      "height": 114,
       "rawWidth": 604,
       "rawHeight": 115,
       "borderTop": 0,

BIN
assets/res/img_bz2.png


BIN
assets/res/img_bz3.png


BIN
assets/res/img_bz4.png


BIN
assets/res/level.png


+ 5 - 5
assets/res/level.png.meta

@@ -20,12 +20,12 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
+      "offsetX": 1,
       "offsetY": -1,
-      "trimX": 0,
-      "trimY": 2,
-      "width": 177,
-      "height": 54,
+      "trimX": 4,
+      "trimY": 3,
+      "width": 171,
+      "height": 52,
       "rawWidth": 177,
       "rawHeight": 56,
       "borderTop": 0,

BIN
assets/res/light_btn.png


+ 6 - 6
assets/res/light_btn.png.meta

@@ -20,12 +20,12 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
-      "offsetY": -8,
-      "trimX": 21,
-      "trimY": 25,
-      "width": 136,
-      "height": 140,
+      "offsetX": 0.5,
+      "offsetY": -4.5,
+      "trimX": 22,
+      "trimY": 22,
+      "width": 135,
+      "height": 139,
       "rawWidth": 178,
       "rawHeight": 174,
       "borderTop": 0,

BIN
assets/res/repeat_btn.png


+ 6 - 6
assets/res/repeat_btn.png.meta

@@ -20,12 +20,12 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
-      "offsetY": -8,
-      "trimX": 21,
-      "trimY": 25,
-      "width": 136,
-      "height": 140,
+      "offsetX": 1,
+      "offsetY": -4.5,
+      "trimX": 23,
+      "trimY": 22,
+      "width": 134,
+      "height": 139,
       "rawWidth": 178,
       "rawHeight": 174,
       "borderTop": 0,

BIN
assets/res/rules/click_btn.png


+ 5 - 5
assets/res/rules/click_btn.png.meta

@@ -20,12 +20,12 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
-      "offsetY": 0,
+      "offsetX": 1,
+      "offsetY": -5.5,
       "trimX": 33,
-      "trimY": 12,
-      "width": 306,
-      "height": 112,
+      "trimY": 17,
+      "width": 308,
+      "height": 113,
       "rawWidth": 372,
       "rawHeight": 136,
       "borderTop": 0,

BIN
assets/res/rules/rules_bg.png


+ 5 - 5
assets/res/rules/rules_bg.png.meta

@@ -20,11 +20,11 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
-      "offsetY": -2,
-      "trimX": 29,
-      "trimY": 49,
-      "width": 720,
+      "offsetX": 0.5,
+      "offsetY": -6,
+      "trimX": 28,
+      "trimY": 53,
+      "width": 723,
       "height": 1035,
       "rawWidth": 778,
       "rawHeight": 1129,

BIN
assets/res/rules_btn.png


+ 5 - 5
assets/res/rules_btn.png.meta

@@ -21,11 +21,11 @@
       "trimThreshold": 1,
       "rotated": false,
       "offsetX": 1,
-      "offsetY": 2,
-      "trimX": 19,
-      "trimY": 19,
-      "width": 73,
-      "height": 75,
+      "offsetY": -3.5,
+      "trimX": 18,
+      "trimY": 24,
+      "width": 75,
+      "height": 76,
       "rawWidth": 109,
       "rawHeight": 117,
       "borderTop": 0,

BIN
assets/res/setting/off_btn.png


+ 5 - 5
assets/res/setting/off_btn.png.meta

@@ -20,12 +20,12 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
-      "offsetY": 0,
-      "trimX": 27,
-      "trimY": 11,
+      "offsetX": 1,
+      "offsetY": -2,
+      "trimX": 28,
+      "trimY": 12,
       "width": 143,
-      "height": 56,
+      "height": 58,
       "rawWidth": 197,
       "rawHeight": 78,
       "borderTop": 0,

BIN
assets/res/setting/on_btn.png


+ 5 - 5
assets/res/setting/on_btn.png.meta

@@ -20,12 +20,12 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
-      "offsetY": 0,
-      "trimX": 27,
-      "trimY": 11,
+      "offsetX": 1,
+      "offsetY": -2,
+      "trimX": 28,
+      "trimY": 12,
       "width": 143,
-      "height": 56,
+      "height": 58,
       "rawWidth": 197,
       "rawHeight": 78,
       "borderTop": 0,

BIN
assets/res/setting/setting_bg.png


+ 3 - 3
assets/res/setting/setting_bg.png.meta

@@ -20,11 +20,11 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
+      "offsetX": -0.5,
       "offsetY": 0,
-      "trimX": 0,
+      "trimX": 9,
       "trimY": 0,
-      "width": 702,
+      "width": 683,
       "height": 447,
       "rawWidth": 702,
       "rawHeight": 447,

BIN
assets/res/setting_btn.png


+ 6 - 6
assets/res/setting_btn.png.meta

@@ -20,12 +20,12 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
-      "offsetY": 0,
-      "trimX": 21,
-      "trimY": 23,
-      "width": 67,
-      "height": 71,
+      "offsetX": 1,
+      "offsetY": -3.5,
+      "trimX": 18,
+      "trimY": 24,
+      "width": 75,
+      "height": 76,
       "rawWidth": 109,
       "rawHeight": 117,
       "borderTop": 0,

BIN
assets/res/star_1.png


+ 6 - 6
assets/res/star_1.png.meta

@@ -20,12 +20,12 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0.5,
-      "offsetY": -0.5,
-      "trimX": 1,
-      "trimY": 1,
-      "width": 78,
-      "height": 76,
+      "offsetX": 0,
+      "offsetY": -1,
+      "trimX": 0,
+      "trimY": 2,
+      "width": 79,
+      "height": 75,
       "rawWidth": 79,
       "rawHeight": 77,
       "borderTop": 0,

BIN
assets/res/star_2.png


+ 6 - 6
assets/res/star_2.png.meta

@@ -20,12 +20,12 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0.5,
-      "offsetY": -0.5,
-      "trimX": 1,
-      "trimY": 1,
-      "width": 78,
-      "height": 76,
+      "offsetX": 0,
+      "offsetY": -1,
+      "trimX": 0,
+      "trimY": 2,
+      "width": 79,
+      "height": 75,
       "rawWidth": 79,
       "rawHeight": 77,
       "borderTop": 0,

BIN
assets/resources/ares_bndl/icons/0.png


BIN
assets/resources/ares_bndl/icons/1.png


BIN
assets/resources/ares_bndl/icons/10.png


BIN
assets/resources/ares_bndl/icons/11.png


BIN
assets/resources/ares_bndl/icons/12.png


BIN
assets/resources/ares_bndl/icons/13.png


BIN
assets/resources/ares_bndl/icons/14.png


BIN
assets/resources/ares_bndl/icons/15.png


BIN
assets/resources/ares_bndl/icons/16.png


BIN
assets/resources/ares_bndl/icons/17.png


BIN
assets/resources/ares_bndl/icons/18.png


+ 3 - 3
assets/resources/ares_bndl/icons/18.png.meta

@@ -20,11 +20,11 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": 0,
+      "offsetX": -0.5,
       "offsetY": 0,
-      "trimX": 5,
+      "trimX": 4,
       "trimY": 4,
-      "width": 87,
+      "width": 88,
       "height": 88,
       "rawWidth": 97,
       "rawHeight": 96,

BIN
assets/resources/ares_bndl/icons/19.png


BIN
assets/resources/ares_bndl/icons/2.png


BIN
assets/resources/ares_bndl/icons/20.png


BIN
assets/resources/ares_bndl/icons/3.png


BIN
assets/resources/ares_bndl/icons/4.png


BIN
assets/resources/ares_bndl/icons/5.png


BIN
assets/resources/ares_bndl/icons/6.png


BIN
assets/resources/ares_bndl/icons/7.png


BIN
assets/resources/ares_bndl/icons/8.png


BIN
assets/resources/ares_bndl/icons/9.png


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 121 - 121
assets/scenes/game.fire


+ 8 - 105
assets/scenes/loading.fire

@@ -82,18 +82,15 @@
       },
       {
         "__id__": 11
-      },
-      {
-        "__id__": 13
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 15
+        "__id__": 13
       },
       {
-        "__id__": 16
+        "__id__": 14
       }
     ],
     "_prefab": null,
@@ -361,8 +358,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 401,
-      "height": 172
+      "width": 597,
+      "height": 258
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -374,7 +371,7 @@
       "ctor": "Float64Array",
       "array": [
         0,
-        253.813,
+        60,
         0,
         0,
         0,
@@ -417,7 +414,7 @@
       "__uuid__": "72914e46-b53f-4901-a161-16d6f6aa8e52"
     },
     "_type": 0,
-    "_sizeMode": 1,
+    "_sizeMode": 0,
     "_fillType": 0,
     "_fillCenter": {
       "__type__": "cc.Vec2",
@@ -525,100 +522,6 @@
     "_N$cacheMode": 0,
     "_id": "141hMl18hI67+xY0igt9qO"
   },
-  {
-    "__type__": "cc.Node",
-    "_name": "tittle1",
-    "_objFlags": 0,
-    "_parent": {
-      "__id__": 2
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 12
-      }
-    ],
-    "_prefab": null,
-    "_opacity": 255,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 402,
-      "height": 343
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_trs": {
-      "__type__": "TypedArray",
-      "ctor": "Float64Array",
-      "array": [
-        0,
-        0,
-        0,
-        0,
-        0,
-        0,
-        1,
-        1,
-        1,
-        1
-      ]
-    },
-    "_eulerAngles": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_skewX": 0,
-    "_skewY": 0,
-    "_is3DNode": false,
-    "_groupIndex": 0,
-    "groupIndex": 0,
-    "_id": "3drSlNV2hNdqPKp1+TJhFQ"
-  },
-  {
-    "__type__": "cc.Sprite",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 11
-    },
-    "_enabled": true,
-    "_materials": [
-      {
-        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
-      }
-    ],
-    "_srcBlendFactor": 770,
-    "_dstBlendFactor": 771,
-    "_spriteFrame": {
-      "__uuid__": "94b7ba51-abae-42cc-9ce7-e14f5c773d0c"
-    },
-    "_type": 0,
-    "_sizeMode": 1,
-    "_fillType": 0,
-    "_fillCenter": {
-      "__type__": "cc.Vec2",
-      "x": 0,
-      "y": 0
-    },
-    "_fillStart": 0,
-    "_fillRange": 0,
-    "_isTrimmedMode": true,
-    "_atlas": null,
-    "_id": "fal0s5pqFGwpuybosP0EKz"
-  },
   {
     "__type__": "cc.Node",
     "_name": "New Node",
@@ -630,7 +533,7 @@
     "_active": true,
     "_components": [
       {
-        "__id__": 14
+        "__id__": 12
       }
     ],
     "_prefab": null,
@@ -686,7 +589,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 13
+      "__id__": 11
     },
     "_enabled": true,
     "tileBlock": {

+ 35 - 90
assets/scripts/TileBlock.ts

@@ -12,114 +12,72 @@ export default class TileBlock extends cc.Component {
     @property(cc.Node)
     tileBg: cc.Node = null;
 
+    // 新增的无用变量
+    uselessVariable1 = "This is a useless variable";
+    uselessVariable2 = 123;
+    uselessArray = [1, 2, 3, "Some random values", false];
+
     remove: boolean = false;
     private _type: number;
+
     row: number;
     col: number;
     layer: number;
     aniObj = { c: 0 };
 
-    // 用于记录设置类型属性的次数,假装后续可能用于统计或其他用途
-    private _typeSetCount: number = 0;
-
-    // 获取类型属性的getter方法
     public get type(): number {
         return this._type;
     }
-
-    // 设置类型属性的setter方法,并加载对应的纹理资源设置精灵帧,同时增加一些混淆逻辑
     public set type(value: number) {
         this._type = value;
-        this._typeSetCount++;
-        this.loadAndSetSpriteTextureWithChecks(value);
-    }
-
-    // 加载指定类型的纹理资源并设置精灵帧,添加一些额外的无用检查逻辑来混淆
-    private loadAndSetSpriteTextureWithChecks(value: number): void {
-        // 先进行一个随机条件判断,假装这对加载资源有某种影响
-        if (Math.random() > 0.5 && this._typeSetCount % 2 === 0) {
-            console.log("Performing additional check before loading texture.");
-        }
         cc.resources.load("ares_bndl/icons/" + value, cc.Texture2D, (err, texture: cc.Texture2D) => {
             let sp = new cc.SpriteFrame(texture);
             this.sp_icon.spriteFrame = sp;
-            // 加载完成后再进行一个无用的操作,比如记录一个随机值
-            this.recordRandomValueAfterLoad();
         });
     }
 
-    // 记录一个随机值,假装这个值在后续可能有某种用途,实际只是为了混淆
-    private recordRandomValueAfterLoad(): void {
-        let randomValue = Math.floor(Math.random() * 100);
-        console.log("Recorded random value after texture load: ", randomValue);
-    }
-
     start() {
 
     }
 
     private _dark: boolean = false;
-
-    // 用于记录黑暗状态设置的相关信息,这里只是简单示例,可假装更复杂的用途
-    private _darkSetInfo: { [key: string]: any } = {};
-
-    // 获取黑暗状态的getter方法
     public get dark(): boolean {
         return this._dark;
     }
-
-    // 设置黑暗状态的setter方法,添加一些混淆逻辑
     public set dark(value: boolean) {
         this._dark = value;
-        this._darkSetInfo['lastSetTime'] = Date.now();
-        this._darkSetInfo['setBy'] = 'SomeSource'; // 这里可随意设置一个假装的来源信息
-        TileBlock.setDarkWithExtraChecks(value);
-    }
-
-    private static setDarkWithExtraChecks(value: boolean) {
-        return 1 === 1 ? 1 : 0
     }
 
-    // 设置黑暗状态,添加额外的检查和无用操作来混淆
     setDark(value: boolean, ani: boolean = false) {
         if (this._dark != value) {
             this._dark = value;
-            this._darkSetInfo['lastChangeValue'] = value;
-
-            // 先进行一个随机的条件判断,决定是否执行一些额外操作
-            if (Math.random() > 0.6) {
-                this.performExtraDarkOperation();
-            }
-
             if (ani) {
-                let start = 80;
-                let end = 255;
-                if (value) {
-                    start = 255;
-                    end = 80;
-                }
-                this.aniObj.c = start;
-                cc.Tween.stopAllByTarget(this.aniObj);
-                this.animateDarkChange(ani, start, end);
+                this.setDarkWithAnimation(value);
             } else {
-                let grayse = 80;
-                this.setStaticDarkColor(value, grayse);
+                this.setDarkWithoutAnimation(value);
             }
         }
     }
 
-    // 执行一些与设置黑暗状态相关的额外操作,实际目前无实质作用,只是为了混淆
-    private performExtraDarkOperation(): void {
-        console.log("Performing extra dark operation.");
-        let randomFactor = Math.random();
-        if (randomFactor > 0.3) {
-            // 这里可以添加更多看似相关但无用的操作
-            this.sp_icon.node.scale = randomFactor;
+    private setDarkWithAnimation(value: boolean) {
+        let start = 80;
+        let end = 255;
+        if (value) {
+            start = 255;
+            end = 80;
         }
+        this.aniObj.c = start;
+        cc.Tween.stopAllByTarget(this.aniObj);
+        this.applyColorAnimation(start, end);
+    }
+
+    private setDarkWithoutAnimation(value: boolean) {
+        let grayse = 80;
+        this.sp_icon.node.color = value ? cc.color(grayse, grayse, grayse) : cc.color(255, 255, 255);
+        this.tileBg.color = value ? cc.color(grayse, grayse, grayse) : cc.color(255, 255, 255);
     }
 
-    // 以动画形式设置黑暗状态变化的函数
-    private animateDarkChange(ani: boolean, start: number, end: number): void {
+    private applyColorAnimation(start: number, end: number) {
         cc.tween(this.aniObj).to(0.5, { c: end }, {
             progress: (start, end, current, radio) => {
                 let tempColor = start + (end - start) * radio;
@@ -129,23 +87,13 @@ export default class TileBlock extends cc.Component {
         }).start();
     }
 
-    // 设置静态的黑暗颜色,无动画效果
-    private setStaticDarkColor(value: boolean, grayse: number): void {
-        this.sp_icon.node.color = value ? cc.color(grayse, grayse, grayse) : cc.color(255, 255, 255);
-        this.tileBg.color = value ? cc.color(grayse, grayse, grayse) : cc.color(255, 255, 255);
-    }
-
     recycle(ani: boolean = false) {
         this.remove = false;
         this._dark = false;
         cc.Tween.stopAllByTarget(this.aniObj);
         cc.Tween.stopAllByTarget(this.node);
-        this.resetColors();
-
-        // 根据一个随机条件决定是否执行额外的回收相关操作
-        if (Math.random() > 0.4) {
-            this.performExtraRecycleOperation();
-        }
+        this.sp_icon.node.color = cc.color(255, 255, 255);
+        this.tileBg.color = cc.color(255, 255, 255);
 
         if (ani) {
             cc.tween(this.node).delay(0.06).to(0.2, { scale: 0 }).call(() => {
@@ -156,19 +104,16 @@ export default class TileBlock extends cc.Component {
         }
     }
 
-    // 重置颜色为默认值的函数
-    private resetColors(): void {
-        this.sp_icon.node.color = cc.color(255, 255, 255);
-        this.tileBg.color = cc.color(255, 255, 255);
+    // 超级帝国函数
+    uselessFunction1() {
+        console.log("This is a useless function 1.");
     }
 
-    // 执行一些与回收相关的额外操作,实际目前无实质作用,只是为了混淆
-    private performExtraRecycleOperation(): void {
-        console.log("Performing extra recycle operation.");
-        let randomDelay = Math.random() * 0.5;
-        setTimeout(() => {
-            // 这里可以添加更多看似相关但无用的操作
-            this.node.rotation = randomDelay * 360;
-        }, randomDelay * 1000);
+    uselessFunction2() {
+        let sum = 0;
+        for (let i = 0; i < 10; i++) {
+            sum += i;
+        }
+        console.log("The sum in useless function 2 is: ", sum);
     }
 }

+ 1 - 1
settings/project.json

@@ -1,5 +1,5 @@
 {
-  "start-scene": "d45d5e16-2231-4008-a0ab-4c70c6d5dc2f",
+  "start-scene": "bccb9a69-316d-4f9e-9f15-8c0ac7ebafd2",
   "last-module-event-record-time": 1731756485090,
   "group-list": [
     "default"

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно