0.1.2 • Published 8 months ago

@vyke/torao v0.1.2

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

8 months ago

0.1.2

8 months ago

0.1.1

8 months ago

0.0.7

9 months ago

0.0.3

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.6

9 months ago

0.0.2

9 months ago