0.1.2 • Published 10 months ago

@vyke/torao v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

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.

createGame

Create a new game.

const entity = {
	// ...your components
}

const director = createDirector<{
	home: never
	// ...your scenes
}>()

const game = createGame({
	director,
	entity,
})

Others vyke projects

0.1.0

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.0.7

10 months ago

0.0.3

11 months ago

0.0.5

10 months ago

0.0.4

11 months ago

0.0.6

10 months ago

0.0.2

11 months ago