Forráskód Böngészése

Optimization difficulty

iaun 1 hónapja
szülő
commit
5fb97797e9
2 módosított fájl, 3 hozzáadás és 3 törlés
  1. 1 1
      src/Game.js
  2. 2 2
      src/constants.js

+ 1 - 1
src/Game.js

@@ -343,7 +343,7 @@ export class Game {
    */
   _updateSpeedMultiplier() {
     if (this._runningElapsed > 7000) {
-      this._speedMultiplier = 6;
+      this._speedMultiplier = 8;
     } else if (this._runningElapsed > 5000) {
       this._speedMultiplier = 4;
     } else if (this._runningElapsed > 3000) {

+ 2 - 2
src/constants.js

@@ -55,10 +55,10 @@ export const GRID_GAP = 2;           // 网格间距
 export const LAUNCH_INTERVAL = 80;    // 发射间隔(毫秒)
 export const MIN_ANGLE = 15;          // 最小瞄准角度
 export const MAX_ANGLE = 165;         // 最大瞄准角度
-export const BLOCK_DOUBLE_CHANCE = 0.4;  // 方块数字翻倍概率
+export const BLOCK_DOUBLE_CHANCE = 0.3;  // 方块数字翻倍概率
 // export const BALL_ITEM_CHANCE = 0.15;     // 加球道具生成概率
 export const LINE_CLEAR_ITEM_CHANCE = 0.3; // 整行消除道具生成概率
-export const BLOCK_SPAWN_CHANCE = 0.55;   // 每格生成方块概率
+export const BLOCK_SPAWN_CHANCE = 0.4;   // 每格生成方块概率
 export const BG_COLOR = '#232323';        // 背景色
 export const HEADER_BG_COLOR = '#2a2a2a'; // 头部背景色
 export const ITEM_SIZE_RATIO = 0.55;      // 道具尺寸相对方块的比例