Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 41

A PROJECT REPORT

ON
ADVENTURE GAME IN PYTHON
Submitted in the partial fulfillment of requirement for the award of the
Diploma of

COMPUTER ENGINEERING

SUBMITTED BY

SANDEEP MISHRA 171076216168


SUMIT KUMAR 171076216181

UNDER THE GUIDANCE OF

ER. MANJEET KAUR Er. DIMPLE BHASIN


HEAD OF DEPARTMENT ASSISTANT PROFESSOR
COMPUTER ENGG DEPARTMENT COMPUTER ENGG DEPARTMENT

DEPARTMENT OF COMPUTER ENGINEERING


CHANDIGARH POLYTECHNIC COLLEGE, GHARUAN
MAY – 2020

CHANDIGARH POLYTECHNIC COLLEGE 1


CERTIFICATE

This is to certify that the project “ADVENTURE GAME USING PYTHON”

submitted by SANDEEP MISHRA and SUMIT KUMAR in partial fulfillment of the

requirements for the award of diploma of “COMPUTER ENGINEERING” to

Chandigarh Polytechnic College Gharuan, is a record of student’s own work carried

out by them under my supervision and guidance.

HEAD OF DEPARTMENT PROJECT GUIDE

ER. MANJEET KAUR ER. DIMPLE BHASIN

Computer Engineering Computer Engineering

Chandigarh Polytechnic College Chandigarh Polytechnic College

Gharuan Gharuan

CHANDIGARH POLYTECHNIC COLLEGE 2


ACKNOWLEDGEMENT

The Project work is a task which cannot be done by an individual in isolation. I have no
exception to this rule and have gratefully accepted the helping hand offered by many.

We express my deep gratitude and indebtedness to Dr. Gurmeet Singh Swag (Principal
Chandigarh Polytechnic College Gharuan) and Chandigarh Polytechnic College for
providing us such a platform, infrastructure and learning environment.

We also grateful to “Er. MANJEET KAUR” (HOD “COMPUTER ENGINEERING”


Chandigarh Polytechnic College Gharuan) for extending all possible help in formation and
completion of Project.

I am also grateful to my guide “ER. DIMPLE BHASIN” (Assist. Professor, Department of


“COMPUTER ENGINEERING” Chandigarh Polytechnic College Gharuan) for her
valuable guidance and constant encouragement at each and every step-in preparation of this
Project work until its completion.

SANDEEP MISHRA

SUMIT KUMAR

CHANDIGARH POLYTECHNIC COLLEGE 3


ABSTRACT

Adventure games focus on puzzle solving within a narrative framework, generally with
few or no action elements. Other popular names for this genre are “graphic adventure”
or “point-and-click adventure”, but these represent only part of a much broader,
diverse range of games.

Adventure games are not based on what the dictionary defines as “adventure”. Some


are, but many forsake danger and excitement for more relaxed, thoughtful endeavours.
They are also not: role-playing games that involve extensive combat, team-building
and points management; action/adventures such as Uncharted and Prince of
Persia where puzzle-solving is clearly a secondary focus; side-scrolling platform
games such as Mario or LittleBigPlanet; pure puzzle games like Bejeweled or Tetris.

But labels can only take us so far. Many games push traditional genre boundaries in
new and interesting ways while still remaining adventure games at their
core. Dreamfall, sequel to the point-and-click classic The Longest Journey, includes
some stealth and fight scenes. Heavy Rain is a new breed of interactive movie-style
adventuring featuring motion controls and Quick Time Events. At the other end of the
spectrum, titles like Mystery Case Files: Dire Grove mix in plenty of Where’s Waldo?-
styled scavenger hunts. Even Portal, which gives you a gun to solve physics-based
puzzles instead of killing, has a right to be called an adventure.

Of course, stories, puzzles, and exploration are not limited to just adventures. More
and more games outside the genre are incorporating adventure game elements,
like Scribblenauts, Braid and Limbo. Given their shared features, we will sometimes
cover these as special “games of interest”, though always with the understanding that
they fall outside the scope of our adventure game definition.

CHANDIGARH POLYTECHNIC COLLEGE 4


Table of Contents

