Skip to content
This repository was archived by the owner on Oct 5, 2024. It is now read-only.

azigler/phaser-container

@andrewzigler/phaser-container

npm version

Wrapper component for loading and resizing Phaser games in Vue. If provided a Vuex store instance, the component can pass the store to your game so you can share state between Vue and Phaser.

Component Props

width: (width of game in pixels, default: 800)
height: (height of game in pixels, default: 600)
pageContainer: (class name of parent element, for determining max sizes, default: 'container')
phaserContainer: (ID name of element to contain Phaser element, default: 'phaser-container')
fixedSize: (if true, prevents the component from resizing based on pageContainer, default: false)
game: (imported Phaser game file)
store: (Vuex store, default: undefined)

Installation

npm install

Development

npm run dev

Compiling

npm run build

About

Wrapper component for loading and resizing Phaser games in Vue

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •