If you like to code in C#, another good framework to use is MonoGame (Stardew Valley, Celeste, Terraria, etc)
You can do web games with KNI from the same codebase.
I second this!