Feat: 烟花时长延长至10秒,发射数量增至12枚
This commit is contained in:
@@ -237,13 +237,13 @@ const FireworksEffect = (() => {
|
|||||||
const ctx = canvas.getContext("2d");
|
const ctx = canvas.getContext("2d");
|
||||||
const w = canvas.width;
|
const w = canvas.width;
|
||||||
const h = canvas.height;
|
const h = canvas.height;
|
||||||
const DURATION = 6000;
|
const DURATION = 10000;
|
||||||
|
|
||||||
let rockets = [];
|
let rockets = [];
|
||||||
let particles = [];
|
let particles = [];
|
||||||
let animId = null;
|
let animId = null;
|
||||||
let launchCnt = 0;
|
let launchCnt = 0;
|
||||||
const MAX_LAUNCHES = 8;
|
const MAX_LAUNCHES = 12;
|
||||||
|
|
||||||
// 定时发射火箭
|
// 定时发射火箭
|
||||||
const launchInterval = setInterval(() => {
|
const launchInterval = setInterval(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user