uyerdna Posted September 3, 2015 Share Posted September 3, 2015 I'm starting to re-work my game using TS and now using Visual Studio 2013. IIS works perfect for me to test and iterate my game rapidly but I need to test it on my device as well. When working with Phaser JS, I need only to set up gruntfile.js, launch grunt, edit a little something and it will work. Can anyone please tell me how to test my game on my device or if needed, set up custom web server in VS? Thanks! Link to comment Share on other sites More sharing options...
Tom Atom Posted September 3, 2015 Share Posted September 3, 2015 You can test on device with very simple Mongoose server: https://code.google.com/p/mongoose/No installation, just one executable and it worked for me. Link to comment Share on other sites More sharing options...
uyerdna Posted September 4, 2015 Author Share Posted September 4, 2015 I was using UniServer when I developed my game using Phaser JS..Would you kindly tell me how to hook it up to Visual Studio 2013? Link to comment Share on other sites More sharing options...
Tom Atom Posted September 4, 2015 Share Posted September 4, 2015 I thought you just need to run the game on the device. You can compile game in VS and then on your target device load index.html from server (which is Mongoose running on your PC). But, I do not know if there is any possible integration into VS. Link to comment Share on other sites More sharing options...
uyerdna Posted September 7, 2015 Author Share Posted September 7, 2015 Hmm I see it now. I guess I'll just need to the grunt work myself if I want live-testing on my deviceI think I can just copy my game files to www folder of mongoose or any server and then run it on my device. Should work that way but I need some one to throw that idea at me. Thanks Tom! Link to comment Share on other sites More sharing options...
Tom Atom Posted September 7, 2015 Share Posted September 7, 2015 You can do whatever you want after VS build - just set it in Project properties in "Build Events" tab. There is "Post-build event command line" window and you can write there what should be done. I am using it to do some extra processing of build output for release like this:if $(ConfigurationName) == Release ( copy ..\js\mygame.js ..\js\mygame_orig.js metascript ..\js\mygame.js > ..\js\mygame_meta.js uglifyjs ..\js\mygame_meta.js -m -c "unused=true,dead_code=true,drop_console=true" --output ..\js\mygame.js) ELSE ( rem do nothing) Link to comment Share on other sites More sharing options...
Recommended Posts