Contents Page No.

Certificate__________________________________________________________2

Acknowledgements__________________________________________________ 3

Abstract___________________________________________________________ 4

List of Figures______________________________________________________ 6

Chapter No.1_______________________________________________________8

1. Introduction to Python __________________________________________9

I.1 Syntax of Python _______________________________________10

I.2 Example of Python______________________________________11

I.3 Benefits of Python ______________________________________14

2. Introduction to games__________________________________________16

I.4 What is need of games?__________________________________17

Chapter No 2 _____________________________________________________18

1. Familiarization to project______________________________________19

2.1 Objectives of the Game_____________________________________20

2.2 Concepts used in game _____________________________________21

Chapter No 3_____________________________________________________26

1. Hardware and software required______________________________27

2. Technology______________________________________________28

Chapter no. 4____________________________________________________30

Conclusion___________________________________________________29

References___________________________________________________42

List of Figures

CHANDIGARH POLYTECHNIC COLLEGE 5


Figure Page No.

Figure 1.1 Syntax of python_________________________________________10

Figure 1.2 Sample run 1 ____________________________________________12

Figure 1.3 Sample run 2____________________________________________12

Figure 1.4 Sample run 3____________________________________________13

Figure 1.5 Sample run 4____________________________________________13

Figure 1.6.1 Sample run 5___________________________________________14

Figure 1.4.1 Games________________________________________________16

Figure 1.5.1 Python compiler________________________________________28

Figure 1.6 Level Editor ____________________________________________32

Figure 1.7 Upper Land_____________________________________________32

Figure 1.8 Enviroment_____________________________________________33

Figure 1.9 Obstacle 1______________________________________________33

Figure 1.10 Obstacle 2_____________________________________________34

Figure 1.11 Jumper Place __________________________________________34

Figure 1.12 Jumping Character______________________________________35

Figure 1.13 Movements____________________________________________35

Figure 1.14 Attacks_______________________________________________36

Figure 1.15 Jumping______________________________________________36

CHANDIGARH POLYTECHNIC COLLEGE 6


Figure 1.16 Wild Enemies___________________________________________37

Figure 1.17 Levels________________________________________________37

Figure 1.18 Changing Levls_________________________________________38

Figure 1.19 Total Creatures_________________________________________38

Figure 1.20 Player Death___________________________________________39

Figure 1.21 Game Over Screen______________________________________39

CHANDIGARH POLYTECHNIC COLLEGE 7


CHAPTER – 1

CHANDIGARH POLYTECHNIC COLLEGE 8


CHAPTER – 1

INTRODUCTION TO PYTHON

Python is a widely used general-purpose, high level programming language. It was


initially designed by Guido van Rossum in 1991 and developed by Python Software
Foundation. It was mainly developed for emphasis on code readability, and its syntax
allows programmers to express concepts in fewer lines of code.In technical terms,
Python is an object-oriented, high-level programming language with integrated
dynamic semantics primarily for web and app development.
 In technical terms, Python is an object-oriented, high-level programming language
with integrated dynamic semantics primarily for web and app development. It is
extremely attractive in the field of Rapid Application Development because it offers
dynamic typing and dynamic binding options. 
 Python is relatively simple, so it's easy to learn since it requires a unique syntax that
focuses on readability. Developers can read and translate Python code much easier
than other languages. In turn, this reduces the cost of program maintenance and
development because it allows teams to work collaboratively without significant
language and experience barriers.
 Additionally, Python supports the use of modules and packages, which means that
programs can be designed in a modular style and code can be reused across a variety
of projects. Once you've developed a module or package you need, it can be scaled for
use in other projects, and it's easy to import or export these modules.
 
One of the most promising benefits of Python is that both the standard library and the
interpreter are available free of charge, in both binary and source form. There is no
exclusivity either, as Python and all the necessary tools are available on all major

CHANDIGARH POLYTECHNIC COLLEGE 9


platforms. Therefore, it is an enticing option for developers who don't want to worry
about paying high development costs.
 
If this description of Python over your head, don't worry. You'll understand it soon
enough. What you need to take away from this section is that Python is a
programming language used to develop software on the web and in app form,
including mobile. It's relatively easy to learn, and the necessary tools are available to
all free of charge.
 
