playif / play_phaser

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

Fix Game constructor params: transparent, antialias #26

Closed darkoverlordofdata closed 9 years ago

darkoverlordofdata commented 9 years ago

I found an issue where the transparent and antialias params passed to new Game were not being set:

new Game(w, h, CANVAS, '', state, true);

then check in the state.create method, and find that the transparent field is set to false.

I found the cause to be the constructor parameter list usage of 'this.' conflicting with the constructor's later initialization of the same field.