Skip to content

p-north/TCP_Networking_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

⭐ Capture The Star (CMPT 371)

Created By: Puneet, Franoll, Gurshan and Jiawei

🎮 Project Overview

Capture The Star is a fast-paced online multiplayer game where players compete to collect as many stars as possible within a short time limit. Using grid-based movement with WASD or Arrow keys, players must chase and capture a yellow star or the rare and highly coveted red star.

  • ⏱️ Game Duration: 30–40 seconds per round
  • 🏆 Objective: Player with the most captured stars at the end of the game wins
  • 🌟 Red Star = Shared Object: Rare, high-value, and synchronously accessed

Gameplay Footage


🛠️ How It Works

🧩 Client-Server Model

The game is built using a client-server architecture:

  • Server:

    • Run using server.py
    • Listens on a port specified by the user
    • Handles client connections using Python's socket and threading modules
  • Client:

    • Run using game.py
    • Uses Pygame for rendering and input
    • Automatically connects to the server on the specified IP and port

🧪 How to Run

Requirements

  • Python 3.x
  • pygame (install via pip install pygame)

1. Start the Server

python server.py 

2. Start the game

python game.py 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages