Sign in to follow this  
Appolos

Plugins in Phaser&ES6

Recommended Posts

import GameScalePlugin from 'phaser-plugin-game-scale';

new Phaser.Game({
  // ...
  plugins: {
    global: [{ key: 'GameScalePlugin', plugin: GameScalePlugin, mapping: 'gameScale' }]
  }
  // ...
});

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.