Closed TheIceMageX50 closed 9 years ago
Your main function won't be called because it is set as a class method
it should be
void main()
{
new PhaserTest();
}
class PhaserTest
{
PhaserTest()
{
Game game = new Game(800, 600, AUTO, 'output');
State blah = new MyState();
game.state.add('state1', blah);
game.state.start('state1');
}
}
Oh wow, really? I see, thank you.
I am on Win7 running latest Dart version and I have my dart file as below
When I click my index.html to "Run in Dartium" and it loads, there is nothing but a blank tab...I don't understand, have I really done something wrong here or is something broken? :( I mean really, my code is just like your first example. To clarify, bunny.png IS in the web directory of the same project and output is a div in the body of my html.