Skip to content

About

my implementation for my course lab

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

30 Commits

Folders and files

Repository files navigation

Earth Driving

A small WebGL2 game: drive a train around a spherical planet, collect coins to add carriages, and avoid the traffic cones. Built with raw WebGL2 and GLSL ES 3.00 for COMP4422 Computer Graphics.

Play

Open the GitHub Pages version directly:

https://purplebeezx.github.io/Lab_COMP4422/

Run locally

The game loads assets with fetch, so it needs an HTTP server (opening index.html as a file will not work):

python3 -m http.server 8000

Then open http://localhost:8000 in a browser with WebGL2 support.

Controls

Input Action
Space Start / restart
W / S Accelerate / brake
Mouse Steer (click the canvas first to lock the pointer)
Mouse wheel Zoom
P Pause gameplay
[ / ] Decrease / increase time scale

Regenerate assets (optional)

All models and textures are generated procedurally:

python3 tools/generate_assets.py

Requires Python with NumPy and Pillow.

About

my implementation for my course lab

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages