Code Monkey home page Code Monkey logo

--glazejs's Introduction

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)

--glazejs's People

Contributors

rjewson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.