That makes Python accessible to almost anyone. If you have the time to learn, you can
create some amazing things with the language.

1.1 SYNTAX OF PYTHON

Figure 1.1 Syntax Of Python

CHANDIGARH POLYTECHNIC COLLEGE 10


1.2 EXAMPLE OF PYTHON :

Here is the first python programming example:

# Python Program - Example No.1

print("Enter 'x' for exit.");


val = input();
if val == 'x':
exit();
else:
print("Welcome to Python from codescracker.com!");

Here is the sample run of the first python programming example. This is the initial
output.

CHANDIGARH POLYTECHNIC COLLEGE 11


Figure 1.2 Sample run 1

Now let's type something, say codescracker and press ENTER key


to see the output as in given screenshot.

Figure 1.3 Sample run 2

Now let's re-run the above example, and this time, type x as shown
in below screenshot:

CHANDIGARH POLYTECHNIC COLLEGE 12


Figure 1.4 Sample run 3

and then press ENTER to see the window asking to exit the


program as shown in the figure given below:

Figure 1.5 Sample run 4

From the above window, confirming to exit or killing the


program, click on OK button to kill or exit,
and Cancel button to come back to the Python shell window.

Here is the same program directly written and run on Python


shell window. In this program, we have used break keyword
to break out of the conditional statement in place of exit().

CHANDIGARH POLYTECHNIC COLLEGE 13


Figure 1.6 Sample run 5

1.3 BENEFITS OF PYTHON :

The diverse application of the Python language is a result of the combination of


features which give this language an edge over others. Some of the benefits of
programming in Python include:

1. Presence of Third Party Modules:

The Python Package Index (PyPI) contains numerous third-party modules that make
Python capable of interacting with most of the other languages and platforms.

2. Extensive Support Libraries:

Python provides a large standard library which includes areas like internet protocols,
string operations, web services tools and operating system interfaces. Many high use
programming tasks have already been scripted into the standard library which reduces
length of code to be written significantly.

CHANDIGARH POLYTECHNIC COLLEGE 14


3. Open Source and Community Development:

Python language is developed under an OSI-approved open source license, which


makes it free to use and distribute, including for commercial purposes.

Further, its development is driven by the community which collaborates for its code
through hosting conferences and mailing lists, and provides for its numerous modules.

4. Learning Ease and Support Available:

Python offers excellent readability and uncluttered simple-to-learn syntax which helps
beginners to utilize this programming language. The code style guidelines, PEP 8,
provide a set of rules to facilitate the formatting of code. Additionally, the wide base
of users and active developers has resulted in a rich internet resource bank to
encourage development and the continued adoption of the language.

5. User-friendly Data Structures:

Python has built-in list and dictionary data structures which can be used to construct
fast runtime data structures. Further, Python also provides the option of dynamic high-
level data typing which reduces the length of support code that is needed.

6. Productivity and Speed:

Python has clean object-oriented design, provides enhanced process control


capabilities, and possesses strong integration and text processing capabilities and its
own unit testing framework, all of which contribute to the increase in its speed and
productivity. Python is considered a viable option for building complex multi-
protocol network applications.

As can be seen from the above-mentioned points, Python offers a number of


advantages for software development.

CHANDIGARH POLYTECHNIC COLLEGE 15


INTRODUCTION OF GAMES

A game is a structured form of play, usually undertaken for enjoyment and sometimes used


as an educational tool. Games are distinct from work, which is usually carried out
for remuneration, and from art, which is more often an expression of aesthetic or
ideological elements. As something that started over half a century ago, is now one of the
biggest industries in the world. Gaming has taken the entertainment field by storm in such a
way that no one could have ever imagined. It has been so that the market for digital games
grew 8 percent from 2014 to $61 billion, according to a new report from gaming
intelligence firm Super Data Research.

This should give people an idea of how big this industry has become. The first game had
just a ball like figure bouncing between two platforms. Over the last five decades, gaming
has grown into a giant powerhouse of entertainment and self-perpetuating revenue. We have
come a long way as today, complete worlds have started to exist within machines that have
become more powerful and efficient than ever before. As Personal computers get more

