Giter VIP home page Giter VIP logo

codealpha_pacman-game's Introduction

Pacman Game using Python and Pygame

Pacman Game

Welcome to the Pacman Game repository! This is a classic Pacman game implemented in Python using the Pygame library. Relive the nostalgia of chasing ghosts and gobbling pellets with this fun and interactive game.

Table of Contents

Introduction

Pacman is a renowned arcade game that was first released in 1980. The objective of the game is for Pacman to eat all the pellets in a maze while avoiding being caught by ghosts. This project brings the Pacman experience to your computer screen using Python and the Pygame library.

Features

  • Classic Pacman gameplay.
  • Colorful and visually appealing graphics.
  • Different types of pellets, power-ups, and ghosts.
  • Score tracking system.
  • Sound effects for a more immersive experience.
  • High score recording.

Installation

  1. Clone this repository to your local machine using:
git clone https://github.com/AdrijeGuha/CodeAlpha_PACMAN-GAME.git
  1. Navigate to the project directory:
cd pacman-game
  1. Install the required dependencies using:
pip install pygame

How to Play

  1. Run the game script:
python pacman.py
  1. Use the arrow keys to navigate Pacman through the maze.

  2. Eat all the pellets to clear each level.

  3. Avoid ghosts. If Pacman collides with a ghost:

    • If Pacman has not consumed a power pellet, he loses a life.
    • If Pacman has consumed a power pellet, he can eat the ghosts for a limited time.
  4. Consume power pellets to turn the ghosts blue and gain the ability to eat them.

  5. Complete the level and aim for a high score!

Controls

  • Arrow Up: Move Pacman upward.
  • Arrow Down: Move Pacman downward.
  • Arrow Left: Move Pacman to the left.
  • Arrow Right: Move Pacman to the right.

Requirements

  • Python 3.x
  • Pygame library

Contributing

Contributions are welcome! If you find any issues or would like to enhance the game, feel free to submit a pull request.

License

This project is licensed under the The Unlicense.


Enjoy the game, and have fun gobbling those pellets and evading those ghosts! If you have any questions or feedback, feel free to create an issue in the repository.

codealpha_pacman-game's People

Contributors

adrijeguha avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.