diff --git a/README.md b/README.md index 9938239..39048da 100755 --- a/README.md +++ b/README.md @@ -11,3 +11,23 @@ I'm the GitHub Learning Lab bot and I'm here to help guide you in your journey t I'll meet you over there, can't wait to get started! This course is using the :sparkles: open source project [reveal.js](https://github.com/hakimel/reveal.js/). In some cases we’ve made changes to the history so it would behave during class, so head to the original project repo to learn more about the cool people behind this project. + +## 如何将生成的文件下载到本地 + +你可以通过以下几种方式把仓库里生成的文件(例如 `tank-battle.html` 或 `_posts/2024-05-01-tank-battle.md`)下载到本地: + +1. **使用 Git 克隆仓库**(适合需要持续更新的场景) + ```bash + git clone https://github.com/你的用户名/github-slideshow.git + ``` + 克隆完成后,文件会出现在新目录 `github-slideshow/` 中,后续可用 `git pull` 获取最新更新。 + +2. **在 GitHub 网页直接下载单个文件** + - 打开目标文件页面,点击右上角的 **Raw** 按钮。 + - 在打开的纯文本页面上,右键选择“另存为”,即可保存到本地。 + +3. **下载仓库 ZIP 压缩包**(一次性获取全部内容) + - 在仓库主页点击绿色的 **Code** 按钮,选择 **Download ZIP**。 + - 解压后即可在本地查看和使用所有文件。 + +选择最适合你工作流的方式即可把生成的页面和文章带到本地进行预览或二次开发。 diff --git a/_posts/2024-05-01-tank-battle.md b/_posts/2024-05-01-tank-battle.md new file mode 100644 index 0000000..46671fc --- /dev/null +++ b/_posts/2024-05-01-tank-battle.md @@ -0,0 +1,10 @@ +--- +layout: slide +title: "坦克大战小游戏" +--- + +点击下方链接即可开启纯前端的网页坦克大战。 + +- 👉 [立即开战](/tank-battle.html) +- 键盘:WASD / 方向键移动与转向,空格射击,Shift 冲刺,P 暂停,R 重置。 +- 特色:波次进阶敌人、拾取补给、连击加成、移动端虚拟摇杆支持。 diff --git a/tank-battle.html b/tank-battle.html new file mode 100644 index 0000000..7406fdb --- /dev/null +++ b/tank-battle.html @@ -0,0 +1,1220 @@ + + +
+ + +当前关卡:关卡默认自动轮换,你也可以手动选择更开放或更密集的布局。
+提示:在移动端浏览,可点击屏幕左下角方向盘与右下角射击区。
+开发者小记:简化的物理与 AI,适合快速上手;想挑战高难度,就让敌人堆满屏幕吧。
+