CHANDIGARH POLYTECHNIC COLLEGE 16


affordable, more and more people are looking towards gaming as the preferred means of
entertainment.

FIGURE 1.4.1 GAMES

1.4 WHY THERE IS NEED OF GAMES?

The games can never be ignored by anyone as it really the matter of importance. It makes
people mentally alert and physically active. They can be more disciplined, healthy, active,
and punctual and can easily cope with any difficult situation in their personal and
professional life. Being involved in the games regularly helps to easily overcome from the
anxiety, tension and nervousness. It helps to keeps mind peaceful, sharp, and active with
improved concentration.

 Playing Games makes us aware of our environment i.e. Makes us mentally


awake and increases our concentration power.
 Various Games needs good strategies for better performance and teamwork, so it
increases our thinking ability and teaches us the power of teamwork and to find
a way out of difficult situations.
 Games also need a lot of energy i.e. it makes us energetic.

CHANDIGARH POLYTECHNIC COLLEGE 17


 Games need a lot of cooperation between the players. Hence it increases
cooperation with each other.
 And at last, all of the Games have their own rules and regulations which if not
followed, leads to negative points. Hence, we can say that it Teaches us the
Importance of following Rules in life.

CHANDIGARH POLYTECHNIC COLLEGE 18


CHAPTER – 2

CHAPTER – 2

FAMILIARIZATION TO PROJECT

In video game culture, an adventure game is a video game in which the player

assumes the role of a protagonist in an interactive story driven by exploration

and puzzle-solving. The genre's focus on story allows it to draw heavily from

other narrative-based media, literature and film, encompassing a wide variety of

literary genres. Levels or character statistics that could be improved over the course of

the game.

Adventure games contain a variety of puzzles, decoding messages, finding and using
items, opening locked doors, or finding and exploring new locations. Solving a puzzle
will unlock access to new areas in the game world, and reveal more of the game story.

CHANDIGARH POLYTECHNIC COLLEGE 19


Logic puzzles, where mechanical devices are designed with abstract interfaces to test
a player's deductive reasoning skills, are common.

Some puzzles are criticized for the obscurity of their solutions, for example, the
combination of a clothes line, clamp, and deflated rubber duck used to gather a key
stuck between the subway tracks in The Longest Journey, which exists outside of the
game's narrative and serves only as an obstacle to the player. Others have been
criticized for requiring players to blindly guess, either by clicking on the right pixel,
or by guessing the right verb in games that use a text interface. Games that require
players to navigate mazes have also become less popular, although the earliest text-
adventure games usually required players to draw a map if they wanted to navigate
the abstract space.

 Collecting Cheese From Different Stages.

 Collecting Powerups.

 Entering different levels.

 Opening new levels.

 Different Power Caps.

2.1 OBJECTIVES OF GAME:

An adventure game is a video game in which the player assumes the role of a
protagonist in an interactive story driven by exploration and puzzle-solving. The
genre's focus on story allows it to draw heavily from other narrative-based media,
literature and film, encompassing a wide variety of literary genres. Many adventure
games (text and graphic) are designed for a single player, since this emphasis on story
and character makes multi-player design difficult. This game is created using python
because Python is an object-oriented, high-level programming language with
integrated dynamic semantics primarily for web and app development. It is extremely
attractive in the field of Rapid Application Development because it offers dynamic
typing and dynamic binding options.

Python is relatively simple, so it's easy to learn since it requires a unique syntax that
focuses on readability. Developers can read and translate Python code much easier

CHANDIGARH POLYTECHNIC COLLEGE 20


than other languages. In turn, this reduces the cost of program maintenance and
development because it allows teams to work collaboratively without significant
language and experience barriers This project is to show that games are not only for
your time pass thus a game is to increase the functionality of the brain. Games are
mostly played for enjoyment only, but games are like other activities that help a
person to improve His/her imagination.

OBJECTIVE OF THE GAME:

1. Enter to First level..

2. Save the character from enemy.

3. Collect all the cheese.

4. Use power up (ultra jump/zero Gravity/mini copter cap).

