Skip to content

This project is a clone of the popular mobile game Clash of Clans, developed using the QT framework.

Notifications You must be signed in to change notification settings

MohamESalem/Clash-of-Clans-QT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clash-of-Clans-QT:

This project is a clone of the popular mobile game Clash of Clans, developed using the QT framework.

game demo

Game Design and Code Hierarchy Features

Castle & Fence:

  • Share position data and health monitoring.
  • Feature currHealth and maxHealth attributes.
  • MaxHealth prevents health increments beyond the initial value.

Cannon & Bullet:

  • Cannon firing handled in mousePressEvent function.

Enemy:

  • Attributes for position and health.
  • Movement based on A* algorithm.
  • Controls movement, collisions, and interactions.

Citizen Workers:

  • Divided into two groups for fence healing.
  • WorkersClan and Worker classes manage functionality.
  • Movement and healing mechanisms with timers.
  • Choice of worker group based on availability and proximity.
  • Efficient memory usage by creating workers only when needed.
  • Deletion and removal from scene to deallocate memory.

UML Design

plot

Getting Started

Prerequisites:

Setup:

  1. Clone the repository:
git clone https://github.com/MohamESalem/Clash-of-Clans-QT.git
  1. Open the project in QT Creator and build the project.

  2. Run the game and enjoy!

Usage

  • Use the mouse to navigate the game world and interact with objects (buildings, troops).

Contributing

We welcome contributions to this project! Please submit a pull request with your proposed changes.

About

This project is a clone of the popular mobile game Clash of Clans, developed using the QT framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published