rich Posted May 13, 2013 Share Posted May 13, 2013 After the success of getting the code documented I'd like to see if we can replicate this by filling out the Test Suite with lots more examples. The current tests are all very small and finely honed examples that show off just one or two features of Phaser at a time. The code is clean, compact and mostly commented. A trait that needs to carry on in any new examples provided. So if you think you can contribute then please post a message here. You can either upload your TS files to this thread or send me github pull requests. You should try and use assets already provided in the assets folder where at all possible, but if that can't be done then make sure the assets you need to add are as copyright free as possible (I realise that's a bit ironic seeing some of the assets I have in there!) As before with the documentation I'm happy to pay for any contributions that make it into the test suite. Right now I'm thinking $10 per test, but I'll increase that if they are particularly impressive Any questions? Post 'em up here. If you like you can use the 096 branch in github to work from as quite a lot has changed in it. Link to comment Share on other sites More sharing options...
initials Posted May 15, 2013 Share Posted May 15, 2013 I made a game called Soul Harvester with Phaser. I put the code up here: It doesn't conform to your specs for a few reasons:Not well commentedUses many assets that aren't already included Also, it uses many classes that are all defined in the one file. There's got to be a much better way to do that, but I couldn't figure it out. To be honest, it's not the best "example" and I don't want any money for it, but I thought I'd throw it up in case it's useful. Play it:http://initialsgames.com/soul/index.php?f=haunting.js&d=haunting Code:https://github.com/initials/Haunting Link to comment Share on other sites More sharing options...
rich Posted May 15, 2013 Author Share Posted May 15, 2013 Thanks Initials but I'm really after very tiny, compact little examples that just show-off one or two features of Phaser at most, not whole games. Your game is more like a Showcase piece than a Test Suite piece Link to comment Share on other sites More sharing options...
retrogamer4ever Posted May 20, 2013 Share Posted May 20, 2013 Is there anything in particular you would like? I am kinda going through those test examples to help learn how everything works, but once I get used to stuff id happily try and get some in there. So like every time run into a particular problem/solution maybe post example of it? Link to comment Share on other sites More sharing options...
rich Posted May 20, 2013 Author Share Posted May 20, 2013 I think anywhere there are lots of 'gaps'. For example there are barely any examples of how to use Groups, yet that's a really quite important feature. I would say wait until I push 0.9.6 up, as so much has changed in there that most tests need re-writing anyway Link to comment Share on other sites More sharing options...
PixelPicoSean Posted June 14, 2013 Share Posted June 14, 2013 Hi rich, I come to write tests finally .Here's a very simple try: https://github.com/pixelpicosean/phaser/blob/097/Tests/cameras/scrollfactor-compare.jsIs this kind of tests helpful? I see lots of tests have been deleted and so much changes brought to the engine.Do you need to rewrite tests for some specific features? PS. I'm trying to make all the jsdoc work since I prefer javascript to typescript. Link to comment Share on other sites More sharing options...
rich Posted June 14, 2013 Author Share Posted June 14, 2013 Yes that kind of thing will be perfect I would hold off until I release 1.0 though, as you've noticed I have changed lots and it's not over yet! It's not long until launch day, which is both exciting and worrying Link to comment Share on other sites More sharing options...
PixelPicoSean Posted July 18, 2013 Share Posted July 18, 2013 Hi Rich, I've add about 46 tests and send a pull request. Some tests do not work now since some features commentted such as CameraFX. And some tests should work but still not work because of small bugs. I'm going to try to fix them later both tests and bugs of Phaser. Although there're 46 tests already done, a lot more parts have not been touched (like the physics and sound). To everyone who has not tried Phaser I highly recommend it. The upcoming version 1.0 has bunch of powerful and easy to use features supported officially. Hope more developers can help contribute Phaser. Hsaka 1 Link to comment Share on other sites More sharing options...
rich Posted July 18, 2013 Author Share Posted July 18, 2013 Have you been creating these based off the 097 branch? (I assume so because I see you fork it whenever I push). If so, this is really exciting, thank you I've been working my butt off getting a new client game ready, but it goes live today so I'll have some time free to finish off 1.0 and get it released into the wild. Then I will keep iterating on that fast, no more huge long waits between releases. Link to comment Share on other sites More sharing options...
PixelPicoSean Posted July 19, 2013 Share Posted July 19, 2013 Have you been creating these based off the 097 branch?Sure I am, all the tests are based on the 097 branch. Since I cannot always connect to the Internet, I pull your commits everyday if there are something new. I've been planning for more tests, just want to make them better. Link to comment Share on other sites More sharing options...
PixelPicoSean Posted July 27, 2013 Share Posted July 27, 2013 Just add 2 new tests (using RectangleUtils features). See my folk https://github.com/pixelpicosean/phaser/tree/097 Typescript files for all previous tests also added. Link to comment Share on other sites More sharing options...
Recommended Posts