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_program
Or:
g++ program.cpp -l SplashKit -o test_program
Then you can run the program with:
./test_program
Or, if using MSYS2 (MINGW64):
./test_program.exe
To run C# SplashKit code with dotnet, you will need to first run the command below:
dotnet add package SplashKit
This will add the SplashKit NuGet package, to link the SplashKit SDK to your project.
Then you can run the program using:
dotnet run
To run SplashKit python code, you will use the following command (assuming the code file is named program.py
):
python3 program.py
More 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 |