ping-pong game slides.pptx

30
7/21/2019 ping-pong game slides.pptx http://slidepdf.com/reader/full/ping-pong-game-slidespptx 1/30 MADEBY:- GOURAV GOYAL 069  AKSHAYKAWATRA 092 B.TECH (CSE) GPMCE ThePing-PongGame

Transcript of ping-pong game slides.pptx

Page 1: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 1/30

MADE BY:-

GOURAV GOYAL069

 AKSHAY KAWATRA

092

B.TECH (CSE)

GPMCE

The Ping-Pong Game

Page 2: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 2/30

Goal Of Project

ENJOYING THE

GAME

FRUSTRATED

FROM WORK

Page 3: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 3/30

  A Sincere THANKS to the HOD of CSE

branch

  Mr. Pradeep Kamboj and our Teacher 

  Mr. Rohit

Sir

  for giing u! an opportunit" to ma#e

thi! project.

Page 4: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 4/30

  ACKNO$%ED&EMENT

 I gratefully acknowledge the inspiration andencouragement received from Faculties of APTECHtheir valuable and fruitful advice from the very rstday of the course.

 I am highly obliged and thankful to our reveredteacher. who has allotted me project forcomputerization of 'Ping(Pong &AME) and Guidedme in solving problems during the course of theproject work and suggested me in writing the projectreport and also actively taking part in checking ofpreliminary reports. nd attest I am grateful to otherteachers of !"#$% for their valuable dvice and&upport' without them this project cannot beaccomplished( also to my fellow colleagues for their valuable suggestion and support.

Page 5: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 5/30

 A*M O+ THE P,O-ECT

Our aim is to develop a gamemajorly based on java.

The Project is based on basically a“TABLE TENN! "A#E$.t uses %A&A technology ' %(rame

)or its implementation.

Page 6: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 6/30

 AO/T %AN&/A&E ( -A0A 

 )ava is )!* +)ust another !rogramming*anguage,.

  -any features of )ava are little dierentfrom those that are found in othercontemporary programming languages.

-uch of the synta/ of )ava is based on thatof $00( which in turn stems from $.

 ncester of java is 12. First version camein 3445 since then 6 versions has beenreleased.

Page 7: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 7/30

OAK language (1991)

CUI converted into GUI (1993)

1.02 (1994) (hot java browser introduced)

OAK renamed to JAVA (1995)

1.1 (1996)

1.2 (1998)

1.3 (2000) (JREE)

Page 8: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 8/30

1.4 (2002)

1.5 (2004)

1.6 (2006-12)

1.7 (2013)

Page 9: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 9/30

 ABOUT PING-PONG GAME

Ping-Pong (marketed as PONG) is one of

the earliest arcade video games.

it is a tennis sports game featuring

simple 2-D graphics.

The plaer controls an in-game paddle

! moving it hori"ontl across the !ottom

side of the screen.

Page 10: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 10/30

History of game

The game was originally developed by Allan Alcorn

and released in 1972 by Atari corporations.

Soon, Pong became a huge success, and became the

first commercially successful game, On 1975, Atari

release a home edition of Pong (the first version was

played on Arcade machines) which sold 150,000 units

 Atari engineer Allan Alcorn designed and built Pong as a training exercise.

Page 11: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 11/30

Page 12: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 12/30

+EAT/,ES

It is !*"F17- I89#!#89#8".

It is #&: "1 ;89#7&"89.

It is &#$;7# in nature.

It is 9:8-I$ in nature. It is 71<;&" in nature due to=#/ception handling utomatic garbage collection

Page 13: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 13/30

DESCRIPTION

The game can basically be described in three ways

When game is started a Blue ball appears on the screen

along with a pad.

One can also see the SCORE at the top of the screen.

Once the game starts the ball hits the screen’s side wallsand bounce.

The main objective of a player is to control the movement of

paddle to hit the ball.

Speed of ball increases with the time.

Different colors of the ball indicates the changing levels ofthe game.

Score increases as long as the player continues to Hit the

Ball.

When the ball hits ground game Score resets to zero.

Page 14: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 14/30

&$7##8&%1"&

Initially the color of Ball is Blue and SCORE is

zero.

Page 15: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 15/30

Level 2 with yellow color of ball

Page 16: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 16/30

Level 3 with a!enta color of ball

Page 17: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 17/30

Level " with !reen color of ball

Page 18: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 18/30

Level # with cyan color of ball

Page 19: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 19/30

Level $ with red color of ball

Page 20: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 20/30

*+EN PLA,E- #!! T+E BALL !O-E -E!ETTO /E-O AN0 !ET! T+E 0E(A1LT LE&EL.

Page 21: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 21/30

 ADVANTAGES

The game is easy to understand and thus aperson 2ith minimum 3 can play it 2ith ease.

This is a prototype model o) a very old andclassic table tennis game 2hose demand never)ades.

No need o) second player. As the level rises the more e4citing the game

becomes. "ame can be played in 5uic6 time. !ince the game is developed using java it can be

played in any system.

Page 22: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 22/30

DISADVANTAGES

This game is the basic prototype of the Table

Tennis game so it supports only single player.

Page 23: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 23/30

  FUTURE SCOPE

I Woluld make this game Multiplayer so friends

can play and challenge each other .

I would add more features,levels to make it more

exciting and interesting.

It would be able to play online across the internet

by using the features of servelets.

It would be supported by various devices like

android,apple phones,tablets.

Page 24: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 24/30

KEY FEATURES FOR THE

DEVELOPMENT OF THE GAME

Pac#age! 1 C2a!!e! )ava supplies a huge library of pre=

written >code(? ready for you to use in your programs.$ode is organized into classes.

$lasses are grouped into packages.1ne way to use this code is to import 

it. :ou can import a single class( or all

the classes in a package.

Page 25: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 25/30

 App2et c2a!! "o create an applet( you must import the pplet 

class. "his class is in the java.applet  package.

"he pplet class contains code that works with abrowser to create a display window.

$apitalization matters@ applet  and  pplet  are dierent names.

Page 26: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 26/30

 -aa.a3t pac#age >awt? stands for >bstract Aindow "oolkit?.

"he java.awt package includes classes forB9rawing lines and shapes

9rawing letters

&etting colors

$hoosing fonts If itCs drawn on the screen( then java.awt is

probably involved@

Page 27: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 27/30

S3ing &wing is the primary )ava G;I widget toolkit.

 an !I for providing a graphical user interface+G;I, for )ava programs.

&wing is platform=independent because it iscompletely written in )ava.

In addition to familiar components such asbuttons( check bo/ and labels( &wing providesseveral advanced components such as tabbedpanel( scroll panes( trees( tables and lists.

Page 28: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 28/30

 jaa4.!3ing.eent pac#age "he java/.swing.event package augments the

 java.awt.event package and denes event objects(listeners( and adapters that are specic to &wingcomponents.

$lasses with names ending in D#ventD dene

event types' their elds and methods provide details about the

event that occurred.

Page 29: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 29/30

BIBLIOGRAPHY

I. Java All-In-One Desk Reference for

Dummies by doug lowe. – 2nd edition.

II.JAVA COMPLETE REFERENCE by

HERBEDT SCHILDT – 7th edition.

III.Head First Java 2nd edition by Kathy Sierra

& Bert Bates.

IV.Thinking In Java by bruce eckel – 4th edition.

 V. Wolrd Wide Web

Page 30: ping-pong game slides.pptx

7/21/2019 ping-pong game slides.pptx

http://slidepdf.com/reader/full/ping-pong-game-slidespptx 30/30