Using SplashKit
Here is a basic overview of how to compile and run SplashKit programs in C++, C# and python.
To compile C++ SplashKit code, you will use the following command (assuming the code file is named program.cpp):
clang++ program.cpp -l SplashKit -o test_programOr:
g++ program.cpp -l SplashKit -o test_programThen you can run the program with:
./test_programOr, if using MSYS2 (MINGW64):
./test_program.exeTo run C# SplashKit code with dotnet, you will need to first run the command below:
dotnet add package SplashKitThis will add the SplashKit NuGet package, to link the SplashKit SDK to your project.
Then you can run the program using:
dotnet runTo run SplashKit python code, you will use the following command (assuming the code file is named program.py):
python3 program.pyMore Information
Section titled “More Information”More detailed guides on getting started with SplashKit coming soon…
For now, you can look at these guides in the programmers.guide online textbook:
| Language | Overview | Link |
|---|---|---|
| C# | Setting up a basic SplashKit C# project. | Your First Program |
| C# | Building a graphical (GUI) SplashKit program. | Build Graphical Hello World |
| C++ | Setting up a basic SplashKit C++ program. | Hello from C/C++ |
| C++ | More in-depth C++ guide. | Building a C/C++ Program |