更新配置
This commit is contained in:
parent
c18d47f4b0
commit
606abfbe9b
|
|
@ -2,11 +2,11 @@ export const RAINBOW_COLOR = 100;
|
|||
export const RAINBOW_CAPACITY = 60;
|
||||
// 每次整块消除增加的能量秒数,按消除时的实际格数配置。
|
||||
export const RAINBOW_BLOCK_ENERGY: { [cells: number]: number } = {
|
||||
1: 2,
|
||||
2: 2.5,
|
||||
3: 2.8,
|
||||
4: 3,
|
||||
5: 3.2,
|
||||
1: 3,
|
||||
2: 4.5,
|
||||
3: 6,
|
||||
4: 7.5,
|
||||
5: 9,
|
||||
};
|
||||
// 临时放慢飞行以便测试;飞行结束后才裁切方块,正式时长为 0.3 秒。
|
||||
export const RAINBOW_CAST_SECONDS = 1;
|
||||
|
|
@ -64,8 +64,10 @@ export function rainbowCuts(cells: RainbowCell[]): RainbowCut[] {
|
|||
&& normalized(points).key === target.key);
|
||||
if (shape < 0) return;
|
||||
const origin = normalized(RAINBOW_SHAPES[shape]);
|
||||
cuts.push({ cell: { x: cell.x, y: cell.y }, shape,
|
||||
offset: { x: target.x - origin.x, y: target.y - origin.y } });
|
||||
cuts.push({
|
||||
cell: { x: cell.x, y: cell.y }, shape,
|
||||
offset: { x: target.x - origin.x, y: target.y - origin.y }
|
||||
});
|
||||
});
|
||||
return cuts;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user