Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/danprince/silmarils

👑 Utilities for building 2D games
https://github.com/danprince/silmarils

canvas gamedev geometry random vectors

Last synced: about 2 months ago
JSON representation

👑 Utilities for building 2D games

Awesome Lists containing this project

README

        

Logo


Silmarils


npm version

This library is a collection of functions that I am tired of rewriting for games and interactive visualizations.

It is well typed, data oriented, and works well in modern environments.

* [Documentation](https://silmarils.netlify.app/)

``` javascript
// importing modules from UNPKG
import { Point } from "https://unpkg.com/silmarils"

// importing a single function from UNPKG
import { distance } from "https://unpkg.com/silmarils/point";
```

Alternatively if you're using a bundler then you can install the library from npm and import it instead.

``` javascript
// importing modules from npm
import { Point } from "silmarils";

// importing a single function from npm
import { distance } from "silmarils/point";
```