CONCEPTS USED IN GAME

Creating a narrative

Our game needs two things: a story to keep the player entertained, and logic to control
how the story unfolds. For our story we're creating the world of Narule, where magic
and adventure are around every corner. And we're creating a hero – you – who must
travel the land, visiting new villages and settlements, and talking to people to learn
more about this land and the dark shadow cast upon it.

To start our project off, we've created some narrative for you to expand upon. Feel
free to make the story your own.

CHANDIGARH POLYTECHNIC COLLEGE 21


Programming concepts

Python is a really great language to learn because it is very easy to understand, and
once you master the concepts of programming logic with Python, you will be well on
your way to developing larger applications.

No matter what language you use, the underlying concepts of coding provide a firm
foundation that can be used across many languages. The main concepts are:

Sequences

A series of tasks required to be completed in a certain order. For example, the steps
needed to solve a maze.

Loops

A way to repeat a sequence. Can be run for ever (while True) or controlled using a for
statement (for x in range(0,3)).

Parallelism

Running more than one sequence of code at the same time.

Events

An event is a trigger that starts a sequence of code, and the most visible event in the
game we're creating is entering the name of our hero to start the game.

Data

We use a variable to store the value of our hero's name, and then we can later retrieve
and manipulate the variable to show the player's name throughout the game,
personalising the gaming experience.

CHANDIGARH POLYTECHNIC COLLEGE 22


Conditionals

Conditionals form the basis of our logic, and they provide a method for us to compare
data against the input given by the player. We used conditionals in our game to
compare the answer given to the expected answer. If they matched, in Boolean logic
this would be classed as TRUE.

Operators

These are the basic mathematical rules that we learned back in school. We can apply
operators to text and numbers, which enables us to perform calculations in our code
and iterate data if required.

1. Play the game

IDLE has two windows to work with: the editor, containing our code, and a shell,
where our game is played. To launch the game, in the editor click on 'Run', then 'Run
Module'.

The shell window appears in front of every other window and our game starts to play.

2. Import modules

Modules created by other coders can be imported into your code. We're importing two
modules: Random, which contains code that enables us to use random choice for our
character; and Time, which enables us to work with time and pause the game.

3. Create functions

You can group lots of code into a function. To create one, we use def name(): – this
creates a function called name, and we can call the function whatever we want.

We press [Enter] and Python indents our code by four spaces, and awaits the code to
be run in this function.

CHANDIGARH POLYTECHNIC COLLEGE 23


4. Use variables

We use variables to store information we can use later. For example, we save our
narrative and re-use it many times. Think of variables as empty boxes – we can put
anything in them and write their name on the side.

You will see the term 'global' used with some variable names; this enables us to use
them inside and outside of functions.

5. Get input

Raw input is the Python way of asking for input from the player. We use it to capture
the name of the player and to capture their decisions in the game.

Raw input captures keyboard input as a string of text, so any numbers captured need
to be converted to an integer or float, and this can be done using the int() and float()
helper functions.

6. Make choices

Conditional statements are logical choices; we use them to control the flow of the
game – for example, which direction do you go?

We store the direction that the player wishes to go as a variable called move, then
compare the value stored in the variable with the key we asked the user to press. If the
two match, the related code is run.

7. Else and else if

If..elif..else are further conditional statements and they work as follows: the first
condition is looked at, and if that is correct (or true in Python), the code underneath
this condition is run. Else if (elif) this condition is true, the code is run for this
statement.
Else is all the above conditions are false, then this must be true, so this code is run.

CHANDIGARH POLYTECHNIC COLLEGE 24


8. Use lists

Lists are large containers that can hold lots of data. Think of them as a filing cabinet
filled with documents. In our game, we used a list to store our inventory of items (our
sword and shield).

We firstly create an empty list by using:

"weapons = []"
Just like variables, we can give our list any name we wish. To add to our list we use:

weapons.append("sword")

9. Pick a number
Random numbers help our hero to be completely unique. To randomly select these
numbers, we use the random module, in particular a function called randint, or
random integer.

To use randint, we must tell it what range of numbers to work with, and this is done as
follows:

randint(5,20)
This creates a range between 5 and 20, and asks randint to pick a random number in
that range.

