Skip to content
NeutralStudiosPublic

About

A Chrome T-Rex game remake using JavaScript and Three.js! Credit to Rossning!

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

T-Rex Game in 3D: Frozen Night

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:

Play

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.

Build the code

Make sure you have node 12+ installed: https://nodejs.org/en/download/

  • Install all dependencies by npm i or yarn if you have yarn installed.
  • Run demo locally: npm start
  • Build the whole demo into /docs folder: npm run build

Changing the textures

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.

Credits

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

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.

About

A Chrome T-Rex game remake using JavaScript and Three.js! Credit to Rossning!

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages