https://github.com/upasanadhameliya/basiccargame
https://github.com/upasanadhameliya/basiccargame
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/upasanadhameliya/basiccargame
- Owner: Upasanadhameliya
- Created: 2022-11-10T11:14:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-10T11:18:01.000Z (almost 3 years ago)
- Last Synced: 2025-01-10T03:26:24.161Z (9 months ago)
- Language: HTML
- Size: 1.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BasicCarGame
1. Increase the speed of the player by **1 after every 5 seconds**, starting speed should always be **5.**
2. Increment the score only when the **rear end of myCar (yellow)** has passed the **rear end of an enemyCar (green)**. The score should be **incremented by 10** at each passing. Score shouldn’t increment in any other case.