0% found this document useful (0 votes)
2 views

Python Mini Project Report

The document outlines a mini project titled 'Pac-Man,' developed by students for their Bachelor of Engineering in Computer Science & Engineering (Data Science) at the University of Mumbai. It details the game's objectives, design features, technologies used, challenges faced during development, and future enhancements. The project aims to recreate the classic Pac-Man experience while modernizing gameplay through engaging graphics and intuitive controls using Python and the Pygame library.

Uploaded by

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

Python Mini Project Report

The document outlines a mini project titled 'Pac-Man,' developed by students for their Bachelor of Engineering in Computer Science & Engineering (Data Science) at the University of Mumbai. It details the game's objectives, design features, technologies used, challenges faced during development, and future enhancements. The project aims to recreate the classic Pac-Man experience while modernizing gameplay through engaging graphics and intuitive controls using Python and the Pygame library.

Uploaded by

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

MULTILEVEL GAME USING

PYTHON

Submitted in Partial fulfilments of the Requirements of the degree


BACHELOR OF ENGINEERING IN COMPUTER
SCIENCE & ENGINEERING (Data Science)

BY

Swayam Khanna 25/123DS1245A


Shubham Das 11/123DS1095A
Dhananjay Sawant 59/123DS1335A

Name of the Practical In-Charge

Prof. Amruta Kothawade

Department of Computer Engineering


MGM’s College of Engineering and Technology,Kamothe,
Navi Mumbai- 410209

University of Mumbai (AY 2024-25)


CERTIFICATE

This is to certify that the Mini Project for Computer Graphics Laboratory entitled

“Pac-Man” is a bonafide work of SWAYAM KHANNA 25/123DS1245A

SHUBHAM DAS 11/123DS1095A DHANANJAY SAWANT 59/123DS1335A

submitted to the University of Mumbai in partial fulfillment of the requirement for

the award ofthe degree of “Bachelor of Engineering” in “Computer Science &

Engineering(Data Science)”.

(Prof. Amruta Kothawade)


Name of Practical Incharge

( ) ( )
Head of Department Principal
Mini Project Approval

This Mini Project entitled “Pac-Man” by SWAYAM KHANNA

25/123DS1245A SHUBHAM DAS 11/123DS1095A DHANANJAY

SAWANT 59/123DS1335A is approved for the degree of Bachelor of

Engineering in Computer Science & Engineering (Data Science).

Examiners

1………………………………………
(Internal Examiner Name & Sign)

2…………………………………………
(External Examiner name & Sign)

Date:

Place:
Contents

1. Introduction

2. Objective

3. Game Design and Features

4. Technologies Used

5. Challenges Faced

6. Future Scope

7. Conclusion
INTRODUCTION

The Pac-Man clone project aims to recreate the


classic arcade game experience while
incorporating unique features and
enhancements to modernize gameplay.
Inspired by the original Pac-Man, this version
captures the essence of the game through
engaging graphics, intuitive controls, and
challenging levels. The project utilizes the
Pygame library in Python, which provides a
robust framework for developing 2D games.
This report outlines the objectives of the
project, the design and features of the game, the
technologies employed, challenges
encountered during development, and the
future scope of the project.
OBJECTIVE

The primary objective of this project is to


develop a playable Multilevel Pac-Man Game
clone that offers users an enjoyable gaming
experience.
The project seeks to replicate the original
mechanics of Pac-Man, where the player
navigates through a maze, collects dots, and
avoids ghosts. The game includes various levels
of increasing difficulty, enhancing user
engagement and providing a challenge.
Creating an intuitive user interface is critical for
player engagement. The project aims to design
a main menu and level selection screen that are
easy to navigate. Instructions and feedback are
essential components of the user interface,
helping players understand the controls and
objectives while providing updates on their
progress in the game.
GAME DESIGN AND FEATURES

The design of the Pac-Man clone revolves around


creating an engaging, interactive, and visually appealing
environment that mirrors the charm of the original game
while introducing new elements to enhance gameplay.
The following features and design choices were
implemented to achieve this goal:

3.1 Game Environment

• Maze Design: The core of the gameplay lies in navigating through


a maze filled with dots and obstacles. The maze is meticulously
designed with a mix of open pathways and tight corners, offering
strategic elements where players can utilize quick thinking to
escape ghosts. The layout varies across levels, progressively
increasing in complexity. Players must learn the maze’s design to
optimize their movements and avoid ghost encounters.

• Level Progression: The game features five distinct levels, each


offering unique layouts and challenges. As players advance
through the levels, the difficulty increases with additional ghosts,
varied maze configurations, and more complex pathways. This
progression encourages players to enhance their skills and adapt
their strategies to succeed.
3.2 Character Design

