Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can see the whole source here : https://github.com/shaunew/Pac-Man/tree/gh-pages/src

I wonder how he compiles these files into one though ? THis is the main drawback of javascript to me at the moment : having to write everything in one big file.



Looking at the code, I'm pretty sure the contents of each file is just dropped into an IIFE. A pretty simple Ruby script would take care of this.




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

Search: