Giter Site home page Giter Site logo

foster's Introduction

foster

A WebGL + TypeScript 2D Game framework with a Scene -> Entity -> Component model.

โ˜… still very work in progress โ˜… and has frequent, breaking changes. Not worrying about backwards compatability with updates. Use at own risk.

Goals

  • Lightweight framework to be easily used for GameJam games
  • Foster should run in the Browser and in Electron without any changes on the game-side
  • ES6 all the way. No interest in being ES5 / backwards compatible.
  • Scene -> Entity -> Component structure
  • Frame-based animation, with atlas loading (Aseprite, Texture Packer, etc)
  • AABB Collision system, with simple Physics component to handle motion

Todo

  • BlendModes (additive, multiply, subtract, etc)
  • Comment everything (and generate Docs somehow?)
  • Use ES6 import/export and put it into a Foster namespace
  • Make NPM package?
  • Add lots of helper / usability methods (ex. Audio fade in/out, built in screen transitions, more atlas loaders, etc)

Builds

  • foster.js : compiled JS file
  • foster.d.ts : typescript definition file to reference from your game (ex. /// <reference path="foster.d.ts"/>)

Build it yourself

  • Clone the repo
  • Run npm install
  • Compile the typescript to the bin directory with tsc

foster's People

Contributors

kevinw avatar noelfb avatar

Watchers

 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.