Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

michegames/phaser_configurator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

a phaser configurator that i use for my games

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors