HaxBall
2v2 soccer with circle players โ vs computer or two players
Loadingโฆ
About this tool
HaxBall is a 2v2 soccer game where round players push and kick a ball into the other goal. The stadium uses an abstract 280 by 160 space; the ball is confined to the pitch inside a margin, but players can roam the wider stadium around it, which keeps them from getting jammed together in the corners. For example, running into the ball only nudges it a little, while pressing the kick button (with a short cooldown after each kick) launches it hard toward wherever it is aimed. It supports three ways to play: 2v2 against the computer, two players sharing one device, and online play with a friend through an invite link, where empty spots are automatically filled by AI. In computer and two-player modes, everything runs entirely in the browser and nothing is sent anywhere; online mode is the only exception, where player input travels to a dedicated realtime server.
How to use
- Pick your opponent on the start screen: 2v2 vs computer, Two players, or Online (invite a friend).
- If Computer is chosen, also pick a difficulty: Easy, Normal, or Hard.
- For Online, tap "Invite friends" to share the link; empty seats are filled by AI until friends join.
- Press "Start game" to begin after the countdown, and use "Fullscreen" to fill the screen.
- Move with W A S D and kick with Space, or use the on-screen joystick and kick button on mobile.
- Running into the ball nudges it, while kicking gives it a strong, aimed push with a short cooldown after each one.
- First team to 3 goals wins; press "New match" (or "Rematch" online) to play again.
Frequently asked questions
- How do two people play on one device?
- Choose Two players: blue uses W A S D with Shift to kick, red uses the arrow keys with Enter. Each side gets one AI teammate.
- Do I have to kick, or does touching the ball move it?
- Running into the ball nudges it; pressing kick gives it a strong, aimed push. Kicking has a short cooldown, so timing matters.
- What do the difficulty levels change?
- At lower difficulty the AI trusts its aim less and often just shoves the ball forward instead of lining up a real shot, and it needs better alignment before it decides to kick. On hard it lines up shots accurately and kicks the moment it gets a reasonable angle, so it rarely leaves the ball loose.
- How does online play with friends work?
- Choosing Online creates an invite link. Send it to friends; once at least one has joined, someone can press Start to begin. Any seat still empty is filled by an AI player. From that point, the physics run on a dedicated realtime server at 60 updates per second and are broadcast to all screens 30 times per second.
- What happens if a player leaves during an online match?
- The realtime server never writes match data to a database, so once a player leaves, that match simply ends with nothing left behind. Starting again means sharing a fresh invite link.
- What data gets sent to a server while playing?
- In Computer and Two players modes, nothing is sent anywhere. Only in Online mode does player input travel to the realtime server; nothing else is stored.
- How do I know which player is mine?
- Your player is drawn with a thin outline around it so it stands out from the rest, including your AI teammate and the opponents.
- Can I play fullscreen on my phone?
- Yes. Most browsers get a native fullscreen request; on iPhone Safari, which does not support element fullscreen, it automatically falls back to a screen filling overlay instead.
- What are the keyboard controls?
- Solo and online play use W A S D to move and Space to kick. In Two players mode, blue is fixed to W A S D and Shift, red to the arrow keys and Enter.