Hacker News new | past | comments | ask | show | jobs | submit login
Pong in 30 Lines (billmill.org)
19 points by prakash on Nov 18, 2008 | hide | past | favorite | 7 comments



Man I wish I had a nice Mac.


This is the fun way to learn python.


As long as you mean nodebox, not my code - I'd be embarrassed to present this code to a newbie.

If any impressionable proto-Pythonistas are reading this: don't format your code like this! I just did it to make it short for fun. Go read PEP 8 and be enlightened http://www.python.org/dev/peps/pep-0008/ .


"Pong in 30 Lines" isn't really the interesting thing to me. I think it's far more interesting that you can write an interactive python app and embed it in a pdf.

Perhaps this would have been better submitted as "Embed python games in a pdf"?


You managed to embed the actual game into a PDF? How did you do that?

I was only able to export an image of it.


Nope, I'm not in OS X so I couldn't try out the software. I just assumed it did what it said it did.

http://nodebox.net/code/index.php/Home : "create 2D visuals (static, animated or interactive) using Python programming code and export them as a PDF"


Ahh... no, you can only export static images to PDF AFAIK.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: