English | 简体中文
MonsterWar is a cross-platform tower defense game developed in C++ with Entt, SDL3, glm, ImGui, nlohmann-json and Tiled.
This project is a teaching demonstration project; it is the 4th episode in a series of tutorials titled "C++ 游戏开发之旅".
Mouse left - select a unit from UI portrait / place a unit on map;
S - Skill active shortcut;
R - Retreat shortcut;
U - Upgrade shortcut;
P - pause or resume;
A,D / left,right - to move UI portrait panel;
- Note: The game uses ImGui for temporary UI, so you need to resize the webpage size to fit the screen. Otherwise some UI elements may not be visible.
Dependencies will be automatically downloaded by Git FetchContent to make building quite easy:
git clone https://github.com/WispSnow/MonsterWar.git
cd MonsterWar
cmake -S . -B build
cmake --build buildIf you encounter trouble downloading from GitHub (especially on networks in mainland China), please refer to the wiki for an alternative building guide.
-
sprite
-
portrait
-
FX
-
font
-
UI
-
sound
- https://ateliermagicae.itch.io/fantasy-ui-sound-effects
- https://pixabay.com/sound-effects/violin-lose-4-185125/
- https://pixabay.com/sound-effects/level-win-6416/
- https://freesound.org/people/SilverIllusionist/sounds/664265/ (Healing (Balm).wav by Dylan Kelk)
- https://freesound.org/people/DWOBoyle/sounds/136696/
-
music
-
Sponsors:
sino,李同学,swrainbow,爱发电用户_b7469,玉笔难图,jl
For support or feedback, please contact us through the GitHub issues section of this repository. Your feedback is crucial for making this series of tutorials better!






