You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Web-Dev-For-Beginners/translations/hk/4-typing-game/README.md

42 lines
1.7 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!--
CO_OP_TRANSLATOR_METADATA:
{
"original_hash": "957547b822c40042e07d591c4fbfde4f",
"translation_date": "2025-08-24T00:17:09+00:00",
"source_file": "4-typing-game/README.md",
"language_code": "hk"
}
-->
# 事件驅動編程 - 建立一個打字遊戲
## 簡介
打字是開發者最被低估的技能之一。能夠快速將腦海中的想法轉移到編輯器中,能讓創意自由流動。學習的最佳方式之一就是玩遊戲!
> 那麼,讓我們來建立一個打字遊戲吧!
你將使用迄今為止學到的 JavaScript、HTML 和 CSS 技能來創建一個打字遊戲。遊戲會向玩家展示一段隨機的名言(我們使用的是 [福爾摩斯](https://en.wikipedia.org/wiki/Sherlock_Holmes) 的名言),並計算玩家準確輸入這段文字所需的時間。你將使用迄今為止學到的 JavaScript、HTML 和 CSS 技能來創建一個打字遊戲。
![demo](../../../4-typing-game/images/demo.gif)
## 先決條件
本課假設你已熟悉以下概念:
- 創建文字輸入框和按鈕控件
- CSS 和使用類別設置樣式
- JavaScript 基礎
- 創建數組
- 生成隨機數
- 獲取當前時間
## 課程
[使用事件驅動編程創建打字遊戲](./typing-game/README.md)
## 致謝
由 [Christopher Harrison](http://www.twitter.com/geektrainer) 用 ♥️ 編寫
**免責聲明**
本文件使用人工智能翻譯服務 [Co-op Translator](https://github.com/Azure/co-op-translator) 進行翻譯。我們致力於提供準確的翻譯,但請注意,自動翻譯可能包含錯誤或不準確之處。應以原文文件作為權威來源。對於關鍵資訊,建議尋求專業人工翻譯。我們對因使用此翻譯而引起的任何誤解或誤釋不承擔責任。