Example incoming in the topdown-physics demo.
npm install continuous-storage
store = storage(db, field[, options])
Creates a store instance for your database and continuous array:
dbis a level database.
fieldis the continuous ndarray you want to store.
With the following options:
options.indexis a function which maps a position array to a string key for each chunk in the database. Defaults to
Saves all of the currently instantiated chunks to the database.
Saves a chunk to the database.