Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

Pong

A quick pong clone

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

text
A quick pong clone in Delphi. Windows only for now.

Game is the main file, classBall and classPaddle are definitions and implementations of objects used in Game.
classBall handles ball movement and collision, and thus, the target the opponent paddle moves towards
classPaddle handles the paddles, following the mouse for the player and following the AIBall for the opponent
GameValues contain the constants used: Ballspeed, paddle size, etc.

Reading Delphi:
Delphi is an IDE with a visual form designer, so without actually owning Delphi and being able to open the project it can be a bit hard to read.

The .pas files are the main code parts, though they often rely on objects in the forms, defined in the .fmx files.

A copy of the compiled executable is in the fittingly named Executable folder.