Skip to content
GAME ARCHITECTS AI

Glossary

What is a hitbox: the invisible box that decides a hit

Dodged the shot and died anyway? A box you can't see made that call. And it is why Mario ended up plump, according to his own creator.

By Published 4 min read

Pixel art illustration: at night, the man and the small robot look at an arcade cabinet screen, where a small hero on a platform stands inside a dashed golden square and a glowing bullet touches the corner of the square; the robot points at the screen. Image generated by artificial intelligence.

SUMMARY FOR WHEN YOU'RE SHORT ON TIME · 2 min

A hitbox is the invisible shape a game places around a character or an object to know whether something touched it. The game doesn't look at the drawing: if the shot enters the hitbox, it counts as a hit. It is usually a rectangle, but it can be round, and the person making the game decides whether it is bigger or smaller than the drawing.

  • A hitbox is the invisible shape a game uses to know whether a hit or a shot touched something; the name joins hit and box.
  • In 2D games it is usually a rectangle; round shapes are also common, and people still call it a box.
  • Shigeru Miyamoto, Mario's creator, told Nintendo that Mario is plump because the game devices of the time could only check collisions between square boxes, not to make him cute.
  • In Steel Diver, a Nintendo submarine game, the periscope made collisions so hard that Miyamoto joked it would be better to swap the submarine for a container.
  • The Steel Diver team solved it by combining several shapes into one hitbox, so the submarine wouldn't get stuck between rocks.
  • In shooting games packed with bullets, the part of the ship that can be hit was once a single dot on the screen, according to game maker Radek Koncewicz.

Your first step: Next time a shot grazes your character in a game, notice whether you died or escaped. You are watching the hitbox at work.

What is a hitbox?

A hitbox is the invisible shape a game places around a character or an object to know whether something touched it2. The name joins two English words: hit and box.

The game doesn't look at the drawing. It checks the box. If the shot enters it, it counts as a hit, even if on screen it looks like the shot never touched the hero.

Is a hitbox always a box?

Not always, despite the name. In 2D games it is usually a rectangle and in 3D games a block; round shapes are also common, and people still call it a box2. When the shape is the part of the character that can be hit, it is also called a hurtbox2.

Why is Mario plump?

Because of the box, according to his own creator. In an interview published by Nintendo, Shigeru Miyamoto said Mario has that plump shape because the game devices of the time could only check collisions between square boxes, not because he wanted to make the character cute1. He said he adjusted the design to what the device could do: since resolution was low, for example, he made the face big1.

It makes sense (our reading): a skinny hero would leave empty corners in the box, and a shot passing through them would count as a hit without touching him. Plump Mario fills almost the whole box. For the rest of the character's origin, see how Mario was created.

What about objects with a complicated shape?

Then the team combines several shapes into one. In the same interview, about Steel Diver, a submarine game for the Nintendo 3DS, Miyamoto said today's game consoles can handle collisions with round or irregular shapes, but a submarine is still hard1. The periscope and the other parts sticking out of the hull made it so complicated that he joked: maybe they should give up on the submarine and use a container, which is a box1.

Giles Goddard, the lead programmer, explained the solution: the team built the submarine's shape by putting together points and long shapes, like cigars. Without that, he said, the submarine would get stuck between rocks1.

Why does a bullet graze the ship in shooting games and nothing happens?

Because in many of them the ship's hitbox is much smaller than the drawing. In shooting games with the screen full of bullets, the part that can be hit was once marked by a single dot on the screen, according to Radek Koncewicz, a game maker, in a post published on Game Developer in 20103. He calls that one-dot box the original solution, and the purest one for the genre3.

The reason is in his post too: players feel less cheated when a close call goes their way3.

Where does this come up when you make a game?

When you decide whether the game forgives or punishes (our reading). Hitbox smaller than the drawing: the bullet grazes and the player escapes. Bigger: the player loses without touching anything, and feels robbed.

When you make a game by talking to an AI, what became known as vibe coding, knowing the name helps you ask clearly: "make the hero's hitbox smaller than the drawing" is a request the AI understands. The hitbox lives inside the program where the game is put together, the game engine.

The other side

There is no right size for a hitbox. Too small, and the game gets easy and the player feels nothing can touch them; too big, and they die without understanding why. The AI can set up the hitbox, but it doesn't know how your game should feel to the person playing it: you only find that out by playing and adjusting, and the choice still belongs to whoever creates the game.

Related questions

What does hitbox mean?

Hitbox joins two English words: hit and box. It is the invisible shape a game uses to check whether a hit or a shot landed.

Is a hitbox always square?

No. In 2D games it is usually a rectangle and in 3D games a box, but round shapes are also common. For complicated objects, the team combines several shapes, as Nintendo did with the submarine in Steel Diver.

Why is Mario plump?

According to Shigeru Miyamoto, Mario's creator, because the game devices of the time could only check collisions between square boxes. He said he adjusted the design to what the device could do, not that he wanted to make the character cute.

What is the difference between a hitbox and a hurtbox?

A hurtbox is the hitbox used to detect incoming damage, that is, the area of the character that can be hit. Hitbox is the general name for the invisible shape.

Why does a shot sometimes hit without touching the character?

Because the character's hitbox is bigger than the drawing. The game checks the invisible shape, not the drawing you see on screen.

Is a hitbox smaller than the drawing cheating?

No. It is a choice made by whoever makes the game. Game maker Radek Koncewicz wrote that players feel less cheated when a close call goes their way.

Sources

  1. Nintendo, Iwata Asks: "Steel Diver", part 4 (interview with Shigeru Miyamoto and the team). Accessed October 25, 2026.
  2. Wikipedia, "Collision detection", section on hitboxes. Accessed October 25, 2026.
  3. Radek Koncewicz, Game Developer, "The 1-Pixel Collision Box" (March 26, 2010). Accessed October 25, 2026.

Was this article helpful?

Once a week, what changed in making games with AI

Every Tuesday, a 3 to 5 minute read: the news that changes something for people who want to make a game, one reader question answered, and the new articles. Unsubscribe anytime with one click.

By signing up, you agree to the privacy policy.

Found a mistake? Let us know. We fix it and log the correction on the page. Report a mistake