Skip to main content
This release is 3 versions behind 0.1.2 — the latest version of @vyke/torao. Jump to latest

@vyke/torao@0.0.7
Built and signed on GitHub Actions

This package works with Browsers
This package works with Browsers
JSR Score
58%
Published
a week ago (0.0.7)

@vyke/torao

Small and type-friendly library for game development

Installation

npm i @vyke/torao

API

defineComponent

Define a new component.

const Size = defineComponent('size', (value: number) => value)
const Position = defineComponent('position', (pos: {x?: number, y?: number}) => {
	return {x: pos.x ?? 0, y: pos.y ?? 0}
})

createResource

Creates a resource that can be shared between systems.

Others vyke projects

Built and signed on
GitHub Actions
View transparency log