DEV Community

Discussion on: Towards Complexity

Collapse
 
rhymes profile image
rhymes

An in browser game using JS and something like Phaser and Rust in case you need WASM?

Or you could try using Skia with C++ which also supports WASM

Collapse
 
deciduously profile image
Ben Lovy

Phaser could be a good fit. I think if I go Phaser, I won't need WASM, and if I go WASM, I probably won't need Phaser. I'm leaning further towards the C++ route for this experiment, though - I'm writing more and more C++ for school as well and find the constant context switching in the course of a day slows me down. Eventually I'd like to get better at that skill but that's not my goal right now.

I hadn't looked at Skia - have you used it? I had also thought about fastUIdraw, but know very little about either. Would you specifically not recommend SDL/SFML? Those were really all I knew about going in.

Collapse
 
rhymes profile image
rhymes

I'm leaning further towards the C++ route for this experiment, though - I'm writing more and more C++ for school as well and find the constant context switching in the course of a day slows me down.

Agreed!

I hadn't looked at Skia - have you used it?

I haven't used Skia but it's the rendering engine for Android and Flutter and Firefox on some platforms (I think only Windows), so it's probably battle tested :)

I've used SDL a long time ago through Python and PyGame, I don't have recent info on SDL but IIRC it's still going strong!

Thread Thread
 
deciduously profile image
Ben Lovy

Ah, cool! Can't be terrible then :) I'll give it a closer look, thanks again. I think it sits at exactly the level I'm looking for in a rendering library