π€ π A 3D WebGL interactive game using TypeScript and NodeJS.
A 3D space game. Travelling along the space trying to avoid rocks and obstacles. The ship can avoid the rocks by moving right, or left. Collision with the rocks affects its health by decreasing total health by ONE and every second with no collision with the rock your score increase by ONE.
- Install Node.js and Visual Studio Code.
- Open the folder in Visual Studio Code.
- Open a terminal (Terminal > New Terminal).
- Run
npm install
. If it failed for any reason, try again. - Run
npm run watch
. - Ctrl + click the link shown in the terminal (usually it will be http://localhost:1234).
Note: you can use yarn to enable caching so that you don't download all the packages with project. You can download yarn from yarnpkg.com. Then replace npm install
with yarn install
and npm run watch
with yarn watch
.
The aircraft is running "to infinity and beyond" π so your job is to avoid the obstacles to get survive for as much time as you can so can get a point for every second of avoiding the rocks.
- Click on the canvas using the mouse to get into the game.
- Use
J
to movingleft
. - Use
L
to moveright
. - Press
ESC
to exit play mode.
- TypeScript - strict syntactical superset of JavaScript.
- glMatrix - Javascript Matrix and Vector library.
- WebGL - JavaScript API for rendering interactive 3D graphics.
- NodeJs - Server Environment