@andrewzigler/phaser-container
Wrapper component for loading and resizing Phaser games in Vue.
1,646
5
| Install | |
|---|---|
npm install @andrewzigler/phaser-container |
|
| Latest Version: | 1.1.9 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Oct 5, 2024 |
| Links: | GitHub · npm |
Maintainer: andrewzigler
@andrewzigler/phaser-container
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
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.1.9 | ^2.6.10 | MIT | |
| 1.1.8 | ^2.6.10 | MIT | |
| 1.1.7 | ^2.6.10 | MIT | |
| 1.1.6 | ^2.6.10 | MIT | |
| 1.1.5 | ^2.6.10 | MIT | |
| 1.1.4 | ^2.6.10 | MIT | |
| 1.1.3 | ^2.6.10 | MIT | |
| 1.1.2 | ^2.6.10 | MIT | |
| 1.1.1 | ^2.6.10 | MIT | |
| 1.1.0 | ^2.6.10 | MIT | |
| 1.0.21 | ^2.6.10 | MIT | |
| 1.0.20 | ^2.6.10 | MIT | |
| 1.0.19 | ^2.6.10 | MIT | |
| 1.0.18 | ^2.6.10 | MIT | |
| 1.0.17 | ^2.6.10 | MIT | |
| 1.0.16 | ^2.6.10 | MIT | |
| 1.0.15 | ^2.6.10 | MIT | |
| 1.0.14 | ^2.6.10 | MIT | |
| 1.0.13 | ^2.6.10 | MIT | |
| 1.0.12 | ^2.6.10 | MIT | |
| 1.0.11 | ^2.6.10 | MIT | |
| 1.0.10 | ^2.6.10 | MIT | |
| 1.0.9 | ^2.6.10 | MIT | |
| 1.0.8 | ^2.6.10 | MIT | |
| 1.0.7 | ^2.6.10 | MIT | |
| 1.0.6 | ^2.6.10 | MIT | |
| 1.0.5 | ^2.6.10 | MIT | |
| 1.0.4 | ^2.6.10 | MIT | |
| 1.0.3 | ^2.6.10 | MIT | |
| 1.0.2 | ^2.6.10 | MIT |
Showing the latest 30 of 32. See every release on npm