godotengine / godot-cpp

C++ bindings for the Godot script API
MIT License
1.66k stars 502 forks source link

Difficulty Reading/Implementing "GDNative C Example" Code #831

Open StevenStevenStevenS opened 2 years ago

StevenStevenStevenS commented 2 years ago

Hello Godot Community,

I have been through the GDNative C Example tutorial, but have difficulty applying the knowledge gained through it to my own C/Godot project. I wouldn't complain, except that this has prevented me from working in C before. I'm relatively new to C, but would like to learn more through my code.

I didn't know exactly how to solve this. If there were a pseudo-code version of the GDNative C and C++ Examples, maybe? Something along the same lines would really improve readability.

Thank you, humble junior dev Steven

Calinou commented 2 years ago

If there were a pseudo-code version of the GDNative C and C++ Examples, maybe?

How would a pseudocode version make the GDNative tutorial easier to follow?

I think the GDNative C example page is designed for people who already have intermediate-level knowledge of C, and that's fine. It's not meant to be a C language tutorial, as third-party resources will provide a better guide for that. We can't teach everything there is to know in computer science in the Godot docs :slightly_smiling_face: