Giter Site home page Giter Site logo

pacmangame's Introduction

PacmanGame

The classic pacman game, with the enemy being Kong from donkey kong instead of Blinky, Pinky, Inky and Clyde.

To Play the Game

The pacman is controlled by keys W, A, S, D. Once you lose/win, press R to restart the game, or Q to quit game. You will have 4 lives to win the game. There are 4 kongs, and even if you touch 1 kong, you lose a life. To win the game, you need to collect all the coins.

To run the Game

Clone the repository and extract the folder. To run the game, you need to have python3 installed. You can follow instructions given in this website (https://realpython.com/installing-python/) to install python3. After you install python3, you need to install numpy and pygame libraries. If you are a window user, run command line as administrator and type in these 2 commands.

  1. To install numpy: py -m pip install -U numpy --user
  2. To install pygame: py -m pip install -U pygame --user

If you are a linux/MacOS user, run these commands on terminal

  1. To install numpy: pip3 install numpy or sudo apt-get install python3-numpy
  2. To install pygame: pip3 install pygame or sudo apt-get install python3-pygame

After installing all the libraries as well as python, double click on pacman_2018053.py file to run the game.

pacmangame's People

Contributors

mohnish-agrawal avatar

Watchers

James Cloos avatar  avatar ZiHang Zhang avatar

Forkers

4nuragb

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.