0.1.2 • Published 12 months ago

@vyke/torao v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
12 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

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.0.7

1 year ago

0.0.3

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.6

1 year ago

0.0.2

1 year ago