CommandLineHeroes / hero-engine

Open-source HTML5 adventure game engine
MIT License
219 stars 65 forks source link

Create Hero Engine constructor #43

Open mwcz opened 5 years ago

mwcz commented 5 years ago

Something like:

new HeroEngine({

  // the Tiled json file containing your game
  level: "assets/level.json",

  // optional, customize the configurations passed into Phaser.Game()
  phaser: {
    type: Phaser.AUTO,
    width: 800,
    height: 600,
    backgroundColor: '#2d2d2d',
    parent: 'phaser-example',
  }
});
Jared-Sprague commented 5 years ago

This will be the top level wrapper of the Hero Engine. also allow for pass through object for the Phaser game constructor.