Appolos Posted August 12, 2018 Share Posted August 12, 2018 I`m use in creating simple game - ES6 syntax, and I cannot add plugin to my game (phaser-plugin-game-scale). Help me and explain how to use plugin in ES6 syntax. Thanks!! Link to comment Share on other sites More sharing options...
samme Posted August 13, 2018 Share Posted August 13, 2018 import GameScalePlugin from 'phaser-plugin-game-scale'; new Phaser.Game({ // ... plugins: { global: [{ key: 'GameScalePlugin', plugin: GameScalePlugin, mapping: 'gameScale' }] } // ... }); Link to comment Share on other sites More sharing options...
Appolos Posted August 13, 2018 Author Share Posted August 13, 2018 Hello! Thanks for answer and creating this plugin. I want ask you how to use your plugin for creating display that resize to mobile screen size (creating response game) If you can help I'll be very grateful you. Link to comment Share on other sites More sharing options...
Appolos Posted August 13, 2018 Author Share Posted August 13, 2018 9 hours ago, samme said: import GameScalePlugin from 'phaser-plugin-game-scale'; new Phaser.Game({ // ... plugins: { global: [{ key: 'GameScalePlugin', plugin: GameScalePlugin, mapping: 'gameScale' }] } // ... }); Hello! Thanks for answer and creating this plugin. I want ask you how to use your plugin for creating display that resize to mobile screen size (creating response game) If you can help I'll be very grateful you. Link to comment Share on other sites More sharing options...
Recommended Posts