Skip to content

Commit 75b1b78

Browse files
committed
Update README.md
1 parent c991289 commit 75b1b78

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Chrome dino
2+
3+
Re-create Chrome Dino game using Canvas and TypeScript.
4+
15
## How to use it
26

37
Specify a node as root node to contain the canvas, e.g., `#main-frame-error`. Import `Runner` class and then instantiate it with static `getInstance()` method. Remember to remove the listeners after destroyed by invoking `stopListening()` method.

pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function Home() {
3838
<span>Press <kbd></kbd> to duck.</span>
3939
</li>
4040
</ul>
41-
<p style={{ textAlign: "center" }}>View at <a href="https://github.com/keguigong/chrome-dino">GitHub</a>.</p>
41+
<p style={{ textAlign: "center" }}>View on <a href="https://github.com/keguigong/chrome-dino">GitHub</a>.</p>
4242
</div>
4343
<div className="runner-container">
4444
<canvas className="runner-canvas"></canvas>

0 commit comments

Comments
 (0)