Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Play Super Mario in 14kb Javascript (nihilogic.dk)
51 points by rglullis on April 8, 2008 | hide | past | favorite | 13 comments


This is amazing. I kept thinking about whether it's possible to use javascript to make a simple game (instead of flex/actionscript). This proves that it is.


Here's something much more convincing, even: http://games.funnygames.nl/lemmings/index.html


Wow.. this is pretty impressive.

It looks like it's using the canvas element for drawing stuff.. does anyone here know much about using canvas?

Would it be fast enough to draw a few hundred triangles a second? >:)


Canvas is as fast as the underlying drawing API. In the case of Firefox, that means Cairo (just for Canvas elements in 2, but for all drawing in 3). WebKit also uses Cairo for cross-platform drawing.


I've seen the canvas do fairly decent realtime 3D, and used the canvas to render somewhat-simple 3D scenes very quickly.


I can't jump up diagonally :(


no shrooms thou :( I think that 14kb is missleading. Only part of the game and features are implemented.


Cloning Mario probably wasn't the point.


The misleading part is "Play" ;-).

Interesting demo, though.


I would be amazed if it was just the basic game. But music, too?

It's strange that we don't see more simple/casual games in JavaScript. Is the popularity of Flash the reason why?


very good; evidence that something doesn't have to be perfect to be impresive



awesome killscreen! :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: