playif / play_phaser

A Dart port for Phaser 2D game engine.
MIT License
71 stars 13 forks source link

Game class constructor parent parameter not working #11

Closed mozukichi closed 10 years ago

mozukichi commented 10 years ago

Game class constructor parent parameter not working.

 :
<body>
    <div id="aaaaa"></div>
</body>
 :
void main() {
  Game game = new Game(800, 450, WEBGL, 'aaaaa', new SampleState());
}
 :

Canvas is appended body bottom.

 :
<body>
  <div id="aaaaa"></div>
  <canvas ... ></canvas>
</body>
 :

Thank you.

playif commented 10 years ago

Hi @zukkun I have upgraded the package to 0.11.1. Please let me know if the bug is not fixed, thanks!

mozukichi commented 10 years ago

Umm... It does not appended Canvas. Please check it. Thank you.

mozukichi commented 10 years ago

I'm sorry. I mistake <script> tags order. It corrected to this matter solved.

...
<script src="packages/browser/dart.js"></script>
<script type="application/dart" src="main.dart"></script>
...
...
<script type="application/dart" src="main.dart"></script>
<script src="packages/browser/dart.js"></script>
...

Thank you very much for fixed.