I don't see why people say that c is not good to create a game ^^ one of the images was too large. soooooo...... someone wanna help? ps: the art is not mine oupsy i forgot: https://forum.novelupdates.com/threads/making-a-nuf-rpg.91015/
In school myself, so my help might be limited, but... Well, to help you, you should post your code. Also, tried stackoverflow? C is good for computation thanks to its speed, but I am not sure how it fares in visualisation compared to other languages. Anyway, thanks to Qt it should be getting better. Or did you try VTK library? Also, one of the problems with C is that although you can compile it anywhere, you must compile it first before you run it, unlike java where you compile it once and then you can run it anywhere (IIRC, please correct me if I am wrong. Have not tried java yet).
Because there are alot of more specialized programs for making games such as Unity, as for programing in general, C is considered one of the hardest programming languages to use (I am not saying it is bad, if anything it is a very powerful and excellent language to use), people don't like using low level programming languages and who does with lots of new powerful languages that are way simpler to use and understand
+1 to @Kalto also game engines are literally built for this C is not. most game engines are also free and come with many tutorials and free plugins unity is probably the easiest to learn currently.
@Zaart to give you an idea on the difficulty and silliness of making a game in C. It would be like digging a well to get a glass of water instead of turning on the faucet to get a glass of water.
I'm not complaining. C is wonderful for execution speed, low resource usage, and executable sizes. If all you want is to learn C, then your approach is as nice as it can get. But if you want to go down the game development path, you usually want experience developing the games themselves. Testing ideas, iterating fast, making a bunch of games as fast as possible so you can get the feel for it, for the process, the requirements, dependencies, your target market (if you're going legit), etc. And if you don't know C very, very well already; and you haven't had your fair share of experience building programs on the operating systems you will be targeting; then you will only get slowed down for trying to learn too many things at the same time, and maybe discouraged for the lack of progress in your game. (Btw I haven't found much documentation of the SFML C API so I can't say for sure, but if `sfText_setString` is copying the string instead of using the pointer as-is, then you probably have a memory leak.)
there is a create text and a destroy text function ^^ no problem ^^ but if you ever are interested https://www.sfml-dev.org/download/csfml/index-fr.php
I'm more talking about stuff like Code: rpg->coin = text_crea(inttochar(rpg->money), NULL, 734, 160); ... where `inttochar(rpg->money)` returns an malloc'd string which is passed to `text_crea`, and inside `text_crea` (as `char *disp`) you only mention it in the line `sfText_setString(text->text, disp);`. The stuff you malloc'd inside `inttochar` is never freed by you. So, if `sfText_setString` is copying the string instead of using it as-is (and my C++ knowledge is zero but this looks like it is indeed being copied), you will now have the C string you malloc'd in `inttochar` never used again but forever in memory until the program ends, and also whatever C++ thingy is created from that string for whatever lifetime it has.