|
|
|
|
@ -34,6 +34,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<div class="action-group" aria-label="游戏操作">
|
|
|
|
|
<button id="startAction" type="button">开始</button>
|
|
|
|
|
<button id="pauseAction" class="secondary-action" type="button">暂停</button>
|
|
|
|
|
<button id="stopAction" class="danger-action" type="button">结束</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="stage-wrap">
|
|
|
|
|
<canvas id="game" width="800" height="600" aria-label="Tank Battle canvas"></canvas>
|
|
|
|
|
<div id="overlay" class="overlay">
|
|
|
|
|
@ -50,11 +56,6 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<footer class="controls">
|
|
|
|
|
<div class="action-group" aria-label="游戏操作">
|
|
|
|
|
<button id="startAction" type="button">开始</button>
|
|
|
|
|
<button id="pauseAction" class="secondary-action" type="button">暂停</button>
|
|
|
|
|
<button id="stopAction" class="danger-action" type="button">结束</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="touch-controls" aria-label="触摸操作">
|
|
|
|
|
<div class="dpad" aria-label="方向控制">
|
|
|
|
|
<button class="touch-button dpad-up" type="button" data-control="up" aria-label="向上">▲</button>
|
|
|
|
|
|