Game · 2025

Penalty Shootout Simulator

Learning game dev with Pygame

Penalty Shootout Simulator

A 2D penalty shootout simulator built with Python/Pygame to learn the fundamentals of game development.

Year
2025
Kind
Game
Role
Solo, first semester
Stack
  • Python Language
  • Pygame Library
01

Why I made it

I didn't know how to program before university. In my first semester the exercises came easily, so I used the spare time to learn how you make something that isn't a terminal program, like a game. Python was the language we were learning, so I found Pygame, read its documentation and built this.

02

How it plays

Two players pick a team each and take turns shooting, with the real shootout rules, sudden death included. You aim with the arrow keys and shoot with space. The keeper guesses wrong one time in three and dives at a random speed, so even a right guess can be too slow. A goal plays a "SIUUU".

The only tricky part was aiming, which needed sine and cosine to turn an angle into the ball's speed. It's how I found out how much maths there is in games.

PythonLanguage
PygameLibrary
  1. 01Python Language

    The game's logic: the turns, the score and the shootout rules.

  2. 02Pygame Library

    The window, the drawing, the keyboard and the sound.