Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

175 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computer Graphics Game - Project

Welcome to the CG-Game repository! This project is an exciting journey into the realm of computer graphics and game development.

Getting Started

To test, Play or experiment with this game, Please follow the following steps:

  • Begin by cloning the repository to your local environment: git clone https://github.com/Ivyson/CG-Game.git
  • Ensure that you have installed the Live Server extension on your IDE. In my case, I was using VS Code. You can install the Live Server extension from the marketplace.
  • If you have installed the Live Server extension, open the folder in VS Code: cd CG-Game && code .
  • If the game is running, great! Now, let's look at the functionalities of the game:
  • You should see the following screen:

alt text

  • To access the game : Click Here

  • To start playing the game, press the Enter button.

    • The gameplay screen should look like this:

alt text

  • To Move Around, Use the Arrow keys:
    • Arrow Up: Move up
    • Arrow Down: Move down
    • Arrow Left: Move left
    • Arrow Right: Move right
  • To Zoom or change the perspective of the game:
    • Scroll in: Zoom in
    • Scoll Out: Zoom out
    • Mouse Click and Drag: Drags the game and changes the perspective according to the direction you drag it to

Prerequisites

  • A modern web browser with WebGL and HTML5 support.
  • A code editor (optional, if you wish to modify the code).
  • This code was only Tested on Google Chrome, Microsoft Edge and was not really functioning well on Mozilla Firefox. Not really Tested on Safari and any other browser, I would Appreciate feedback on how it works if you tried it on a different Browser.

Bugs

  1. PacMan is not rotating... The pacman Avatar is supposed to change texture to a pacman faced up when button up pressed etc...
  2. Collision only works best inside the Ghosts Special Place (Inside the bricks)
  3. The Ghosts are not having the algorithm for following Pacman
  4. When The Pause button is pressed, then the game starts misbehaving... --fIXED--

Contribution

This project is part of the Computer Graphics course at Cape Peninsula University of Technology. Given the limited time for completion, there may be bugs, and improvements are welcome. Contributing to open-source projects is a great learning opportunity, so your input is invaluable for educational purposes and further exploration.

  1. Fork the project.
  2. Create your feature branch: git checkout -b feature/uFeature
  3. Commit your changes: git commit -m "Add a descriptive message about your update"
  4. Push to the branch: git push origin feature/uFeature

Contact

  • GitHub: Ivyson
  • Telegram: WhoAreYouKiid

Inspiration behind the game

  • For the development of this game, diogofferreira's project on whereby he designed a 3d pacman was very influential : Click Here To visit this project
  • Servetgulnaroglu's Video on How to make Pacman using 2d Context was helpfull to design and understand most of the game's Logic:

License

This project is open-source. Feel free to use, enhance, or experiment with it!

About

An attempt to create a game for computer graphics module

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages