Skip to content

Ahmed1262005/Qt-Game-Multiplayer-RocketShooting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

Stellar Strike

version PHP Version Require Qt Python OpenCV Mediapipe Autopy

Stellar Strike is a real-time multiplayer rocket shooting game developed using the Qt framework. It features a physics world with realistic trajectories, gravity, bouncing, and friction. The game also includes an AI mode that uses computer vision to allow you to play the game using hand gestures.

Features

  • Real-Time Multiplayer Battles: Engage in epic multiplayer battles where rockets become the pixels of a dynamic canvas, painted with the chaos of real-time gaming.
  • Physics World: Experience a full-on physics world with all the physics thingies like trajectories, gravity bouncing, and friction.
  • AI Mode: Run handTracking.py to make the game playable using computer vision and hands.
  • Customizable Rockets: Customize your rockets like a digital Picasso. Different skins and attributes let you express your inner code-artist, making each rocket launch a masterpiece.
  • Score Tracking: The built-in scoring system is your scoreboard in the symphony of chaos. Track your rocket hits and achievements like a virtuoso conductor leading a cosmic orchestra.
  • Progress Saving: The game saves your progress as you advance through the levels.
  • 10 Levels with Incremental Difficulty: The game features 10 levels with increasing difficulty to challenge your rocket shooting skills.
  • Multiplayer Chat and Lobby: Connect with friends using the provided IP/Hostname and port. Engage in exciting battles and compete for the highest score.
  • Lovely UI: The game features a user-friendly interface that is intuitive and easy to navigate.

Game Trailer

A full developed trailer of the game is available.

Untitled.video.-.Made.with.Clipchamp.1.mp4

Executable

The game executable is available in the folder Executable Game.exe.

Requirements

C++ Python PHP Qt OpenCV MediaPipe AutoPy

Following modules need to be installed for the AI Mode to work properly:

OpenCV

OpenCV is a huge open-source library for computer vision, machine learning, and image processing. OpenCV supports a wide variety of programming languages like Python, C++, Java, etc. It can process images and videos to identify objects, faces, or even the handwriting of a human.

pip install opencv-python

Mediapipe

MediaPipe is a framework for building multimodal (eg. video, audio, any time series data), cross platform (i.e Android, iOS, web, edge devices) applied ML pipelines.

pip install mediapipe

Autopy

AutoPy is a simple, cross-platform GUI automation library for Python. It includes functions for controlling the keyboard and mouse, finding colors and bitmaps on-screen, and displaying alerts.

pip install autopy

Important Note

This project requires Python 3.8 due to dependency issues. If you have a newer version of Python installed, you will need to downgrade to Python 3.8. You can download Python 3.8 from here.

Server Setup

The server for the game is written in PHP and is located in the index.php file. To set up the server, follow these steps:

  1. Navigate to the server folder.
  2. Run composer install to install the necessary dependencies.
  3. Run the server on Apache or a similar server.

To run the multiplayer mode, you will need to change the server address in the main.cpp file:

webSocketHandler.connectToServer("ws://your-server-address:8585");

Replace your-server-address with the address of your server.

Contributors

Contributions are welcome! Feel free to open issues or submit pull requests.

  1. Fork the project.
  2. Create your feature branch (git checkout -b feature/YourFeature).
  3. Commit your changes (git commit -m 'Add YourFeature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Open a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Qt based Ai multiplayer physics game of projectile shooting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •