Question: Does GameMaker use C++?
Answer
GameMaker Studio, developed by YoYo Games, is a popular game development platform that simplifies the process of game creation. While it has its own scripting language called GameMaker Language (GML), which is similar in syntax to C, GameMaker itself is not primarily programmed using C++. However, GameMaker does provide functionality for more advanced users to extend the capabilities of their games through the use of "extensions".
Extensions in GameMaker can be written in various languages, including C++. These are typically used to add functionality that is not available in GML or to optimize certain aspects of a game by writing them in a lower-level language. Here's a simple example of how one might go about creating an extension:
// Example C++ code for a GameMaker extension // This is a simplified example function extern "C" double MyCustomFunction(double value) { // Perform some operation in C++ return value * 2; }
To use this in GameMaker, you would compile it as a dynamic library (.dll on Windows, .so on Linux, or .dylib on MacOS), and then set up an extension in GameMaker Studio to call this function. In the GameMaker IDE, you'd specify the function name and the parameters it expects.
While extensions and native code can enhance a GameMaker project, most of the development within GameMaker Studio is done using GML. It is worth noting that the actual source code of the GameMaker Studio IDE and runtime is not accessible to the public, and it is not known to be written in C++.
In conclusion, while GameMaker Studio's primary programming language is GML, developers do have the option to use C++ for creating extensions which can then be integrated into their GameMaker projects.
Was this content helpful?
Other Common Game Engines Questions (and Answers)
- Can You Use C# in Unreal Engine?
- Is Unreal Engine Open Source?
- Can Unreal Engine make 2D games?
- Does Unreal Engine Use C++?
- Does Unreal Engine Use Python?
- What Language Does Unreal Engine Use?
- Does Unreal Engine Use JavaScript?
- Does Unreal Engine work on Linux?
- How Do I Uninstall Unreal Engine 5?
- Is Blender or Unreal Engine Better?
- Is Unreal Engine Good for Beginners?
- Does Unreal Engine Work on Mac?
Free System Design on AWS E-Book
Download this early release of O'Reilly's latest cloud infrastructure e-book: System Design on AWS.
Switch & save up to 80%
Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement. Instantly experience up to a 25X boost in performance and 80% reduction in cost