A lightweight implemention of the classic Dinosaur game, played entirely within the browser's address bar. Play the Live Demo! ✨
Note
This project was recently updated to match browser compatibility issues. For context, invisible characters (previously used in this project) and spaces, such as the Zero-Width Space (U+200B), pose a significant security risk because they allow attackers to create homograph URLs that appear identical to legitimate sites but lead to phishing or malware. To counter this, Chrome and other Chromium-based browsers (like Edge and Brave) have implemented sophisticated protections that detect these hidden Unicode characters and automatically "defang" them by displaying the URL in Punycode (e.g., xn--...), which was breaking the aesthetics of the game.
clipdemo.mp4
| Character | Entity | Description |
|---|---|---|
C |
Player | Your dinosaur character. |
• |
Food | Basic pickup (+1 point). |
@ |
Fruit | Rare pickup (+5 points). |
X |
Enemy | Obstacle to avoid (-1 point/Death). |
* |
Shield | Power-up (5s invincibility). |
- Launch: Open the live demo or
index.htmlin a desktop browser. - Start: Press any key to begin the 3-second countdown.
- Controls: Use the
Up Arrowto jump and dodge obstacles. - Goal: Survive as long as possible while collecting pickups to maximize your score.
git clone https://github.com/Neilblaze/URL-Dinogame.git
cd URL-Dinogame
# Open index.html in your browserContributions are welcome! Please open an issue or submit a pull request for any features or bug fixes.
This project is licensed under the Apache License 2.0. See LICENSE for details.