9fab6f43c36dc05b47a8fa7a29be51062b156a48
Simian
Simian is a Raylib + AngelScript test project on Windows.
It demonstrates how to integrate Raylib for graphics and AngelScript for scripting, including the scriptstdstring add-on.
Requirements
- Windows 10/11 (tested)
- Visual Studio 2022 with Desktop development with C++ workload
- CMake 3.25+
- Git
- Optional: VSCode for editing
Getting Started
1. Clone the repository with submodules
git clone --recurse-submodules <your-repo-url>
cd Simian
If you forgot --recurse-submodules, run:
git submodule update --init --recursive
This will pull Raylib and AngelScript into external/.
2. Build with CMake
# Create build folder
mkdir build
cd build
# Generate Visual Studio solution (64-bit)
cmake -G "Visual Studio 17 2022" -A x64 ..
# Build Release version
cmake --build . --config Release
After building, the executable will be at:
build\Release\simian.exe
3. Run the project
build\Release\simian.exe
You should see a Raylib window open and the console will output:
[Script] Hello from AngelScript!
Project Structure
Simian/
├─ external/
│ ├─ raylib/ # Git submodule
│ └─ angelscript/ # Git submodule (includes scriptstdstring add-on)
├─ scripts/ # Optional: .as scripts to be loaded at runtime
├─ main.cpp # Entry point (Raylib + AngelScript)
├─ CMakeLists.txt # Build configuration
└─ README.md
Notes
- AngelScript
stringsupport is enabled viascriptstdstringadd-on. - Hot-reloading scripts can be implemented by loading
.asfiles from thescripts/folder. - Update submodules with:
cd external/raylib
git pull origin master
cd ../angelscript
git pull origin master
cd ../..
git add external/raylib external/angelscript
git commit -m "Update submodules"
CMake Targets
simian— main executableraylib— static library submoduleangelscript— static library submodulescriptstdstring— static library add-on for AngelScript
Tips
- Always use VS2022 Developer Command Prompt or VSCode terminal configured for MSVC.
- Pin submodules to specific commits for reproducible builds.
- To clean build: delete the
build/folder and regenerate with CMake.
License
- Raylib: Zlib License
- AngelScript: MIT License
- Simian: Not open source (Yet)
Description
Languages
C
91%
C++
7.6%
CMake
1.1%
Just
0.3%