10. Introduce people

Our game needs interesting people to speak to, so let's create one. You will see on line
57 of the code that we have a new function that handles a random villager.

Their name is random and is chosen from a list, but first we shuffle the list and then
select the first item from the list, which in Python is always 0 (zero) or
npcnamechoice[0].

CHANDIGARH POLYTECHNIC COLLEGE 25


11. Expand the story

Adding new content to your game is easy. If you wish to add new characters or
villagers, the best way is to create a new function. That way the code for each new
entry is contained in its own function, but can be easily used in your game.

Your narrative should piece together these functions and provide a linear story for the
player to follow.

12. Pick a fight

What about combat? Enemies can be created in the same way as villagers, but perhaps
you would like to give them randomly assigned health and magic points (HP and MP
in adventure speak), just as you have given your hero.

Create a new function that contains an enemy and place it into your code at a set
point, then test your code.

13. Join strings and numbers

When working with text or, in Python speak, strings, we may want to join a string and
a number together. If we try to do it like this:

print "Hello" + 1
Python produces an error saying that the two cannot be joined. But if we wrap the
integer in a helper function called str() we can join them both together like so:

print "Hello" + str(1)


Enjoyed this article? Expand your knowledge of Linux, get more from your code, and
discover the latest open source developments inside Linux Format. 

CHANDIGARH POLYTECHNIC COLLEGE 26


CHAPTER – 3

CHAPTER – 3

HARDWARE AND SOFTWARE REQUIREMENT

CHANDIGARH POLYTECHNIC COLLEGE 27


Recommended System Requirements

• Processors:Intel® Core™ i5 processor 4300M at 2.60 GHz or 2.59 GHz (1


socket, 2 cores, 2 threads per core), 8 GB of DRAMIntel® Xeon® processor
E5-2698 v3 at 2.30 GHz (2 sockets, 16 cores each, 1 thread per core), 64
GB of DRAMIntel® Xeon Phi™ processor 7210 at 1.30 GHz (1 socket, 64
cores, 4 threads per core), 32 GB of DRAM, 16 GB of MCDRAM (flat
mode enabled)
• Disk space: 2 to 3 GB

• Operating systems: Windows® 10, macOS*, and Linux*

Minimum System Requirements

• Processors: Intel Atom® processor or Intel® Core™ i3 processor

• Disk space: 1 GB

• Operating systems: Windows* 7 or later, macOS, and Linux

• Python* versions: 2.7.X, 3.6.X

TECNOLOGY

PYTHON

CHANDIGARH POLYTECHNIC COLLEGE 28


Python was developed by Guido van Rossum in the late eighties and early nineties at
the National Research Institute for Mathematics and Computer Science in the
Netherlands.

Python is derived from many other languages, including ABC, Modula-3, C, C++,
Algol-68, SmallTalk, and Unix shell and other scripting languages.

Python is copyrighted. Like Perl, Python source code is now available under the
GNU General Public License (GPL).

Python is a high-level, interpreted, interactive and object-oriented scripting language.


Python is designed to be highly readable. It uses English keywords frequently where
as other languages use punctuation, and it has fewer syntactical constructions than
other languages.

 Python is Interpreted − Python is processed at runtime by the interpreter.


You do not need to compile your program before executing it. This is similar
to PERL and PHP.

 Python is Interactive − You can actually sit at a Python prompt and interact
with the interpreter directly to write your programs.

 Python is Object-Oriented − Python supports Object-Oriented style or


technique of programming that encapsulates code within objects.

 Python is a Beginner's Language − Python is a great language for the


beginner-level programmers and supports the development of a wide range of
applications from simple text processing to WWW browsers to games.

Figure 1.5.1 Python Compiler

CHANDIGARH POLYTECHNIC COLLEGE 29


3.2 Python Features

Python's features include −

 Easy-to-learn − Python has few keywords, simple structure, and a clearly


defined syntax. This allows the student to pick up the language quickly.

 Easy-to-read − Python code is more clearly defined and visible to the eyes.

 Easy-to-maintain − Python's source code is fairly easy-to-maintain.

 A broad standard library − Python's bulk of the library is very portable and
