3 ms·
Looks very nice. My only complaint is that all the JavaScript code is in one file, which makes it a bit harder to casually peruse (I was curious how you impleme
by rkaplan 14y ago
Looks very nice. My only complaint is that all the JavaScript code is in one file, which makes it a bit harder to casually peruse (I was curious how you implemented the ghosts' AI).
- cocoflunchy 14y agoYou can see the whole source here : https://github.com/shaunew/Pac-Man/tree/gh-pages/src 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.
- prophetjohn 14y agoLooking 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.
- akldfgj 14y agoofficial ghost AI: http://home.comcast.net/~jpittman2/pacman/pacmandossier.html http://home.comcast.net/~jpittman2/pacman/pacmandossier.html