Fairydhwen Posted May 3, 2016 Share Posted May 3, 2016 Hi, i'm looking for best pratices to start a phaser project with TypeScript. Most of the tutorials are not up to date (2013 on the site). What about project's structure (i mean directories, naming convention etc.), which tools etc ? EDIT : you can now download a complete Visual Studio Template for Phaser with TypeScript : (it's up to date and easy to install (VS Extension)) https://visualstudiogallery.msdn.microsoft.com/ee6e6d8c-c837-41fb-886a-6b50ae2d06a2 https://github.com/fairydhwen/PhaserTypeScriptTemplate/blob/master/README.md Regards, Fairy Regards, BdR 1 Link to comment Share on other sites More sharing options...
liorfrenkel Posted May 3, 2016 Share Posted May 3, 2016 I am using Visual Studio Community, after you create a typescript project, in the project properties you have an option to "combine javascript output into file", really comfortable. (screenshot attached) other than that use node / npm to refresh the page when developing, I am using this for development - https://github.com/tapio/live-server good luck! Lior Fairydhwen 1 Link to comment Share on other sites More sharing options...
Tom Atom Posted May 3, 2016 Share Posted May 3, 2016 Hi, if you are on Windows, then Visual Studio 2015 Community is very very comfortable Good thing is, that you can code in it not only in Typescript, but almost in everything nowdays - so, single IDE for everything (for example very comfortable support for Cordova, want to wrap your game for Windows Store - make universal Windows App, ...) As @liorfrenkel wrote, you can merge output into one file. And if you need further processing like minimization, you can run your custom post-build tasks. If starting, I wrote small tutorial on creating simple game in Typescirpt here: http://sbcgamesdev.blogspot.cz/2015/05/phaser-tutorial-dronshooter-simple-game.html Fairydhwen and b10b 2 Link to comment Share on other sites More sharing options...
Fairydhwen Posted May 3, 2016 Author Share Posted May 3, 2016 ty, i will follow your advice. PS: your tutorial looks really cool Link to comment Share on other sites More sharing options...
Fairydhwen Posted May 4, 2016 Author Share Posted May 4, 2016 Hey, this is my setup, what do you think about my template ? i used the combine javascript output into file u told me. (nice tip!) Any other tools or configuration i could use ? (web config etc.?) Regards, Link to comment Share on other sites More sharing options...
Fairydhwen Posted May 10, 2016 Author Share Posted May 10, 2016 Hey, I finaly made a full template for Phaser projects with TypeScript. You can get it at : https://github.com/fairydhwen/PhaserTypeScriptTemplate This is a complete structure for small to large projects with best practices i found. There is all you need to start, with sample inspired from Richard's tutorial. Please feel free to contact me if you have any questions or comments Regards, Fairydhwen Link to comment Share on other sites More sharing options...
Fairydhwen Posted May 14, 2016 Author Share Posted May 14, 2016 Hey, you can now download a complete Visual Studio Template for Phaser with TypeScript : (it's up to date and easy to install (VS Extension)) https://visualstudiogallery.msdn.microsoft.com/ee6e6d8c-c837-41fb-886a-6b50ae2d06a2 Regards, Fairy BdR 1 Link to comment Share on other sites More sharing options...
Recommended Posts