Re:How to Make an RPG
by myth_drannon on Friday June 24, 2016 @07:26AM
(#11968848)
Anyone can suggest similar books/tutorials with Javascript?
[ Parent
| on HN ]
Phaser.io has a bunch of javascript resources and books.
While I really enjoyed Phaser, which in turn made me love TypeScript.
I had some serious issues with performance and trying to maintain 60 frames per second in any 16:9 resolution.
I've been looking into C++ and Java solutions and this book might be the perfect fit.
Re:How to Make an RPG
by khalilravanna on Friday June 24, 2016 @12:42PM
(#11971257)
I had the same issues myself until I ended up dropping Phaser and using Pixijs (the rendering code used by Phaser) on its own and then writing a bit of code to only render the game in chunks. It seems like by default Pixijs (and this may have changed since I wrote my code) renders the whole scene no matter how large it is. Since I'm working on dwarf fortress type game, the game world has a lot going on and it crushed my game's performance and brought it to a halt. Since writing that chunking code I haven't had any performance problems that weren't my own doing.
tl;dr I would recommend checking out Pixijs on its own if you still want to use TypeScript (I recently converted my code from es6 to TypeScript a month or two ago and am in love love love).