Skip to content

Neilblaze/URL-Dinogame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL-Dinogame 🦖

A lightweight implemention of the classic Dinosaur game, played entirely within the browser's address bar. Play the Live Demo! ✨

Repo-Size License last-commit Hits-of-Code

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.

Interactive Web Demo 🔻

clipdemo.mp4

Character Legend

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).

How to Play

  1. Launch: Open the live demo or index.html in a desktop browser.
  2. Start: Press any key to begin the 3-second countdown.
  3. Controls: Use the Up Arrow to jump and dodge obstacles.
  4. Goal: Survive as long as possible while collecting pickups to maximize your score.

Local Development

git clone https://github.com/Neilblaze/URL-Dinogame.git
cd URL-Dinogame
# Open index.html in your browser

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any features or bug fixes.

License

This project is licensed under the Apache License 2.0. See LICENSE for details.

About

Google's Dinosaur game implementation in URL bar 🦕

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages