Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**。
- 解压后即可在本地查看和使用所有文件。

选择最适合你工作流的方式即可把生成的页面和文章带到本地进行预览或二次开发。
10 changes: 10 additions & 0 deletions _posts/2024-05-01-tank-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
layout: slide
title: "坦克大战小游戏"
---

点击下方链接即可开启纯前端的网页坦克大战。

- 👉 [立即开战](/tank-battle.html)
- 键盘:WASD / 方向键移动与转向,空格射击,Shift 冲刺,P 暂停,R 重置。
- 特色:波次进阶敌人、拾取补给、连击加成、移动端虚拟摇杆支持。
Loading