A Chrome T-Rex game remake using JavaScript and three.js, retextured with a "Frozen Night" theme: an icy T-Rex, frosted cacti, a violet pterodactyl, snowy ground and an aurora night sky.
Original game look:
Open docs/index.html through a local web server (for example npx serve docs), or turn on GitHub Pages for the docs folder. Press any key, click or tap to jump.
Make sure you have node 12+ installed: https://nodejs.org/en/download/
- Install all dependencies by
npm ioryarnif you have yarn installed. - Run demo locally:
npm start - Build the whole demo into
/docsfolder:npm run build
tools/make_textures.py regenerates the theme. It creates docs/snow.jpg and docs/night-sky.jpg and recolors the model diffuse textures in place:
pip install numpy pillow
python3 tools/make_textures.py docs
Edit the color stops in the script to make a different theme. Run it on the original model textures, since it recolors whatever is there.
Original game: T-Rex Game in 3D by Ross Ning (@rossning92), released under the MIT license. This project is a modified version of that game.
3D models (all from Sketchfab, licensed under CC BY 4.0):
- T-Rex: Randaling T- Rex, animated! by quander
- Pterodactyl: Flying Pterodactyl by dudeperfecto8o
- Cactus: Cactus 1 (Downloadable) by rhcreations
Changes made to the models: the diffuse (color) textures of all three models were recolored for the Frozen Night theme. Geometry, animations and other texture maps are unchanged.
Font: Press Start 2P by CodeMan38, SIL Open Font License, via @fontsource.
Snow ground and night sky textures: generated procedurally by tools/make_textures.py for this version.
