Skip to content

Marcokorcak/PacMan-Remastered

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pac-Man Remastered

Table of contents

General info

This project was created using JavaFX and Java in order to recreate the iconic Pac-Man 2D grid game. This was created using the principles of Object Oriented Programming such as abstract files, interface files, coordinate files, object files and implemented object serialization.

Pac-Man Board

Pac-Man Recording

Start Screen

Pause Screen

End Screen

How it works

This project is very complex and has a lot of files. Each of the moving characters (i.e Pac-Man and ghosts) are all gifs that are displayed as animations. Depending on which direction Pac-Man moves (based on key strokes), the program determines which gif to display. The pellets are images that appear and disappear as Pac-Man moves across the board and all of this is kept track of by a large text file. The text file is made up of numerous characters that represent different aspects of the game. There is a character that outlines the maze, a character that is the current position of Pac-Man, a character that displays the path Pac-Man has taken, unique characters for each ghost to keep track of them, a character to show where the pellets are as well as a character to show where the power pellets are. Each ghost has a randomized path that is uniquely generated each time the program is ran to simulate the game. Power pellets work as in the original game where the users points can increase or give Pac-Man the ability to eat the ghosts. A user can save the game and then reload to where they left off using object serialization where a file is created and then stored temporarily until it is either loaded again to resume the game or deleted if the user decides to start a new game.

Files

Abstract files

  • Ghost 1
  • Ghost 2
  • Ghost 3
  • Ghost 4

Interface files

  • RegularPellet - increases score by 10 points
  • PowerPellet - increases score by 50 points
  • Cherry - increases score by 100 points
  • Strawberry - increases score by 300 points
  • Orange - increases score by 500 points
  • Apple - increases score by 700 points

Objects

  • RegularPellet
  • PowerPellet
  • Pac-Man
  • Ghost1
  • Ghost2
  • Ghost3
  • Ghost4
  • Cherry
  • Strawberry
  • Orange
  • Apple

JavaFX Aspects

  • Start Screen (start new game or resume old game)
  • Menu to restart game
  • Number of lives left
  • Score of user
  • Finishing/victory screen
  • Animations of Pac-Man and ghosts
  • Toggle audio ex. background music, noises when eating pellets/powerups

Credits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors