HaxeFlixel / flixel-docs

Documentation for HaxeFlixel
72 stars 135 forks source link

Tutorial pt. 7 references missing arguments #245

Open NQNStudios opened 3 years ago

NQNStudios commented 3 years ago

Following the TurnBasedRPG tutorial, part 7 references width and height arguments that aren't yet provided by the template code:

here

It says to change the width and height, but for me the game constructor is called like so: new FlxGame(0, 0, MenuState). That's how it was when I called flixel tpl to get started (after changing PlayState to MenuState). So that line in the tutorial is a little confusing. It should either say to add arguments for width and height, or to edit the width and height arguments in Project.xml.

NQNStudios commented 3 years ago

Actually, the arguments aren't missing, they're just the 0s and not labeled unless your IDE shows constructor argument names on mouse-over. It would help to clarify that the 0s need to change, and also, since it's not obvious why changing width and height would make your game zoom, this tutorial should clarify that zooming is done automatically relative to the Project.xml width and height values.