Skip to content

SplatJS/splat-ecs

 
 

Repository files navigation

Splat ECS

A 2d HTML5 Canvas game engine

Splat ECS is a 2d game engine made for creating multi-platform games entirely in JavaScript. Splat ECS is built around the Entity Component System pattern, which is flexible and promotes composition of behaviors.

Features

  • Rectangles!
  • Keyboard, mouse, touch, & gamepad input
  • Sounds and music (Web Audio API and HTML5 Audio)
  • Sprite animation
  • Asset loading, and built-in loading screen
  • Games work well on phones, tablets, and desktop browsers.
  • A* Pathfinding
  • Particles
  • Tiled map editor support
  • Easing

Supported (tested) Platforms

  • Chrome (desktop & mobile)
  • Firefox
  • Internet Explorer (desktop & mobile)
  • Safari (desktop & mobile)
  • Mac using Electron
  • Linux x64 using Electron
  • iOS using Ejecta
  • Chrome Web Store

Splat ECS works in PhoneGap/Cordova, but it seems like the apps it produces lack hardware acceleration, making games unplayable. Splat ECS may or may not work on other platforms, please let us know what you find out.

Create a new Game (recommended)

Fork the starter project

Install through NPM

$ npm install --save splat-ecs

Then require Splat ECS into your game:

var Splat = require("splat-ecs");

Then use browserify to bundle your game as a single JavaScript file for the browser.

Games using Splat ECS

Send a pull request to add your game to the list!

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 7