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

game-bucket

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

game-bucket

Common game utilities + rollup config, suitable for a small game competition. Like [JS13k](http://js13kgames.com/)!

  • 5.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

game-bucket

Common game utilities + rollup config, suitable for a small game competition. Like JS13k!

Includes:

  • Component Entity System
  • Stable Game Loop with interpolation and panic modes
  • Scheduling, for game-time dependent time events
  • JS13K-compatible zip creation + notice of how close you are to the limit: npm run zip
  • Rollup, so you still get to use modules and separate files.
  • More? You should make a PR!

Rollup bundles JS using ES2015 modules, but does not leave any of the import/export syntax in the resulting bundle. It pulls everything into the same lexical scope, uniquely named. This makes it excellent for a size-based competition, because by its very nature it emits the smallest representation of code! Combined with UglifyJS this gets us very close to a nice base size.

Usage

Fork this repo, then add / change code in index.js as you see fit! There are two dependencies included, but you can remove those. Rollup ensures that only code you import is included!

The default branch for this repo is gh-pages, so it's easy to share your game as well! For example, index.html is available at [gh-username].github.io/game-bucket/index.html!

npm run zip

How close are you to the limit? Compiles in production mode, and creates a zip suitable for JS13K!

npm run build

Build the bundle.js. Use NODE_ENV=production npm run build to remove debug / runtime checks (similar to how React does it).

npm run watch

Rebuild quickly for development mode!

npm run uglify-view

See what the compiled JS will look like, to make sure rollup is treeshaking / hoisting as expected and that dead code is being eliminated. Requires bundle.js to exist.

LICENSE

MIT

FAQs

Package last updated on 22 Jan 2017

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