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.
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.
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.
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.