game_configurator

1.0.2 • Public • Published

Phaser JS Game Configurator

About

This library makes it easy to have an object preconfigured with general options. It applies a very simple principle by scaling the game on width or height depending on whether it is a game designed for landscape or potrait. Resolutions are designed to be 16/9 and scaled accordingly.



Currently the resolutions are:

  • RETRO: 640x360 (It also automatically enables pixel art)
  • CLASSIC: 836x470
  • MODERN: 1031x580

Disclaimer

this library I use for my personal projects, it is published in the hope that it will be useful to someone but without any claim, not even that it will work for you.


Usage

import { configurator, Orientations, Types} from 'game_configurator';
...
const config = configurator(Types.MODERN, Orientations.HORIZONTAL);
config.scene = [... your scene array here ...];
const ref = new Game(config);

Readme

Keywords

Package Sidebar

Install

npm i game_configurator

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

20.4 kB

Total Files

4

Last publish

Collaborators

  • micheg79