0% found this document useful (0 votes)
2K views13 pages

Pacman Project

This document provides an overview of the classic arcade game Pacman. It describes the gameplay where the player scores points by eating pills and wins the level by eating all pills, while losing a life if touched by a ghost. Power pills allow Pacman to eat ghosts for a limited time. Game rules specify that Pacman can eat pills and power pellets to score points, while ghosts kill Pacman on collision. Controls are described for moving Pacman with arrow keys and starting/resuming the game. The document outlines implementing Pacman in Java using an applet for graphics, key listeners for controls, threads for ghost/Pacman movement, and learning Java programming through this project.

Uploaded by

vaibhav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views13 pages

Pacman Project

This document provides an overview of the classic arcade game Pacman. It describes the gameplay where the player scores points by eating pills and wins the level by eating all pills, while losing a life if touched by a ghost. Power pills allow Pacman to eat ghosts for a limited time. Game rules specify that Pacman can eat pills and power pellets to score points, while ghosts kill Pacman on collision. Controls are described for moving Pacman with arrow keys and starting/resuming the game. The document outlines implementing Pacman in Java using an applet for graphics, key listeners for controls, threads for ghost/Pacman movement, and learning Java programming through this project.

Uploaded by

vaibhav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Overview

Introduction
Game play
Game rules
Controls
Implementation

Introduction
Pacman is one of the class arcade game since
the year 1970s

Game play
The player scores points when a pill is
eaten and once all the pills are eaten
the player wins the level. When a
ghost touches Pacman the player loses
a life. In the corner of the maze there
are special power-pills that when eaten
allow Pacman for a limited period to
eat the ghosts and not die.

Game rules
Pacman can eat pills and scores
points for player (each pill is worth
10 points and each power pellet
worth 50 points)
Ghosts kill Pacman when they collide
with Pacman
Power pellets that allow Pacman to
eat the ghosts (the ghosts become
vulnerable and turn blue).

Controls

Up arrow key starts the game


S key is used to start or resume the game
Up to move upwards
Down to move downwards
Right to move rightwards
Left to move leftwards

Implementation
The basic requirement to build the
game in java is workspace such as
eclipse or netbeans can be used
Java workspace contains the inbuilt
java package known as java applet
which is used to build the graphics of
the game.

Java applet
Applets are used to provide
interactive features to create the
window for game
Inbuilt classes like the key listener
and action listener class are
implemented in order to take the
keyboard keys and perform actions
accordingly

Continue

Runnable interface class is used to


create the threads
Threads are used to create the
movements of the ghosts and
pacman.
Each ghost have their own thread
which moves them on the screen.

Conclusion
From our work in this project we
learnt about the java programming
and built the pacman game in java
applet.

Thank

You might also like