Simple Multimedia Kit (SMK) is a library for developing games in C++.
Features:
- Compatible with WebAssembly. One build for every platforms!
- Fast & simple.
- No dependencies: everything is fetched using cmake FetchContent.
Installation
Example dependencies on APT-based systems:
Now clone and run the commands:
Basic Example
main.cpp
Create a CMakeLists.txt
file and insert this content inside:
Compile for desktop:
Compile for Web:
You will need Emscripten installed!
Create an index.html
file inside the web directory and insert this content inside:
And now just run the command below and the example will be opened automatically in your default browser:
For more examples, tips and documentation see the official repository on GitHub:
If you want to see a video with more details, watch it below. The video is in Portuguese, however, it is possible to follow the procedures universally
gamedev
cpp
Marcos Oliveira
Software developer