Annoraaq / grid-engine

A grid based movement engine compatible with Phaser3.
https://annoraaq.github.io/grid-engine/
Apache License 2.0
235 stars 20 forks source link

Print Grid Engine version only once #409

Closed Annoraaq closed 1 year ago

Annoraaq commented 1 year ago

Currently it is printed in the constructor. So if it is used in multiple scenes, the welcome message appears in the console for each scene. Moreover Phaser 3.60.0 introduced a system scene which is always created with all scene plugins. This leads to the grid engine welcome message to be shown at least twice.

Additionally the welcome message of GridEngine headless version should only be printed when not using the Phaser plugin.