• Pac-Man: The main character is designed as a vibrant yellow


circle that embodies the iconic look of Pac-Man. The character's
movement is smooth and responsive, with controls allowing
players to navigate in four directions: left, right, up, and down. The
design emphasizes simplicity while ensuring the character is easily
recognizable.

• Ghosts: The game features multiple ghosts, each with distinct


behaviors and movement patterns. The design incorporates
recognizable colors and characteristics to differentiate between
them. This diversity in ghost behavior adds an element of strategy,
as players must learn how each ghost behaves to effectively avoid
them.

3.2Gameplay Mechanics

• Collecting Dots: The primary objective for players is to collect


all the dots scattered throughout the maze. Each dot collected
contributes to the player's score. This mechanic encourages
exploration and strategic movement within the maze, as players
must decide the best routes to maximize their dot collection while
avoiding ghosts.

• Ghost AI: The ghosts in the game are programmed with basic
artificial intelligence that dictates their movement patterns. Each
ghost has its own behavior: some may chase Pac-Man directly,
while others follow set paths. This variance requires players to
adapt their strategies and anticipate ghost movements, adding a
layer of challenge to the game.
3.4 User Interface

• Main Menu and Level Selection: The game features a user-


friendly main menu that allows players to start the game or exit
easily. The level selection screen provides an intuitive way to
choose from available levels, displaying the current level and the
progression status. Clear instructions are provided to guide
players through the menu options.

• Game Over and Level Completion Screens: Upon


completion of a level or when a player loses all lives, the game
displays a dedicated screen to convey the result. These screens
inform players of their performance and provide an option to
continue to the next level or restart, enhancing the overall gaming
experience.
LEVELS SCREENSHOTS:

LEVEL 1

LEVEL 2
LEVEL 3

LEVEL 4
LEVEL 5
PYTHON: Python is a high-level programming language known for its
readability and ease of use, making it a popular choice for game
development. Its features that benefited this project include:

• Simplicity: Python's straightforward syntax allows for quick


development and prototyping. This facilitated fast iterations while
designing the game mechanics.

• Extensive Libraries: Python's vast array of libraries, particularly


for game development, streamlined various tasks. For instance,
Pygame was utilized for handling graphics

PYGAME:
Pygame is a cross-platform set of Python modules designed for writing
video games. It provides developers with the tools to create games easily
and efficiently by handling various aspects of game development.
Pygame offers functionalities for rendering 2D graphics, handling
images. This enables developers to create visually engaging and
immersive experiences. Pygame is a powerful and flexible library that
streamlines the game development process in Python, making it an ideal
choice for both novice and experienced developers.
CHALLENGES FACED

During the development of the Pac-Man clone, several


challenges were encountered:
• Collision Detection: Implementing accurate collision detection
between Pac-Man, ghosts, and the walls of the maze was
complex. Extensive testing was needed to ensure smooth
gameplay and prevent unexpected behaviors.

• Game Balancing: Ensuring the game remained challenging


without becoming frustrating required careful adjustments to
ghost speed and movement patterns.

• User Interface Design: Creating an intuitive and visually


appealing user interface took time and iteration, especially in the
main menu and level selection screens.

• Bug Fixes: Debugging various issues, such as graphical glitches


and unresponsive controls, was a continual process that required
meticulous attention.
FUTURE SCOPE

The project holds potential for future enhancements,


including:
• Multiplayer Functionality: Expanding the game to allow for
local or online multiplayer could increase engagement and
competitiveness among players.

• Enhanced Graphics and Sound: Upgrading graphics and sound


effects to create a more modern aesthetic and immersive
experience.

• Additional Levels and Power-Ups: Introducing new levels


with unique challenges and power-ups that provide temporary
advantages, such as speed boosts or invincibility.

• Cross-Platform Compatibility: Developing the game to be


playable on multiple platforms, such as mobile devices, would
broaden its accessibility and reach.
CONCLUSION

In conclusion, the development of the Pac-Man


clone game using Python and Pygame has been a
rewarding and enriching experience. This project has
not only allowed us to explore the fundamentals of
game design but has also provided practical insights
into programming concepts such as object-oriented
design, event handling, and collision detection.
Through the creation of a multi-level game featuring
engaging gameplay mechanics and a user-friendly
interface, we have successfully captured the essence
of the classic Pac-Man experience while
incorporating our unique features. Additionally, this
project has highlighted the versatility of Python as a
programming language and Pygame as a game
development library, showcasing how they can be
effectively utilized to create interactive applications.
As we look to the future, we envision expanding this
project further by incorporating additional features,
such as online multiplayer capabilities and New
Levels. Overall, this experience has ignited a passion
for programming and game design, inspiring us to
explore further possibilities in this field.

You might also like