Yes, your plan to integrate Sui into your C++ game looks solid.
You’re correct to start with installing the Sui dev environment and familiarizing yourself with coding smart contracts and creating assets, as mentioned in the Sui Docs.
Experimenting with assets and contracts on testnet before the mainnet is indeed a wise move.
Incorporating a JSON RPC library into your C++ codebase, as listed in the Wikipedia article, is necessary to interact with the Sui network.
Finally, using the Sui JSON RPC Docs to interface with the testnet node aligns with best practices.
For inspiration on structuring your C++ library, you can take a look at other Sui SDKs and libraries like the ones in Rust, TypeScript, and Python among others and Unreal SDK for Sui: Unreal Engine uses C++, so this SDK could be particularly relevant.
Thanks for you time and info tamas. I am very new at this and didn’t want to waste weeks persuing things the wrong way. I looked into the Unreal code and have finally settled on trying this JSON for Modern C++ - JSON for Modern C++. I will attempt a basic query of a node at the weekend. I am working on a 2d game builder and adding blockchain features seems to be the hardest part.
I have been working on this for just a day and got my first proper response from a Sui node. The code works perfectly in a thread with the game running at the same time. I have been beating my head against a brick wall trying to do this with EVM for 2 years. I love Sui.