Files
Tirsvad d3e7d06529
CI / test (pull_request) Successful in 52s
Add gameplay and game over screenshots to the README and the wiki
Task: MIL-007#1
Task: MIL-007#2
2026-10-13 14:13:31 +08:00

30 lines
1.1 KiB
Markdown

# Play
🌐 **English** · [Dansk](Play-da) · [Bahasa Malaysia](Play-ms)
## Controls
| Key | Action |
| --- | --- |
| Up arrow | Move the turtle one step north. The turtle cannot move back, left or right. |
## Rules
1. Cars appear on the right edge in random lanes and drive left. The top and
bottom 50 pixels are a safe zone with no cars.
2. Reach the top edge to cross. The turtle returns to the start, the level goes
up by one and the cars become faster.
3. Touching a car ends the game. `GAME OVER` is shown in the centre; click the
window to close it.
## Tips
- Wait for a gap: a new car is created on about one frame in six.
- Every level adds the same speed step, so later levels need quick, short moves.
![The game: a turtle among cars on level 4](https://git.tirsystem.com/Tirsvad-Udemy-100-days-of-code/023-turtle-crossing/raw/branch/main/docs/images/gameplay.png)
![Game over: the turtle was hit by a car](https://git.tirsystem.com/Tirsvad-Udemy-100-days-of-code/023-turtle-crossing/raw/branch/main/docs/images/game-over.png)
Back to [Home](Home).