GithubHelp home page GithubHelp logo

grachale / pac_man Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 222 KB

I am going to try to pay tribute to the great japanese game designer named Toru Iwatani, who created one of the most popular arcade games in the computer world - Pac-Man.

Makefile 2.31% C++ 97.69%
cpp pacman-game polymorphism sdl2

pac_man's Introduction

Pac-Man

I am going to try to pay tribute to the great japanese game designer named Toru Iwatani, who created one of the most popular arcade games in the computer world - Pac-Man.

SPECIFICATION

The player controls Pac-Man through a blue maze, eating white dots, which are called pellets. When all dots are eaten, Pac-Man is given points and goes to the next level. Three enemies, which look like colorful ghosts ("Blinky" - red one, "Pinky" - not difficult to guess the color and "Clyde" - orange one). They try to catch Pac-Man, each in their own way (different algorithms of chasing). If an enemy touches Pac-Man, a life is lost and the Pac-Man dies. When all lives have been lost (the player has 3 lives in total), the game ends. Near the corners of the maze are four larger, flashing dots known as power pellets that provide Pac-Man with the temporary ability to eat the enemies. The enemies turn deep blue, reverse and move more slowly allowing Pac-Man to eat them. When an enemy is eaten, the player is rewarded with 200 points. Blue enemies flash white to signal that they are about to become dangerous again. The player can select the difficulty level, which affects on speed of ghosts, intelligence of AI. In the beginning, there is an opportunity for player to download own map ( .txt file with 2d array with 56 columns and 59 rows, where 1 is indicated as wall, 2 - dot (pellet), 3 - portal, 4 - power dots, which allows Pacman to eat ghosts.) At the end of the file you need to have level of difficulty (from 0 to 2), coordinates (x, y) of pacman and three ghosts (in the precise order - Blinky, Pinky, Clyde).

USAGE OF POLYMORPHISM

pac_man's People

Contributors

grachale 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.