rich Posted March 18, 2015 Share Posted March 18, 2015 Grab your buckets and spades, because the Phaser Sandbox is open for playing It's a Phaser specific version of jsbin or codepen basically. The blurb: The Phaser Sandbox allows you to code games in your browser without having to download or install anything. The powerful editor features Phaser code assists, JavaScript snippets and lots of the features you've come to love in editors like Sublime and Brackets. Once finished you can save, export or share your game. You can create code from the templates provided, or start from blank - and feel free to use it to demonstrate things on the forum or even (shudder) file issues on github Once saved a sandbox entry won't ever be deleted and you can fork others code and add your own tweaks. Anyway I'm pretty pleased with this, so please use it drmop, Oscar Abraham, MichaelD and 2 others 5 Link to comment Share on other sites More sharing options...
drmop Posted March 18, 2015 Share Posted March 18, 2015 Looks brilliant, soon I need to learn Phaser in a little more depth so I can add export support to my game editor. I'm sure this will come in very useful. Link to comment Share on other sites More sharing options...
enriqueto Posted March 18, 2015 Share Posted March 18, 2015 great tool for beginners! will make the learning curve shorter Link to comment Share on other sites More sharing options...
valueerror Posted March 19, 2015 Share Posted March 19, 2015 @rich: is there a reason why in the examples there is no extra p2 physics section anymore ? please don't say your letting p2 go in favor of box2d ! Link to comment Share on other sites More sharing options...
rich Posted March 19, 2015 Author Share Posted March 19, 2015 This one you mean? (that has always been there and always will) If you look carefully you'll see that only about half of the example sections are listed in the subnav on the left. But ALL of them are on the main page index. Link to comment Share on other sites More sharing options...
Nikow Posted March 19, 2015 Share Posted March 19, 2015 Awesome !! Very nice job ! Link to comment Share on other sites More sharing options...
valueerror Posted March 19, 2015 Share Posted March 19, 2015 Awesome!thx rich.. i just searched in the list on the left nice makeover of the whole site and back to the topic.. great code editor.. i will definitely use it with my students. Link to comment Share on other sites More sharing options...
stupot Posted March 20, 2015 Share Posted March 20, 2015 Nice! This is going to be very handy to sometimes demonstrate issues and for others to contribute fixes. I didn't spot the 'save' functionality straight away, you have to hover over the open tab title... but where's the export? The new examples 'looks' like you should be able to live edit/run the code, it lets you edit the code and the rocket button says run code. It's what I've always wanted to do on those pages, any plans for this? Link to comment Share on other sites More sharing options...
rich Posted March 20, 2015 Author Share Posted March 20, 2015 You can CTRL-S at any point to save the code too. You can edit the examples and run the code using the editor on those pages too - it just doesn't save your work, or have any of the code insight stuff. One day I may merge the two, but I need to get the new docs system sorted out first. Link to comment Share on other sites More sharing options...
stupot Posted March 20, 2015 Share Posted March 20, 2015 Oh, editing the examples doesn't work for me in either of these desktop browsers - Firefox, Chrome or IE. The rocket (run) button doesn't run the edited code, the recycle (reload) button doesn't revert the editied code - should they? Link to comment Share on other sites More sharing options...
hilty Posted March 21, 2015 Share Posted March 21, 2015 @rich: is there a reason why in the examples there is no extra p2 physics section anymore ? please don't say your letting p2 go in favor of box2d ! Box2d is so bad yet? Link to comment Share on other sites More sharing options...
valueerror Posted March 21, 2015 Share Posted March 21, 2015 box2d looks great!but i started with arcade last year .. then switched to p2 because arcade is very limited and now im really good at it .. i'm just lazy and want to be able to rely on my knowledge a little bit longer than 6 months.. also i teach young children game development (while i'm still learning it myself ^^) and i don't want to tell them that they can now throw away what they learned about the framework and it's physics system and now need to pay 45.- to continue working with the framework. (because arcade just isn't enough for our needs) also i developed several p2 specific solutions for several problems (like my "one way platforms" or my "throw-able grappling hook", or my "top down view ramps" ) - therefore i'm just glad i just overlooked the p2 examples and rich is keeping it in the framework as first class citizen.. but box2d (i've looked into the examples) looks really clean and useful and some things seem to work better than with p2 - so i'm probably going to give it a serious try at some point.. but i'm quite sure i'm not going to use it in school because it's not free... i'm teaching foss only ;-) Link to comment Share on other sites More sharing options...
rich Posted March 24, 2015 Author Share Posted March 24, 2015 Oh, editing the examples doesn't work for me in either of these desktop browsers - Firefox, Chrome or IE. The rocket (run) button doesn't run the edited code, the recycle (reload) button doesn't revert the editied code - should they? Does now Fixed it today. Link to comment Share on other sites More sharing options...
stupot Posted March 24, 2015 Share Posted March 24, 2015 Aha, I'm now seeing some improvement. The rocket button in Desktop Chrome is now restarting the edited code, the recycle does nothing. Desktop Firefox isn't doing anything with these buttons. Link to comment Share on other sites More sharing options...
valueerror Posted March 24, 2015 Share Posted March 24, 2015 so sandbox is going to be used as something like jsfiddle for phaser? the play button is also the save button (it took me a while to see that) is there a way to get back to my sandboxes in the future? Link to comment Share on other sites More sharing options...
rich Posted March 24, 2015 Author Share Posted March 24, 2015 Yes that is what Sandbox will eventually become, just tailored more specifically to Phaser. Once we've added the user registration system you'll be able to see saved boxes, yes, but for now you'd need to keep the links to hand somewhere, sorry. Link to comment Share on other sites More sharing options...
Secretmapper Posted May 6, 2015 Share Posted May 6, 2015 Is this open source @rich? Link to comment Share on other sites More sharing options...
rich Posted May 6, 2015 Author Share Posted May 6, 2015 It's not, but only because I don't have time to package it up and release it (it's all tightly built into the Phaser site right now). You can get all the important bits just by viewing the source Secretmapper 1 Link to comment Share on other sites More sharing options...
Recommended Posts