Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tank-js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tank-js

A lightweight Javascript game engine framework.

  • 2.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

TANK

A lightweight Javascript engine framework focused on the following ideas:

  • Modular
  • Small
  • Made for programmers

To get started, pull the repository and take a look at the samples/ directory, or read the docs. More documentation will be written as the framework matures.

Features

Components

Rather than using an inheritance tree, TANK uses a component-based architecture. In this model, you write lots of small, modular components that can be attached to any object to create custom behaviors quickly. A component's logic can very quite a bit in scope, such as a simple position component that just has x and y fields, to a complex renderer that handles drawing and sorting other drawable components.

Entities

An Entity is a generic object whose behavior is defined by the collection of components attached to it. It also may contain child entities which receive updates when it does. Most 'things' in your game will be entities, whether it is a barrel on the ground, a trigger zone, or something more abstract like the object that manages the AI of your strategy game.

Events

All Components can listen to Entities for events. For example, each Entity will dispatch the 'childadded' event when a child is added to it. Events can be dispatched immediately, next frame, or after a certain timeout.

Keywords

FAQs

Package last updated on 06 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc