Skip to content
BENIBIX Learn

Sprite vs Hitbox

People think a game checks hits against the picture you see, and it does not. The sprite is only what gets drawn. The hitbox is a simple unseen shape around it, and the game tests touches with that. A hero's hitbox is often smaller than its sprite, so a spike that grazes its hair does not count. That is what makes a game feel fair.

Development🎮 Game Development

Game Sprite

A flat picture in a 2D game, like a hero or a coin.

A sprite is a flat 2D picture used in a game, like a hero, a coin or a cloud. The game draws it at a spot on the screen and can move, turn or flip it. To make a sprite look alive, the game swaps between a few pictures fast. Most 2D games are made almost entirely of sprites.

Example
Lucy draws a 32 by 32 pixel frog. In her game, that sprite hops across the screen.
Why it matters
Sprites are how 2D games show anything at all. They are cheap to draw and easy to move.
Full entry
Development🎮 Game Development

Hitbox

An unseen shape around a thing. The game checks it for touches.

A hitbox is an unseen shape around a game object that the game uses to check for touches. It is usually a box or a circle, simpler than the picture. If two hitboxes overlap, the game counts a hit. Some games use a hurtbox for where a player can be hit and a hitbox for what does the hitting.

Example
Players say Emma's game is unfair. She makes the hero's hitbox a little smaller than his picture, and it feels better.
Why it matters
How a hitbox is sized decides whether a game feels fair. Players notice when it is off.
Full entry

In one line

Game Sprite
A flat picture in a 2D game, like a hero or a coin.
Hitbox
An unseen shape around a thing. The game checks it for touches.