Whenever I start a new game, I make a whole bunch of classes that extend my base classes, so:
com.blah.Game extends com.iainlobb.Game and has some setup code
com.blah.Player extends com.iainlobb.Player, and has some setup code
etc
Now all I need is a way to generate these classes at the start of the project so I don’t have to create each one manually. It will save me at least an hour of faffing around per game. So how do I do it? I normally use FlashDevelop but I also have FlexBuilder 3, or I’m happy to download whatever other software I need (PC). Thanks.
If you’re using FlashDevelop you can create your own project template based off of one of the defaults. The templates are in:
A typical template file looks like this, and it shouldn’t be very hard to change them up to extend your basic framework instead. You can add multiple files to a project template.
Not super sure about adding the import though, that might have to be a manual step, unless you feel comfortable adding a copy of it to each project.