Skip to content

rjewson/glazejs

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
app
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

glazeJS

A 2D WebGL game engine built with TypeScript. The goal of the project to enable the development of large, open multiplayer 2D worlds for in-browser gaming. Close attention has been paid to all performance aspects.

Update 2021: Project is not dead, just 'real world' getting in the way.

Play the demo here (read the instructions) https://rjewson.github.io/glazejs/

  • Fully designed around the Entity-Component-System archectural pattern
  • Custom WebGL renderer with special attention to:
    • Sprites
    • Particles
    • Tilemaps (Tiled format supported)
    • Lighting
  • Custom 2D physics engine
    • Optimized for large numbers of bodies
    • Hybrid ray/AABB collision scheme ensures correct contact point calculation and 0% chance of penetration
  • Desisgned to manage massive concurent game worlds with large numbers of entities
  • Steering behaviours
  • AI
    • Behaviour Tree
    • FSM's
  • and more!

Lighting

The engine now features a fairly feature rich lighting system. There are point lights (circular or cone) that can be obstructed by the tile scene allowing shadows to be cast. There is also an ambient lighing system that is in development to create overall 'world' lighting that can be updated per frame (e.g. based on depth)

Tiled format support

To do

Install and run

  1. clone this repo
  2. npm install
  3. npm run dev

TODO

  • Write force to buffer and apply there (for particles)