-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
87 lines (81 loc) · 2.79 KB
/
index.html
File metadata and controls
87 lines (81 loc) · 2.79 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
<!DOCTYPE html>
<html lang="zh-Hant">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>漢字戰爭</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- ===== 主菜单 ===== -->
<div id="screen-menu" class="screen active">
<div class="menu-bg"></div>
<div class="menu-content">
<h1 class="game-title">
<span class="title-char">漢</span>
<span class="title-char">字</span>
<span class="title-char">戰</span>
<span class="title-char">爭</span>
</h1>
<p class="subtitle">以字為兵 · 以文為甲 · 以義為戰</p>
<div class="menu-buttons">
<button class="btn-bronze btn-lg" onclick="app.newGame()">
<span class="btn-icon">⚔</span> 開始征戰
</button>
<button class="btn-bronze btn-outline" onclick="app.showCollection()">
<span class="btn-icon">📜</span> 字庫圖鑑
</button>
</div>
<div class="menu-footer">
<p>通用規範漢字表 · 二〇〇字卡池 · 說文解字字源</p>
</div>
</div>
</div>
<!-- ===== 抽卡界面 ===== -->
<div id="screen-draw" class="screen">
<div class="draw-header">
<h2>抽 卡 出 徵</h2>
<p>點擊卡牌選取/取消出戰的字</p>
</div>
<div id="player-hand" class="card-grid"></div>
<div class="draw-footer">
<button class="btn-bronze btn-side" onclick="UI.showScreen('menu')">
← 返回
</button>
<button id="btn-ready" class="btn-bronze btn-lg">
<span class="btn-icon">⚔</span> 投入戰場
</button>
<button id="btn-reshuffle" class="btn-bronze btn-side">
換牌 🔄
</button>
</button>
</div>
</div>
<!-- ===== 战场界面 ===== -->
<div id="screen-battle" class="screen">
<canvas id="battlefield"></canvas>
</div>
<!-- ===== 结算界面 ===== -->
<div id="screen-result" class="screen">
<div id="result-content" class="result-box"></div>
</div>
<!-- ===== 图鉴界面 ===== -->
<div id="screen-collection" class="screen">
<div class="collection-header">
<h2>字 庫 圖 鑑</h2>
<button class="btn-bronze btn-sm" onclick="UI.showScreen('menu')">返回</button>
</div>
<div id="collection-grid" class="card-grid collection-view"></div>
</div>
<!-- ===== 卡牌放大弹窗 ===== -->
<div id="card-modal" class="card-modal" onclick="UI.closeModal()">
<div class="card-modal-content" onclick="event.stopPropagation()"></div>
</div>
<script src="js/shuowen.js"></script>
<script src="js/characters.js"></script>
<script src="js/draw.js"></script>
<script src="js/battle.js"></script>
<script src="js/ui.js"></script>
<script src="js/app.js"></script>
</body>
</html>