Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/danprince/silmarils
- Owner: danprince
- License: mit
- Created: 2020-04-08T16:35:33.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-20T07:26:28.000Z (almost 3 years ago)
- Last Synced: 2024-11-01T17:12:30.860Z (3 months ago)
- Topics: canvas, gamedev, geometry, random, vectors
- Language: TypeScript
- Homepage: https://silmarils.netlify.app
- Size: 235 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Silmarils
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";
```