JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 19
  • Score
    100M100P100Q39280F
  • License MIT

Simple WebGL game/render engine written in TypeScript

Package Exports

  • ts-game-engine

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ts-game-engine) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ts-game-engine

This is a very simple and experimental 3D WebGL engine written in TypeScript. Done as a personal project mainly for learning purposes. It is based on a similar engine I did a several years ago in C#, both in OpenGL 3 and Direct3D 11.

I'll work on this on my spare time, and it's not meant, by any means, to be used in production.

Current features

  • Several types of entities like MeshRenderer, Camera and PointLight.
  • It supports maximum 16 point lights.
  • Several basic mesh types like Triangle, Cube, Sphere and a configurable grid with X, Y and Z axis. It can also load a custom binary mesh format I called MDL, which allows to load complex meshes efficiently. Its data layout is ready to be sent as is to the GPU without any conversion or processing.
  • 2D and cube map Textures.
  • Frustum culling.
  • GPU instancing.
  • It caches the WebGL pipeline state to avoid unnecessary state changes before each draw call.
  • Input Manager.

Coming soon

  • More types of shaders and materials.

Demo

https://maikelchan.github.io/ts-game-engine/