SFML community forums
Bindings - other languages => C => Topic started by: MegaGamer69 on May 13, 2025, 02:25:04 pm
-
Im creating a Clash Royale-like game in CSFML, i use the 2.1 but i want to use the 3, can someone give me tips to migrate?
-
The CSFML 2.x to CSFML 3.x migration should be easier than if you'd do it in C++ land, since more APIs remained the same and some of C++ language changes, didn't transfer/translate into the C API itself.
I personally would make sure that the code is under source control. Then I'd swap out CSFML 2 with CSFML 3 and slowly work myself through the compiler errors.
The migration guide is a good resource, though it's written for C++, so many changes won't directly apply: https://www.sfml-dev.org/tutorials/3.0/getting-started/migrate/
Additionally, I'd build the CSFML documentation with doxygen, so that I could look up the available functions/APIs.