Skip to content

A 3D game demo written in typescript and vanilla WebGL 2

Notifications You must be signed in to change notification settings

owsiakl/endless-night-demo

Repository files navigation

header.gif

Play it here: endless-night-demo.

Endless Night is a demo I've made strictly for learning purposes, so I could learn topics like 3d space, shaders, skinning, skeletal animation, textures, shadows, etc.

It's made with typescript and uses custom vanilla webgl renderer.

This is not intended to be a full scale game, nor I plan to turn it into one.

Scene

  • Press left mouse button and move to rotate the camera.
  • Use W A S D keys to move around.
  • Press LEFT SHIFT to run.

scene.gif

Local development

Requires nodejs runtime environment, you can get it on https://nodejs.org website.

To start project, first install all necessary dependencies:

npm ci

then compile stylesheets:

npm run sass:build

and then start webpack dev server:

npm start

Project is available under: http://localhost:8080.

Debug

Some debug information are available by appending ?debug query string into the URL: http://localhost:8080?debug.