cross-platform compatible on UNIX, Windows, and Macintosh.

 Interactive Mode − Python has support for an interactive


mode which allows interactive testing and debugging of
snippets of code.

 Portable − Python can run on a wide variety of hardware platforms and has
the same interface on all platforms.

 Extendable − You can add low-level modules to the Python interpreter.


These modules enable programmers to add to or customize their tools to be
more efficient.

 Databases − Python provides interfaces to all major commercial databases.

 GUI Programming − Python supports GUI applications that can be created


and ported to many system calls, libraries and windows systems, such as
Windows MFC, Macintosh, and the X Window system of Unix.

 Scalable − Python provides a better structure and support for large programs
than shell scripting.

Apart from the above-mentioned features, Python has a big list of good features, few
are listed below −

 It supports functional and structured programming methods as well as OOP.

 It can be used as a scripting language or can be compiled to byte-code for


building large applications.

CHANDIGARH POLYTECHNIC COLLEGE 30


CHAPTER – 4

CHANDIGARH POLYTECHNIC COLLEGE 31


CHAPTER – 4

CONCLUSION

In video game culture, an adventure game is a video game in which the player assumes the
role of a protagonist in an interactive story driven by exploration and puzzle-
solving. The genre's focus on story allows it to draw heavily from other narrative-based
media, literature and film, encompassing a wide variety of literary genres. Levels or
character statistics that could be improved over the course of the game.

. similar architecture from SuperRedPants


. better physics
. bigger levels
. collectables per level like stars in m64 im thinking like 20 per level, with a 'banana
door' blocking levels
. get them all in one run like banjo kazooie
. power ups

CHANDIGARH POLYTECHNIC COLLEGE 32


SCREENSHOTS:

1.1 Level Editor:

FIGURE 1.6 Level Editor

1.2 UPPER LAND:

FIGURE 1.7 UPPER LAND

CHANDIGARH POLYTECHNIC COLLEGE 33


1.3 ENVIROMENT

FIGURE 1.8 ENVIROMENT

1.4 OBSTACLE 1:

FIGURE 1.9 OBSTACLE 1

CHANDIGARH POLYTECHNIC COLLEGE 34


1.5 OBSTACLE 2:

FIGURE 1.10 OBSTACLE 2

1.6 JUMPER PLACE:

FIGURE 1.11 JUMPER PLACE

CHANDIGARH POLYTECHNIC COLLEGE 35


1.7 JUMPING CHARARCTER:

FIGURE 1.12 JUMPING CHARACTER

1.8 MOVEMENTS:

FIGURE 1.13 MOVEMENT

CHANDIGARH POLYTECHNIC COLLEGE 36


1.9 ATTACKS:

FIGURE 1.14 ATTACKS

1.10 JUMPING:

FIGURE 1.15 JUMPING

CHANDIGARH POLYTECHNIC COLLEGE 37


1.11 WILD ENEMIES:

FIGURE 1.16 WILD ENEMIES

1.12 LAND ENEMIES:

FIGURE 1.17 LEVELS

CHANDIGARH POLYTECHNIC COLLEGE 38


1.13 CHANGING LEVEL:

FIGURE 1.18 CHANGING LEVEL

1.14 TOTAL CREATURES:

FIGURE 1.19 TOTAL CREATURES

CHANDIGARH POLYTECHNIC COLLEGE 39


1.15 PLAYER DEATH:

FIGURE 1.20 PLAYER DEATH

1.16 GAME OVER SCREEN:

FIGURE 1.21 GAME OVER SCREEN

CHANDIGARH POLYTECHNIC COLLEGE 40


REFERENCES

Here we are able to complete our project with the reference of our PROJECT GUIDE,

Assist. Prof. DIMPLE BHASIN and our Head of Departme

nt, MANJEET KAUR and our other group members.

1. https://www.python.org/
2. https://www.python.org/doc/av/
3. https://pypi.org/project/pygame/
4. BOOK: -Python Cookbook: Recipes for Mastering Python 3
5. BOOK: - Dive into Python

CHANDIGARH POLYTECHNIC COLLEGE 41

You might also like