Skip to content

SebaB29/Chase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chase Game 🏃‍♂️

Welcome to Chase, an exciting structured game where players navigate through a maze to avoid being caught by robots. The objective is to make the robots collide with each other or with obstacles to destroy them. Players can also move the obstacles within the maze to create strategic advantages. This project is an implementation of the Chase game in Python, utilizing structured programming principles.

📜 Table of Contents

🕹️ Features

  • Engaging gameplay with maze navigation
  • Avoid being caught by robots
  • Create collisions between robots or with obstacles to destroy them
  • Move obstacles strategically within the maze
  • Intuitive graphical interface with keyboard controls

🚀 Installation

To run this project locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/SebaB29/chase.git
  2. Navigate to the project directory:

    cd chase
  3. Run the game:

    python main.py

🎮 Usage

Use the following controls to play the game:

  • W: Move up
  • A: Move left
  • S: Move down
  • D: Move right
  • Q: Move diagonally up-left
  • E: Move diagonally up-right
  • Z: Move diagonally down-left
  • C: Move diagonally down-right
  • P: Pause
  • Space: Teleport to a random position

Avoid being caught while trying to create collisions between robots and obstacles!

⚙️ Game Symbols

  • JUGADOR: "♥" (Player)
  • ROBOT: "☻" (Robot)
  • OBSTACULO: "☼" (Obstacle)

📷 Images

Img Chase Img Game Over

📁 File Structure

The project structure is as follows:

Chase/
├── graphics/
│   ├── gamelib.py
│   └── inter_gráfica.py
├── img/
│   └── [2 demo images of the game]
├── src/
│   └── chase.py
├── main.py
├── .gitignore
├── README.md
├── LICENSE
  • graphics/: Contains libraries for rendering the game (gamelib and graphical logic).
  • img/: Includes demo images showcasing the game's functionality.
  • src/: Contains the source code file for game logic (chase).
  • main.py: The entry point of the application.

🛠️ Technologies

This project is built with:

  • Python
  • Gamelib (A library created by the instructor to facilitate the use of threads and rendering for the interface)

🤝 Contributing

Contributions are welcome! If you'd like to improve the game, feel free to fork the repository and submit a pull request.

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

📄 License

Distributed under the MIT License. See LICENSE for more information.

📚 About This Project

This project was developed as a practical assignment for university. It aims to implement the Chase game using Python, focusing on game logic and graphical interface through structured programming principles.

About

Juego de laberinto en Python con robots y obstáculos estratégicos.

Topics

Resources

License

Stars

Watchers

Forks

Languages