0.0.14 • Published 4 years ago

pixil v0.0.14

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

Pixil

Wrapper engine for pixi.js

Documentation can be found here

Usage

npm i pixil
import { App, View, Label, Button } from 'pixil'

const app = new App({ antialias: true })

document.body.appendChild(app.view)

const splash = new View(0, 0)
const game = new View()

app.views.add('SPLASH', splash)
app.views.add('GAME', game)

const startButton = new Button({ text: 'Press me', width: 250, height: 60, radius: 30 })
splash.addChild(startButton)
startButton.onClick(() => {
	app.views.hide('SPLASH')
	app.views.show('GAME')
})

const gameText = new Label('It Works!!!', { fill: '#ffffff' }, 50, 50)
game.addChild(gameText)
0.0.14

4 years ago

0.0.13

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago