Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
GamesNovember 22, 20266 min read

How to make a game like Pong

A paddle game looks like the simplest thing in games, and it is, until you try to make it feel good. The secret is in the bounce angle and the rally speed.

Startbase Team
Editorial ink illustration of two wooden paddles on a long table with a bead mid-flight, the bead in ember orange

Key takeaways

  • Do not reflect the ball like a mirror. Set its angle from where it hits the paddle: that one rule is what gives players control.
  • Speed the ball up a little on every paddle hit and reset it after each point. Rallies build their own tension.
  • A beatable AI is harder to write than a perfect one. Give it a reaction delay and an aim error.

Making a game like Pong takes three pieces: two paddles that move up and down, a ball that bounces off the top and bottom walls, and a score for each side when the ball gets past a paddle. The part that makes it a game rather than a screensaver is the paddle bounce: the ball should leave at an angle set by where it struck the paddle, and it should get a little faster with every hit. Build those two rules carefully and you have a game people will play for an hour.

Pong is a name owned by its rights holder, and its exact presentation belongs to them too. The idea of two paddles and a ball is one of the oldest in video games and has been reinvented many times. Name your game something of your own and give it a look and a twist that are yours.

Why two paddles and a ball still work

  • Zero learning. One axis of movement. A child understands it from watching for three seconds.
  • Head to head. Two humans on one screen, or across the internet, is the most social format in games.
  • Skill shows. Hitting with the paddle edge to send a steep shot is a real technique, and players discover it on their own.
  • Rallies escalate. The longer the exchange, the faster the ball, the louder the room.

The bounce rule that gives players control

A mirror reflection (flip the horizontal speed, keep the vertical) makes the paddle a wall, and the player has no say in where the ball goes. Instead, compute where on the paddle the ball hit, from −1 at the top edge to +1 at the bottom, and turn that into an outgoing angle:

  • offset = (ball.y − paddle.centerY) ÷ (paddle.height ÷ 2), clamped to −1..1.
  • angle = offset × maxAngle, with maxAngle around 50 to 60 degrees. Steeper than that and the ball zig-zags vertically and rallies drag.
  • velocity = (cos(angle) × speed × direction, sin(angle) × speed), where direction points away from the paddle.
  • Optionally add a little of the paddle's own vertical speed (10 to 20 percent) so a moving paddle can "slice" the ball.

Now a center hit returns a flat, safe shot, and an edge hit sends a steep, risky one. That single choice, safe or aggressive, is the entire strategy of the genre.

Speed, size and pacing values

Work in a fixed design resolution (say 1280 by 720) and scale to the screen, so the game plays the same on a phone and a monitor. Starting values to tune from:

  • Paddle height: about 15 percent of the court height. Smaller is harder; shrink it in later rounds if you want progression.
  • Paddle speed: enough to cross the court in about 0.6 seconds. Slower feels frustrating, faster removes the challenge.
  • Serve speed: the ball crosses the court in roughly 1.5 seconds.
  • Speed-up: multiply speed by about 1.05 on each paddle hit, capped around double the serve speed.
  • Serve: after a point, pause 0.75 seconds, then serve toward the player who conceded at a gentle random angle (never steeper than 30 degrees).
  • Win: first to 7 or 11 points. Short matches invite a rematch.

Tip

At high speed a ball can move farther in one frame than a paddle is thick and pass straight through. Test the ball's path between frames against the paddle line (a swept check), not just its new position.

An AI opponent that loses gracefully

A perfect AI is one line: set the paddle's y to the ball's y. Nobody can beat it. A fun AI is a set of deliberate human flaws:

  1. 01Reaction delay. Only start moving when the ball crosses a line (say 40 to 60 percent of the court), or after 150 to 250 milliseconds.
  2. 02Aim error. Predict where the ball will arrive (including wall bounces), then add a random error of up to a third of the paddle height.
  3. 03Speed cap. The AI paddle moves a bit slower than the player's.
  4. 04Difficulty dials. Easy, medium and hard are just different values for those three numbers. Rubber-band slightly: if the AI is far ahead, loosen its aim.

Local and online two-player

On one phone, split the touch area: each player drags on their own half and the paddle follows the finger's vertical position (direct position control beats virtual buttons here). On a keyboard, W/S and the arrow keys. Local play is the fastest route to a fun game, so build it first.

Online play is where paddle games get hard: the ball must be in the same place for both players even though each sees the other with a delay. The usual approach is one authority (a server or the host player) simulating the ball, while each client predicts its own paddle and smooths the opponent's. On Startbase, Multiplayer gives games a room server; previews run it on every plan, and publishing the server with the game needs a paid plan. The multiplayer game guide explains authority and lag in plain terms.

Three twists that make it yours

  1. 01Round court, four players. A circular arena where each player guards an arc of the edge. Lose a life when the ball escapes through your arc, and the arena shrinks around the survivors. Great for parties.
  2. 02Paddles that change. Each point you win makes your paddle shorter but faster, so leaders get a harder game and trailing players get a chance.
  3. 03Something in the middle. Breakable blocks, a slowly rotating bumper, or a gravity well in the center of the court bends every shot. Players now aim around obstacles, which borrows from the breakout guide.

A brief to paste into Startbase

A two-player paddle and ball game for phones and desktop, landscape, called Lantern Rally. The court is a dark pond at night; the paddles are two glowing reeds on the left and right edges and the ball is a firefly. The ball bounces off the top and bottom banks. When it hits a reed, its outgoing angle depends on where it hit (center = flat, edge = up to 55 degrees) and its speed rises 5 percent, capped at double the serve speed. After each point, pause briefly, then serve toward the player who lost the point. First to 7 wins, with a Rematch button. Modes: versus a computer opponent (Easy, Medium, Hard, using reaction delay, aim error and speed caps) and two players on one device (each drags on their own half of the screen; W/S and arrow keys on desktop). Use a swept collision check so the firefly never tunnels through a reed. Small screen shake and a ripple on every hit. Expose paddle size, serve speed, speed-up and max angle as dials.

Publish it with one click and share the link with a friend for a rematch, or post it to the Arcade. For more party formats built on simple rules, see how to make a party game.

Common mistakes

  • Mirror bounces. Players feel powerless. Use hit-position angles.
  • Endless vertical zig-zag. Cap the angle and never serve steeply.
  • Ball tunneling at high speed. Use swept collision.
  • Frame-rate-dependent speed. Multiply every movement by the frame's elapsed time, or the game runs faster on 120 Hz screens.
  • An unbeatable AI. Add flaws on purpose.

Frequently asked questions

How do you calculate the ball angle in a paddle game?

Measure where the ball hit the paddle as a value from −1 (top edge) to +1 (bottom edge), multiply by a maximum angle around 50 to 60 degrees, and rebuild the velocity from that angle and the current speed.

How do I make a beatable computer opponent?

Give it a reaction delay, a random aiming error and a slightly slower paddle. Tune those three numbers for each difficulty level.

Can I make an online two-player version?

Yes, with one side owning the ball simulation and both clients smoothing the other paddle. On Startbase, Multiplayer adds a room server; it runs in previews on every plan and publishes with the game on paid plans.

Can I call my game Pong?

No. The name belongs to its owner. Choose your own name and art; the two-paddle idea itself is widely used.

On this page

  • Why two paddles and a ball still work
  • The bounce rule that gives players control
  • Speed, size and pacing values
  • An AI opponent that loses gracefully
  • Local and online two-player
  • Three twists that make it yours
  • A brief to paste into Startbase
  • Common mistakes

Keep reading

More in Games
Editorial ink illustration of a wooden toy figure jumping between two stone ledges, the coin above the gap in ember orange
GamesNovember 22, 2026

How to Make a Platformer Game with AI

A platformer lives or dies on its jump. Here are the numbers behind a jump that feels fair, how to build levels around it, and how to get an AI agent to build both.

7 min read
Editorial ink illustration of a tin wind-up runner on track pieces laid down ahead of it, the next track piece in ember orange
GamesNovember 22, 2026

How to Make an Endless Runner Game

An endless runner is a level generator with a character on top. Get the chunks, the speed curve and the controls right and the rest is art.

6 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.