数据结构优化

This commit is contained in:
李琦
2026-01-20 19:59:50 +08:00
parent cf8b89f731
commit ec4f5a9856
6 changed files with 216 additions and 105 deletions

View File

@@ -198,7 +198,7 @@ const updateAndDrawParticles = () => {
}
}
const createMeteor = (force = false) => {
const createMeteor = () => {
const startX = Math.random() * width
const angle = Math.PI / 4 // 45度
meteors.push({