0.0.2 • Published 8 years ago

swarm-production v0.0.2

Weekly downloads
4
License
GPLv3
Repository
github
Last release
8 years ago

swarm-production

Travis build status Dependency Status devDependency Status

Based on swarmsim's unit production code, rewritten from scratch in ES6.

Unlike many idle game simulations, we don't use discrete ticks every n millis. Instead, countAt(t) calculates the number of units at time t since the last snapshot, and snapshot whenever production values change outside of this system (buy units or upgrade production).

Project template: https://github.com/babel/generator-babel-boilerplate

This hasn't been used in production yet, so there are probably bugs.

Basic ES6 usage:

import prod from  'swarm-production'

npm should work:

npm install swarm-production