• Dear Cerberus X User!

    As we prepare to transition the forum ownership from Mike to Phil (TripleHead GmbH), we need your explicit consent to transfer your user data in accordance with our amended Terms and Rules in order to be compliant with data protection laws.

    Important: If you accept the amended Terms and Rules, you agree to the transfer of your user data to the future forum owner!

    Please read the new Terms and Rules below, check the box to agree, and click "Accept" to continue enjoying your Cerberus X Forum experience. The deadline for consent is April 5, 2024.

    Do not accept the amended Terms and Rules if you do not wish your personal data to be transferred to the future forum owner!

    Accepting ensures:

    - Continued access to your account with a short break for the actual transfer.

    - Retention of your data under the same terms.

    Without consent:

    - You don't have further access to your forum user account.

    - Your account and personal data will be deleted after April 5, 2024.

    - Public posts remain, but usernames indicating real identity will be anonymized. If you disagree with a fictitious name you have the option to contact us so we can find a name that is acceptable to you.

    We hope to keep you in our community and see you on the forum soon!

    All the best

    Your Cerberus X Team

Your favourite game library for 2d indie games?

Wingnut

Well-known member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
1,414
I'm trying out several graphics libraries now, I seem to settle down for SDL (v2.x).

What's your favourite graphics library for indie games? I previously looked into other libraries such as libGDX but it's a bit too high-level for the things that I want to control directly. I'm totally fine having to deal with things like physics and 2d sprites on a lower level.

So far I have only used SDL on Windows 10 but I'm interested to see how well it works with Android later.
 
So far these are the favorite crossplatform graphics libraries :

Google Angle, supports Windows, macOS, Linux, Android, and soon iOS (also ChromeOS and Fuschia)


Sokol, supports Windows(Win32/UWP), MacOS, Linux(X11), iOS, Android, Web(WebAssembly)


Magnum, supports Windows, macOS, Linux/embedded Linux, iOS, Android, Web (WebAssembly)

BGFX, supports Windows(Win32/UWP), MacOS, Linux, iOS, Android, Web(WebAssembly), Raspberry Pi
 
Last edited:
Don't have a lot of experience but

When it comes to performance nothing can beat mojo2 with Cerberus if you need performance, this is what I recommend.

For Lua, Löve2D would be my recommendation too because of the simplicity and the amount of 3rd party libs available is insane. It is support all desktop and mobile platforms. It is also possible to port the game to Nintendo Switch.

For JavaScript Pixi.js is one of the most popular, with staff like Electron and Cordova you can target all platforms except game consoles. Despite initial support, game consoles dropped HTML5 support.
An other I personally find interesting for more simple projects is p5.js, I like the simplicity and many libraries available.

The Haxe programming language with OpenFL is also an option if you are not afraid of niche programming languages, I have tried it for a week but I didn't like it. In theory it is nice, with HaxeLink you can target anything including PlayStation, Xbox. If you want to target game consoles with small effort, maybe worth to consider.

For C/C++ I would go with Raylib because of the simplicity but you don't seem like someone who afraid of complicated staff. I don't have a lot of experience with C++ and there are tons of options. I vote for Raylib because of simplicity.

For C# I would go with MonoGame but similar to libGDX it is maybe too high level but at least it does support also game consoles.
An other option is a C# wrapper available for Raylib which is super easy to setup, you can just import the Nuget package and start coding Raylib in C# but not sure if it support anything other than desktop.

For 3D staff, there is also the Stride game engine, if you want you can import just the 3D engine from nuget and build your own game engine with it in C#. Never tried it, but sounds like an interesting option I would consider just because of the fact you can import it from nuget and it is support Windows, Android and iOS.
 
Thanks for the input. I agree that Cerberus-x's graphic capabilities is superior compared to SDL. I was interested in SDL for adding touchpad to Cerberus mainly and some other things. So many ppl has issues with the SDL when it comes to the graphcis department and the developers of SDL never fix these issues nor do they provide good code how to use it properly.

Using SDL is like an never-ending hunt where you feel that you are doing something wrong if you use it for graphics. Vice64 emulator uses SDL but I know what they did to hide that problem.

Löve seems very interesting! and I do like LUA so maybe I should give that a go!

I have actually tried Haxe and Pixi.js before but at that time I didn't find either one particularly appealing. I quickly experienced that you could get much much better graphics experience using Cerberus-x compiled to the html5. Pixi.js. Pixi has a wide usage of course, but for my uses it was probably overkill too.

Raylib sounded interesting but all the people I know that uses Raylib they all seem to pick another API eventually so I don't believe in that one too much..

LibGDX might be interesting, I think I missed that one!
Löve & LibGDX is added! thanks
 
Back
Top Bottom