Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 1.18 KB

README.md

File metadata and controls

57 lines (36 loc) · 1.18 KB

Pypong

Author: theCalcaholic

Description

Program the classic video game Pong in python. You start with an empty canvas that and a prepared game loop.

Concepts you should be familiar with:

  • variables
  • types
  • functions

Setup

Linux

Install the package python3-tk. For example, on Ubuntu:

apt install python3-tk

Windows

Nothing to do

All challenges require the essentials to be set up!

Run

python3 main.py

Task

Program the game pong in python. You are provided with an empty canvas, that you can draw objects on, a game_loop function where most of your game takes place and a key_down function that is called, whenever a player presses a button on the keyboard.

Your end result should look roughly like this:

demo

Hints:

  • You only need to edit the file pong/core.py. Don't touch anything else ;)
  • Within this file you will find further instructions and examples for a few useful commands
  • You'll probably not need any code outside of the predefined functions, except maybe for variable declarations

GLHF!