A modern implementation of the classic Chrome offline dinosaur game, built with vanilla JavaScript and HTML5 Canvas. Experience the nostalgia of the original game with enhanced features and improved gameplay mechanics.
🔒 Both executables have been verified virus-free by VirusTotal.
This project recreates the iconic Chrome dinosaur game that appears when you're offline. While maintaining the core gameplay, it introduces several improvements and additional features to enhance the gaming experience.
- Frontend: HTML5, CSS3, Vanilla JavaScript
- Game Engine: HTML5 Canvas
- Database: Firebase Firestore
- Authentication: Firebase Authentication
- Hosting: Firebase Hosting
- Desktop App: Electron
- Version Control: Git
- Meteorite Obstacles: Special falling obstacles that add an extra layer of challenge while being easy to avoid 🌠
- Pterodactyl Encounters: Flying obstacles that appear at higher scores, adding variety and increasing difficulty 🦅
- Daily Challenge System: Limited to 2 attempts per 24-hour period ⏰
- Real-time Leaderboard: Track and compare scores with other players 🏆
- Dynamic Day/Night Cycle: Visual changes based on score progression 🌓
- Progressive Difficulty: Increasing game speed and obstacle complexity 🚀
- Desktop Application: Available as a standalone .exe file 💻
- Base speed increases at scores: 600, 2500, and 4000
- Pterodactyls (flying obstacles) appear at score 1000 🦅
- Pterodactyl frequency and speed increase at score 2500
- Night mode activates every 1000 points 🌙
- Day mode occurs at 2000 points (excluding 1000-point intervals) ☀️
- Visual environment changes to reflect the time of day
SPACE → Jump 🦘
ArrowDown → Crouch ⬇️
ArrowUp → Stand ⬆️
- Clone the repository:
git clone https://github.com/AitorSantaeugenia/chrome-t-rex-game
- Configure environment:
- Copy
.env.exampleto.env - Update email configuration in
.env
- Copy
- Configure game settings:
- Copy
config.example.jstoconfig.js - Adjust game parameters as needed
- Copy
- Configure game settings:
- Copy
config.example.jsontoconfig.json - Adjust game parameters as needed
- Copy
- Launch the game:
- Open
index.htmlin your preferred browser
- Open
- Install Firebase CLI:
npm install -g firebase-tools
- Login to Firebase:
firebase login
- Initialize Firebase in your project:
firebase init
- Build the web version:
npm run web:build
- Deploy to Firebase:
npm run web:deploy
🔒 Both executables have been verified virus-free by VirusTotal. Click the VirusTotal badge to view the full scan report.
- Clone the repository:
git clone https://github.com/AitorSantaeugenia/chrome-t-rex-game cd chrome_t_rex - Install dependencies:
npm install
- Build the executable:
npm run build
- Find the executable in the
/distfolder:- Windows:
dist/chrome_t_rex-win-x64/chrome_t_rex.exe - macOS:
dist/chrome_t_rex-darwin-x64/chrome_t_rex.app - Linux:
dist/chrome_t_rex-linux-x64/chrome_t_rex
- Windows:
- Operating System: Windows 10 or later
- Processor: Intel Core i3 or equivalent
- Memory: 4 GB RAM
- Graphics: DirectX 11 compatible graphics card
- Storage: 100 MB free space
- Display: 1280x720 minimum resolution
When the daily limit is exceeded, players can continue playing but won't be able to save their scores. This allows for practice and enjoyment while maintaining the competitive integrity of the leaderboard.

Watch out for falling meteorites! These special obstacles add an extra layer of challenge to the game.

- ✅ Collision detection with visual feedback
- ✅ Optimized game speed and difficulty progression
- ✅ Fixed initial animation state
- ✅ Enhanced flying obstacle mechanics
- Implement additional obstacle types
- Add sound effects and background music
- Create achievement system
- Develop multiplayer mode
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
For suggestions, bug reports, or feature requests:
- Create an issue on GitHub
- Email: aitorsantaeugenia@gmail.com
This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.





