Skip to content

🛠️ Small collection of tools for developing games with litecanvas.

License

Notifications You must be signed in to change notification settings

litecanvas/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Litecanvas Utilities

Small collection of tools for developing games with Litecanvas.

Install

NPM package

npm i @litecanvas/utils
// import everything
import * as utils from "@litecanvas/utils"

const pos = utils.vec(0, 0)
// or import just what you want
import { vec } from "@litecanvas/utils"

const pos = vec(0, 0)

CDN

Download from https://unpkg.com/browse/@litecanvas/utils/dist/ and load in a <script> tag in your HTML.

// now the "utils" namespace is created
const pos = utils.vec(0, 0)
// also, you can  call this once to
// expose the components globally
utils.global()

// now the namescape is not required
const pos = vec(0, 0)

Components

About

🛠️ Small collection of tools for developing games with litecanvas.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published