Skip to content

WispSnow/MonsterWar

Repository files navigation

English | 简体中文

MonsterWar

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++ 游戏开发之旅".

Control

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;

Play on Webpage

MonsterWar

  • 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.

ScreenShot

Third-party libraries

How to build

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 build

If you encounter trouble downloading from GitHub (especially on networks in mainland China), please refer to the wiki for an alternative building guide.

Credits

Contact

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!

Buy Me a Coffee

Buy Me A Coffee Support me on Afdian

QQ Discussion Group and My WeChat QR Code

About

A tower defense game developed in C++ with SDL3, entt, imgui, glm, nlohmann-json and Tiled.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors