Critique > Devlogs & Projects
2d Development Frameworks/suits/engines
Gil:
Personally I think that any game that's not on the web today is slightly behind the curve before development even starts. On the other hand, Steam greenlight being an open door these days levels the playing field quite a bit. Personally, I haven't found a game engine I really like yet, that hands me the control I really want. AlexHW can probably tell you more about that :)
API-Beast:
Well, in the last 5 years of C++ I haven't found any really good engine for 2D games. That said, SFML is the most robust solution. To make 2D games all you need is display graphics, play sounds and get input, which SFML all provides in a way that works on all platforms.
I work on a small library I called Springbok to improve the situation a little, but it takes time. I have a high performance renderer for sprites, but it still doesn't work on AMD GPUs and I wanted to rewrite it anyway, so it will remain unusable until Vulkan is released. (Unless someone here is a kick-ass OpenGL coder that uses a AMD GPU and wants to help me.)
Regarding Web, you can compile C++ to Javascript via emscripten, but I don't know if it works with SFML right now.
Gil:
--- Quote from: Mr. Beast on December 30, 2015, 09:29:39 pm ---You can compile C++ to Javascript via emscripten, so yes, you can run it in the browser.
--- End quote ---
I highly prefer Javascript as a language over C++, but that's neither here nor there. As far as I can tell, emscripten does work fine, but you need to constantly check if performance is okay and if it wants to compile, I wouldn't just create a whole game to find out it's problematic with emscripten.
API-Beast:
--- Quote from: Gil on December 30, 2015, 09:33:10 pm ---
--- Quote from: Mr. Beast on December 30, 2015, 09:29:39 pm ---You can compile C++ to Javascript via emscripten, so yes, you can run it in the browser.
--- End quote ---
I highly prefer Javascript as a language over C++, but that's neither here nor there. As far as I can tell, emscripten does work fine, but you need to constantly check if performance is okay and if it wants to compile, I wouldn't just create a whole game to find out it's problematic with emscripten.
--- End quote ---
That's not really a issue for 2D games. For one human Javascript is much slower than the one Emscripten creates, so even though Javascript is slower than native C++, it will still be a lot faster than if you had written the game in Javascript in the first case. The other is that our PCs are "overpowered" for 2D games, so if you run into performance problems you are doing either very expensive stuff like fluid simulation or doing something very wrong, not a issue you normally run into.
Gil:
--- Quote from: Mr. Beast on December 30, 2015, 09:43:40 pm ---For one human Javascript is much slower than the one Emscripten creates, so even though Javascript is slower than native C++, it will still be a lot faster than if you had written the game in Javascript in the first case.
--- End quote ---
This is just simply not true. I don't see how Emscripten would create more efficient javascript than I would. I mean, it probably will shave off a few cycles, but I can probably shave those off with a Javascript optimizer too. And it will never be "a lot faster", unless I really screw up. That is, unless I compile to ASM.js, which is already a dead idea, as Chrome (a browser everyone uses basically) doesn't intend to ever support it, unless I missed some major news.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version