OpenGL clone of the Unity Angry Bots ECS sample project
I also made an accompnaying video with some discussion.
Code is pretty rough but may still prove useful for others doing something similar.
The project is built using bazel for Windows only.
NOTE: None of the original assets from Unity's project have been included, you'll need to copy them into the appropriate directories if you want to run the project yourself. The .gitignore file can be a good guide for this.
Project can be built with bazel build -c opt angrygl:main
and the resulting binary can be found at bazel-bin/angrygl/main.exe
. The binary assumes that it's being run from the root directory. So build and run would be
// From root dir with WORKSPACE in it
bazel build -c opt angrygl:main && ./bazel-bin/angrygl/main.exe
irrKlang was used as the audio library. I don't believe the license allows for including the library in this repo so audio is disabled. The code which uses the audio is still there but ifdef'd out to show how it was done.
The following libraries were used: