-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
684 lines (620 loc) · 20.7 KB
/
index.html
File metadata and controls
684 lines (620 loc) · 20.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="橙子派的AI作品集 - AI游戏、AI应用、AI视频" />
<title>橙子派的AI作品集</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap" rel="stylesheet" />
<style>
/* ===== VARIABLES ===== */
:root {
--orange: #ff6b35;
--yellow: #f7c948;
--pink: #ff4d8d;
--purple: #9b5fff;
--blue: #4dc8ff;
--green: #2ecc71;
--bg: #060610;
--card-bg: rgba(255, 255, 255, 0.04);
--card-border: rgba(255, 255, 255, 0.09);
--text: #e8e8f2;
--text-muted: rgba(232, 232, 242, 0.55);
}
/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
background: var(--bg);
color: var(--text);
font-family: 'Inter', 'Noto Sans SC', sans-serif;
min-height: 100vh;
overflow-x: hidden;
}
/* ===== CANVAS BACKGROUND ===== */
#confetti-canvas {
position: fixed;
inset: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 0;
}
/* subtle radial glow at center */
body::after {
content: '';
position: fixed;
top: -20%;
left: 50%;
transform: translateX(-50%);
width: 80vw;
height: 80vw;
max-width: 900px;
background: radial-gradient(ellipse at center,
rgba(155, 95, 255, 0.07) 0%,
rgba(255, 107, 53, 0.04) 40%,
transparent 70%);
pointer-events: none;
z-index: 0;
}
/* ===== MAIN WRAPPER ===== */
.wrap { position: relative; z-index: 1; }
/* ===== HERO ===== */
.hero {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 2rem 1.5rem 5rem;
position: relative;
}
/* Avatar */
.avatar-spin {
width: 128px;
height: 128px;
border-radius: 50%;
background: conic-gradient(
var(--orange), var(--yellow), var(--pink), var(--purple), var(--blue), var(--orange)
);
padding: 3px;
animation: hue-spin 6s linear infinite;
margin-bottom: 2.5rem;
flex-shrink: 0;
}
.avatar-inner {
width: 100%;
height: 100%;
border-radius: 50%;
background: var(--bg);
display: flex;
align-items: center;
justify-content: center;
font-size: 3.2rem;
user-select: none;
}
@keyframes hue-spin {
from { filter: hue-rotate(0deg); }
to { filter: hue-rotate(360deg); }
}
/* Neon gradient title */
.hero-title {
font-size: clamp(2rem, 6vw, 4.2rem);
font-weight: 900;
letter-spacing: -0.02em;
line-height: 1.15;
background: linear-gradient(
120deg,
var(--orange) 0%,
var(--yellow) 20%,
var(--pink) 45%,
var(--purple) 70%,
var(--blue) 100%
);
background-size: 250% 250%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: gradientPan 6s ease infinite;
margin-bottom: 1rem;
text-shadow: none;
}
@keyframes gradientPan {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.hero-sub {
font-size: clamp(1rem, 3vw, 1.35rem);
color: var(--text-muted);
font-weight: 300;
letter-spacing: 0.08em;
}
/* Scroll hint */
.scroll-hint {
position: absolute;
bottom: 2rem;
left: 50%;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
animation: bounce 2.2s ease-in-out infinite;
color: var(--text-muted);
font-size: 0.75rem;
letter-spacing: 0.1em;
text-transform: uppercase;
}
.scroll-hint::after {
content: '↓';
font-size: 1.1rem;
color: var(--orange);
}
@keyframes bounce {
0%, 100% { transform: translateX(-50%) translateY(0); }
50% { transform: translateX(-50%) translateY(8px); }
}
/* ===== SECTION WRAPPER ===== */
.section-wrap {
max-width: 1200px;
margin: 0 auto;
padding: 4rem 1.5rem 2rem;
}
/* Section badge */
.badge {
display: inline-block;
background: rgba(255, 107, 53, 0.12);
color: var(--orange);
border: 1px solid rgba(255, 107, 53, 0.3);
border-radius: 100px;
padding: 0.28rem 1rem;
font-size: 0.72rem;
font-weight: 600;
letter-spacing: 0.12em;
text-transform: uppercase;
margin-bottom: 1.1rem;
}
.section-title {
font-size: clamp(1.7rem, 4vw, 2.6rem);
font-weight: 800;
margin-bottom: 0.5rem;
}
.section-title .accent {
background: linear-gradient(120deg, var(--orange), var(--pink));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.section-desc {
color: var(--text-muted);
font-size: 0.95rem;
margin-bottom: 2.5rem;
}
/* Horizontal rule */
.hr {
max-width: 1200px;
margin: 0 auto 0;
height: 1px;
background: linear-gradient(90deg, transparent, var(--card-border) 30%, var(--card-border) 70%, transparent);
}
/* ===== CARD GRID ===== */
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 1.25rem;
}
/* ===== CARD ===== */
.card {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 18px;
padding: 1.5rem;
text-decoration: none;
color: var(--text);
display: flex;
flex-direction: column;
gap: 0;
transition: transform 0.28s cubic-bezier(.4,0,.2,1),
box-shadow 0.28s cubic-bezier(.4,0,.2,1),
background 0.28s,
border-color 0.28s;
position: relative;
overflow: hidden;
backdrop-filter: blur(12px);
}
/* animated gradient border on hover */
.card::before {
content: '';
position: absolute;
inset: -1px;
border-radius: 18px;
background: linear-gradient(135deg,
var(--c1, var(--orange)), var(--c2, var(--pink)), transparent, transparent);
z-index: -1;
opacity: 0;
transition: opacity 0.3s;
}
.card:hover {
transform: translateY(-8px) scale(1.01);
background: rgba(255, 255, 255, 0.07);
box-shadow:
0 0 0 1px rgba(255,107,53,0.3),
0 8px 32px rgba(255, 107, 53, 0.15),
0 24px 64px rgba(0, 0, 0, 0.55);
}
.card:hover::before { opacity: 1; }
/* Card glow pulse on hover */
.card:hover .card-icon-wrap {
box-shadow: 0 0 18px var(--c1, rgba(255,107,53,0.6));
}
.card-icon-wrap {
width: 50px;
height: 50px;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.6rem;
margin-bottom: 1.1rem;
transition: box-shadow 0.3s;
flex-shrink: 0;
}
.card-name {
font-size: 1.05rem;
font-weight: 700;
margin-bottom: 0.45rem;
line-height: 1.3;
}
.card-text {
font-size: 0.85rem;
color: var(--text-muted);
line-height: 1.65;
margin-bottom: 1.5rem;
flex: 1;
}
.card-cta {
display: inline-flex;
align-items: center;
gap: 0.45rem;
font-size: 0.82rem;
font-weight: 600;
color: var(--orange);
letter-spacing: 0.03em;
margin-top: auto;
transition: gap 0.2s, color 0.2s;
}
.card:hover .card-cta { gap: 0.7rem; color: var(--yellow); }
.card-cta::after { content: '→'; }
/* ===== VIDEO GRID ===== */
.vgrid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.25rem;
}
.vcard {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 18px;
overflow: hidden;
text-decoration: none;
color: var(--text);
display: block;
backdrop-filter: blur(12px);
transition: transform 0.28s cubic-bezier(.4,0,.2,1),
box-shadow 0.28s cubic-bezier(.4,0,.2,1);
}
.vcard:hover {
transform: translateY(-8px) scale(1.01);
box-shadow:
0 0 0 1px rgba(255, 77, 141, 0.3),
0 8px 32px rgba(255, 77, 141, 0.2),
0 24px 64px rgba(0, 0, 0, 0.55);
}
.vthumb {
aspect-ratio: 16 / 9;
position: relative;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.vthumb::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.6) 100%);
}
.play-btn {
width: 58px;
height: 58px;
border-radius: 50%;
background: rgba(255,255,255,0.15);
border: 2px solid rgba(255,255,255,0.35);
backdrop-filter: blur(8px);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
position: relative;
z-index: 1;
transition: transform 0.25s, background 0.25s;
}
.vcard:hover .play-btn {
transform: scale(1.14);
background: rgba(255, 107, 53, 0.55);
}
.vinfo {
padding: 1rem 1.25rem 1.35rem;
}
.vname {
font-size: 1rem;
font-weight: 700;
margin-bottom: 0.4rem;
}
.vplatform {
font-size: 0.78rem;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 0.4rem;
}
.bili-dot {
display: inline-block;
width: 6px;
height: 6px;
border-radius: 50%;
background: #00a1d6;
}
/* ===== FOOTER ===== */
footer {
text-align: center;
padding: 3rem 2rem;
color: var(--text-muted);
font-size: 0.82rem;
letter-spacing: 0.05em;
border-top: 1px solid var(--card-border);
margin-top: 3rem;
}
footer a {
color: var(--orange);
text-decoration: none;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
.section-wrap { padding: 3rem 1rem 1.5rem; }
.grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.vgrid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 480px) {
.grid, .vgrid { grid-template-columns: 1fr; }
}
</style>
</head>
<body>
<!-- Confetti canvas -->
<canvas id="confetti-canvas"></canvas>
<div class="wrap">
<!-- ====== HERO ====== -->
<section class="hero">
<div class="avatar-spin">
<div class="avatar-inner">🍊</div>
</div>
<h1 class="hero-title">橙子派的AI作品集</h1>
<p class="hero-sub">欢迎和我一起玩AI~</p>
<div class="scroll-hint">向下探索</div>
</section>
<!-- ====== AI 游戏 ====== -->
<div class="section-wrap">
<div class="badge">AI 作品</div>
<h2 class="section-title">🎮 <span class="accent">我的AI游戏</span></h2>
<p class="section-desc">用AI开发的趣味游戏,来挑战一下~</p>
<div class="grid">
<a class="card" href="https://crazy8.czpai.top/" target="_blank" rel="noopener"
style="--c1:#2ecc71;--c2:#4dc8ff;">
<div class="card-icon-wrap" style="background:rgba(46,204,113,0.15);">🃏</div>
<div class="card-name">疯狂8点卡牌游戏</div>
<p class="card-text">经典卡牌玩法升级再造,AI陪你斗智斗勇,随时随地开局。</p>
<span class="card-cta">立即体验</span>
</a>
<a class="card" href="https://sum.chengz-ai.top/" target="_blank" rel="noopener"
style="--c1:#4dc8ff;--c2:#9b5fff;">
<div class="card-icon-wrap" style="background:rgba(77,200,255,0.15);">🔢</div>
<div class="card-name">数块消除游戏</div>
<p class="card-text">益智数字方块消除,考验你的运算与反应力,越玩越上瘾。</p>
<span class="card-cta">立即体验</span>
</a>
<a class="card" href="https://grammarpractice.czpai.top/" target="_blank" rel="noopener"
style="--c1:#f7c948;--c2:#ff6b35;">
<div class="card-icon-wrap" style="background:rgba(247,201,72,0.15);">📝</div>
<div class="card-name">英文语法练习游戏</div>
<p class="card-text">边玩边学英语语法,AI出题智能反馈,让枯燥学习变得有趣。</p>
<span class="card-cta">立即体验</span>
</a>
<a class="card" href="https://stardefense.czpai.top/" target="_blank" rel="noopener"
style="--c1:#9b5fff;--c2:#ff4d8d;">
<div class="card-icon-wrap" style="background:rgba(155,95,255,0.15);">🚀</div>
<div class="card-name">星际防御游戏</div>
<p class="card-text">太空防御策略游戏,驾驶飞船保卫星际家园,史诗级战斗体验。</p>
<span class="card-cta">立即体验</span>
</a>
</div>
</div>
<div class="hr"></div>
<!-- ====== AI 应用 ====== -->
<div class="section-wrap">
<h2 class="section-title">✨ <span class="accent">我的AI应用</span></h2>
<p class="section-desc">AI驱动的实用应用与趣味测试,探索更多可能</p>
<div class="grid">
<a class="card" href="https://www.doubao.com/share/code/dad15dc57a31308b?is_code=1" target="_blank" rel="noopener"
style="--c1:#ff4d8d;--c2:#f7c948;">
<div class="card-icon-wrap" style="background:rgba(255,77,141,0.15);">🎨</div>
<div class="card-name">色彩敏感度游戏</div>
<p class="card-text">测试你的视觉色彩感知能力,看看你的眼睛能分辨多细微的色差?</p>
<span class="card-cta">开始测试</span>
</a>
<a class="card" href="https://amzu2ljseyau.space.minimaxi.com/" target="_blank" rel="noopener"
style="--c1:#9b5fff;--c2:#4dc8ff;">
<div class="card-icon-wrap" style="background:rgba(155,95,255,0.15);">🏠</div>
<div class="card-name">探索原生家庭的影响</div>
<p class="card-text">深度心理分析,了解成长环境如何塑造了你,揭开潜意识的秘密。</p>
<span class="card-cta">开始探索</span>
</a>
<a class="card" href="https://lovetest8.chengz-ai.top/" target="_blank" rel="noopener"
style="--c1:#ff6b35;--c2:#ff4d8d;">
<div class="card-icon-wrap" style="background:rgba(255,107,53,0.15);">💕</div>
<div class="card-name">测测你喜欢他的程度</div>
<p class="card-text">趣味心理测试,通过AI深度分析你的情感倾向,探索内心深处的感受。</p>
<span class="card-cta">开始测测</span>
</a>
<a class="card" href="https://test.chengz-ai.top/" target="_blank" rel="noopener"
style="--c1:#2ecc71;--c2:#4dc8ff;">
<div class="card-icon-wrap" style="background:rgba(46,204,113,0.15);">📚</div>
<div class="card-name">英语单词测试</div>
<p class="card-text">智能词汇量检测,AI自适应出题,有效提升你的英语单词量。</p>
<span class="card-cta">开始测试</span>
</a>
</div>
</div>
<div class="hr"></div>
<!-- ====== AI 视频 ====== -->
<div class="section-wrap">
<h2 class="section-title">🎬 <span class="accent">我的AI视频</span></h2>
<p class="section-desc">AI生成的精彩视频内容,点击前往Bilibili观看</p>
<div class="vgrid">
<a class="vcard" href="https://b23.tv/MVRO279" target="_blank" rel="noopener">
<div class="vthumb" style="background:linear-gradient(135deg,#1a0a0a 0%,#5c1a1a 40%,#c0392b 70%,#ff6b35 100%);">
<div class="play-btn">▶</div>
</div>
<div class="vinfo">
<div class="vname">末日医院突围</div>
<div class="vplatform"><span class="bili-dot"></span>哔哩哔哩</div>
</div>
</a>
<a class="vcard" href="https://b23.tv/IN9wEH8" target="_blank" rel="noopener">
<div class="vthumb" style="background:linear-gradient(135deg,#020d1a 0%,#0a2a4a 40%,#1a6b8a 70%,#4dc8ff 100%);">
<div class="play-btn">▶</div>
</div>
<div class="vinfo">
<div class="vname">三体之水滴之后</div>
<div class="vplatform"><span class="bili-dot"></span>哔哩哔哩</div>
</div>
</a>
<a class="vcard" href="https://b23.tv/vIQBCn0" target="_blank" rel="noopener">
<div class="vthumb" style="background:linear-gradient(135deg,#1a0a00 0%,#5c2d00 40%,#b8860b 70%,#f7c948 100%);">
<div class="play-btn">▶</div>
</div>
<div class="vinfo">
<div class="vname">鎏金谷恩仇录之众议令篇</div>
<div class="vplatform"><span class="bili-dot"></span>哔哩哔哩</div>
</div>
</a>
<a class="vcard" href="https://b23.tv/JkPSe3f" target="_blank" rel="noopener">
<div class="vthumb" style="background:linear-gradient(135deg,#1a0000 0%,#8b0000 40%,#cc0000 70%,#ff4d4d 100%);">
<div class="play-btn">▶</div>
</div>
<div class="vinfo">
<div class="vname">红旗飘飘</div>
<div class="vplatform"><span class="bili-dot"></span>哔哩哔哩</div>
</div>
</a>
<a class="vcard" href="https://b23.tv/OXBOkUY" target="_blank" rel="noopener">
<div class="vthumb" style="background:linear-gradient(135deg,#040a14 0%,#0d2040 40%,#1a4080 70%,#6eb5ff 100%);">
<div class="play-btn">▶</div>
</div>
<div class="vinfo">
<div class="vname">机甲元年 · 铸魂</div>
<div class="vplatform"><span class="bili-dot"></span>哔哩哔哩</div>
</div>
</a>
</div>
</div>
<!-- ====== FOOTER ====== -->
<footer>
<p>© 2025 橙子派 · 用AI创造无限可能 🍊</p>
</footer>
</div><!-- /wrap -->
<!-- ====== CONFETTI ANIMATION ====== -->
<script>
(function () {
const canvas = document.getElementById('confetti-canvas');
const ctx = canvas.getContext('2d');
function resize() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
}
resize();
window.addEventListener('resize', resize);
const COLORS = [
'#ff6b35', '#f7c948', '#ff4d8d', '#c084fc',
'#4dc8ff', '#2ecc71', '#ff8c69', '#a78bfa',
'#fb7185', '#34d399', '#60a5fa', '#fbbf24'
];
// Paper piece shapes: rect, rhombus, circle
const SHAPES = ['rect', 'rhombus', 'circle'];
class Piece {
constructor(init) {
this.reset(init);
}
reset(init) {
this.x = Math.random() * canvas.width;
this.y = init ? Math.random() * canvas.height : -20;
this.w = Math.random() * 11 + 4;
this.h = Math.random() * 7 + 3;
this.color = COLORS[Math.floor(Math.random() * COLORS.length)];
this.shape = SHAPES[Math.floor(Math.random() * SHAPES.length)];
this.r = Math.random() * Math.PI * 2;
this.rs = (Math.random() - 0.5) * 0.09;
this.vx = (Math.random() - 0.5) * 1.8;
this.vy = Math.random() * 1.8 + 0.7;
this.alpha = Math.random() * 0.55 + 0.25;
// each piece drifts slightly
this.swing = Math.random() * 0.6;
this.swingSpeed = Math.random() * 0.03 + 0.01;
this.tick = Math.random() * Math.PI * 2;
}
update() {
this.tick += this.swingSpeed;
this.x += this.vx + Math.sin(this.tick) * this.swing;
this.y += this.vy;
this.r += this.rs;
if (this.y > canvas.height + 30) this.reset(false);
}
draw() {
ctx.save();
ctx.globalAlpha = this.alpha;
ctx.fillStyle = this.color;
ctx.translate(this.x, this.y);
ctx.rotate(this.r);
if (this.shape === 'rect') {
ctx.fillRect(-this.w / 2, -this.h / 2, this.w, this.h);
} else if (this.shape === 'rhombus') {
ctx.beginPath();
ctx.moveTo(0, -this.h);
ctx.lineTo(this.w / 2, 0);
ctx.lineTo(0, this.h);
ctx.lineTo(-this.w / 2, 0);
ctx.closePath();
ctx.fill();
} else {
ctx.beginPath();
ctx.arc(0, 0, this.w / 2, 0, Math.PI * 2);
ctx.fill();
}
ctx.restore();
}
}
const COUNT = Math.min(160, Math.floor(window.innerWidth * 0.12));
const pieces = Array.from({ length: COUNT }, () => new Piece(true));
function animate() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
for (const p of pieces) { p.update(); p.draw(); }
requestAnimationFrame(animate);
}
animate();
})();
</script>
</body>
</html>