line rider core library
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
fixtures add cripple test track Dec 2, 2016
.npmignore add .npmignore + update package.json Aug 12, 2016
index.js initial commit + set up es6 unit testing Mar 28, 2016


This repository contains the core libary for Line Rider:

  • line-rider-engine: Backwards compatible physics engine for Line Rider

Some helper libraries:

  • v2: simple 2d vectors
  • g2: geometry helpers
  • immo: Immutable Manually Managed Objects
  • ordered-object-array: A collection for sorted objects in an array
  • line-engine: A framework for deterministic grid-based physics engines with efficient recomputation
  • line-space: A data structure for efficient spatial querying of lines

And some utility functions in utils:

  • dda: digital differential analyzer (draws a line using pixels) for floating point coordinates
  • hashNumberPair: functions that map every pair of integers to a unique integer

These libraries are located in src, along with their corresponding tests.


See src/line-rider-engine.spec.js


  1. npm install
  2. make

This transpiles the source files from es6 into whatever can be run natively in your version of node. The built files will be located in build


make test

Test results are put into test-results.