Learn Go · Extras

Building Pong

A one-player Pong game with a score and a high score, built in a single file with the Ebitengine 2D game engine.

A 5 min video of its own · 9 steps · no exercises, just build along

This part is in the full course

The first 4 parts of Learn Go are free. The rest, and the extras, come with the full course.

Create an account

What's in it

  • What we're building
  • Installing Ebitengine
  • Constants and game state
  • The game loop
  • Drawing the paddle, ball and score
  • Moving the paddle
  • Moving the ball and bouncing off walls
  • Hitting the paddle and keeping score
  • Starting positions and playing