General Preparation¶
You can use multiple programming languages with Acron. The most commonly used language is Python, followed by C++. Some manual pages offer both C++ and Python information - use the toggle button at the top of the manual page to toggle between C++ information and Python information.
You are currently viewing the C++ version of the manual. We recommend using Python when first starting out with Acron. If you wish to view the Python version instead, click the “Python” link at the top-left corner of this page.
Learning C++¶
It is possible to write Acron programs using C++. However, since most of the documentation uses Python, it may be better to learn Acron using Python first, and then switch to C++ later. If you do switch, the function calls are very similar.
C++ is an object-oriented high-level multi-purpose language. It is actually a copy of the C programming language, but object-oriented, with more functions. Here are a few links to C++ tutorials that might be useful for you:
A C++ game is compiled against the Acron SDK of its platform with CMake 3.16 or later and a C++17 compiler: Xcode’s command-line tools on macOS, Visual Studio 2022 on Windows, GCC or Clang on Linux. The engine itself is prebuilt; see Building C++ Games for the Desktop.
Note
While many resources for Acron are written with Python users in mind, in
many cases the code can be fairly easily translated to C++. Of particular
note is the fact that sample code in Python may use the camelCase()
naming convention for methods, which is not available in the C++ API.
You will need to translate these to the equivalent snake_case() names.
The classes of the engine’s modules (acron.core,
acron.bullet and the others) are also available in the C++ API,
whereas the Python classes of the direct package and of the
acron framework are not.