Giter Club home page Giter Club logo

pacman-4's Introduction

Pac-Man (CS324)

Computer Graphics coursework, recreating Pac-Man in C++ from OpenGL first principles. For more info, please refer to the project report.

Dependencies

There are a couple of dependencies required to compile and run the project.

  • C++ v11+ previous versions do not support some parts of the code
  • libpng enables use of PNG sprites within the game

Compiling the Project

Windows:

The project was developed on Windows, requiring MinGW (or another UNIX-like terminal environment) to both compile and run. To compile the project:

make -f Makefile.windows pacman

Linux:

A slightly modified Makefile is required to compile on Linux:

make -f Makefile.linux pacman

Additional Info:

Alternatively, a symbolic link can be created to the Makefile, removing the need to type -f Makefile.foo every time the project is compiled:

ln -fs Makefile.foo Makefile

Replace foo with windows or linux depending on the compiling OS. The project can then be easily compiled using:

make pacman

The flag -B forces a recompile, if required:

make pacman -B

Running the Project:

Once the code is compiled, the game is started using the same command on all systems.

./pacman

Playing the Game:

  1. The game is controlled by keyboard input only:
  • Arrow keys to move
  • ESC key to pause game and view help screen
  • Any key from pause screen to resume
  • ESC key from pause screen to quit
  • Any key from game over screen to restart
  1. Don't let the ghosts catch you or you'll lose a life
  2. Gobble pills and fruits to increase your score
  3. Eat big pills to scare the ghosts, then you can consume THEM - every ghost you eat before the timer runs out increases the score multiplier
  4. Eat all the pills to advance to the next level
  5. When you have no lives left, the game is over and your highest score is saved to a file

Note:

I don't own, nor claim to own, Pac-Man.

This project surmised a piece of university coursework which I'm pretty proud of.

pacman-4's People

Contributors

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