How do sprites work?

Posted by Alan on Stack Overflow See other posts from Stack Overflow or by Alan
Published on 2010-06-10T16:27:32Z Indexed on 2010/06/10 16:32 UTC
Read the original article Hit count: 342

How do sprites work?

I've seen sprites from old school games like Super Mario Brothers, and wondered how they're animated to make a game.

They're always presented as one big image map, so how are they used?

For Mario (as an example) are there precalculated image co-ordinates that outline mario, and are swapped between various mario sprites to produce animation?

Or are sprites pre "cut" during game initialization using precalculated images co-ordinates and stored in memory somewhere?

Obviously I know nothing about game development.

© Stack Overflow or respective owner

Related posts about game-development

Related posts about animation