Skip to content

Latest commit

 

History

History
68 lines (41 loc) · 3.49 KB

README.md

File metadata and controls

68 lines (41 loc) · 3.49 KB

Player, Pacmans and fruits in Ariel University - OOP Ex4

Overview

This Github project is an educational example for using git & github as part of the Object Oriented Programming course. This project comprehensive: motion planning, basic use of graphical processes and interfaces, and handling of conversion, opening and saving of files. In this project you will play a Packman-style game. This project is an extension of the previous assignment we have made (link): https://github.com/NviCoder/OOP_Ex3.

image

The changes relative to the previous exercise:

Goal of the game: Get the most points in any simulation.

  1. It is possible to move only one player (called player, marked with the letter "M"). Controlling a player is by giving direction in degrees to his movement. When all traffic is within the area defined in the previous exercise, and all traffic is in 2D only. (The height dimension is always 0).

  2. There are also obstacles (black rectangles), the player can not pass through them, in fact any entry to a black rectangle or exit outside the boundaries of the field drops a point. The black rectangles are marked with a letter B.

  3. Beyond the player there are also other pacmans (marked with the letter P) who want to eat the fruit. It is possible to eat this time both the fruit and the pecmans, get for each eating of the fruit or the paceman usually point.

  4. In addition, there are ghosts that chasing player M, which are marked with a letter G. The player is set to be faster than them. The ghosts are defined as being able to cross the obstacles as opposed to the player. For each ghosts arrival, the player drops 20 points. And then there are three seconds of grace to continue to escape.

How to play

1. First You sould download the project

You must have java 11 , to be able to run this.

2. Now run the project

3. Now You Should get this on you screen

image

4. press "New Game" in the menu bar , and selcet open a csv file.

image

5. Now , you should see the data folder in your project, and select one of csv files, to set the game.

image

6. You have two options for playing : 1. Automate 2. Manual.

image

7. During the game there is a bar at the bottom of the screen, which shows the result and time in real time

image

8. In addition , after you finished play, you can look on You also have the option, after you have finished playing,

to see your stats, and how you played in relation to other players.

image

image

Hope you enjoy!

Elad and Yoav

image