r/programming • • Dec 20 '10

A Christmas Tree in 1k of Javascript

http://www.romancortes.com/blog/how-i-did-the-1kb-christmas-tree/
1.1k Upvotes

221 comments sorted by

View all comments

Show parent comments

-2

u/ascendant512 Dec 21 '10

Yeah, thanks for the comment. I know that you can hardware-accelerate sprites by turning them into a textured polygon. Hardware accelerated sprites seem to be both common and rare. The only example I can think of is the mouse pointer.

It's just that usually when you see a game or something that uses sprites, it's not 3D accelerated. Even more so the older it is.

Perhaps someone can write a WebGL canvas version of this toy. It'll probably be faster >_>

2

u/ZorbaTHut Dec 21 '10

Actually, the vast majority of modern 2d games are hardware-accelerated. Software rendering is long since dead. I'd say you've got a 95%+ chance of any 2d game in the last five years being hardware-accelerated.

That's probably an underestimation.

0

u/ascendant512 Dec 21 '10

The vast majority of what you think are modern 2D games are not 2D. They are rendered in a 3D environment with a fixed camera perspective using 3D textured polygons (again, not sprites); not because it's easier to do it that way but because it's much, much faster. The rest of them use non-hardware accelerated java or non-hardware accelerated flash. Which use sprites. Which use the CPU.

You are wrong, go away.

1

u/altrego99 Dec 21 '10

The vast majority of what you think are modern 2D games are not 2D

I like Duke Nukem Manhattan project, which falls in this category :) Awesome game!