News for hackers. Stuff that matters.
Re:Data URIs make CSS sprites obsolete by necrecious on Tuesday July 06, 2010 @12:21PM (#1491437)
To automatically assemble a huge sprite and emit the offsets is also easy.

Game engines has done this for almost 20 years.

Re:Data URIs make CSS sprites obsolete by pmjordan on Tuesday July 06, 2010 @12:27PM (#1491456)
One additional downside is that sprite atlases are annoying when you need to tile the image. Vertically repeating images can't be in the same atlas as horizontally repeating ones. X+Y repeats each need to be in a separate image altogether.

I'm also wondering if, to correctly emit the offsets in CSS attributes in all cases, you'll require some manually inserted placeholders.

Re:Data URIs make CSS sprites obsolete by audionerd on Tuesday July 06, 2010 @02:43PM (#1491922)
Are there specific game engine tools that could be re-used for web work? It's a rather tedious process at the moment, pulling out sprites and arranging them on a sheet. Keeping them updated and so forth.