Skip to content

dertovich/PingPong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

PingPong

Description

A two-player game. The goal of each player is to kick the ball so that the other player cannot kick it. Scoring up to 3 balls scored

Controls

🔵Blue🔵 racket:

  • W/S - Forward/Backward

🔴Red🔴 racket:

  • ↑/↓ - Forward/Backward

Class

  • Main - entry point of the whole program
  • FramePingPong - specifying parameters of the game field (color, size, title)
  • GamePanel - drawing of the game field, calls functions from Ball, Racket classes
  • Ball - functions for drawing and moving the ball on the field
  • Racket - racket drawing and control functions
  • Score - score drawing

Example

image image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages