Live data from Hacker News

Accurate remake of Pac-Man in JavaScript

shaunew.github.com

11–20 of 60 posts

Re: Accurate remake of Pac-Man in JavaScript

#14
post #2

The remakes look really good -- good job! Does the original Pac-Man remake use the same AI behavior as the original arcade version? I ask because I tried using the "safe spot" trick (src: http://strategywiki.org/wiki/Pac-Man/Tips#The_safe_spot ) and the red ghost caught me every time.

It didn't seem to work. I'm not a Pac-Man expert, but the ghost behavior didn't feel the same to me here as it does on an emulated version of the original.

(I liked the speed though, Pac-Man is too slow.)

Re: Accurate remake of Pac-Man in JavaScript

#15
post #2

The remakes look really good -- good job! Does the original Pac-Man remake use the same AI behavior as the original arcade version? I ask because I tried using the "safe spot" trick (src: http://strategywiki.org/wiki/Pac-Man/Tips#The_safe_spot ) and the red ghost caught me every time.

It didn't seem to work. I'm not a Pac-Man expert, but the ghost behavior didn't feel the same to me here as it does on an emulated version of the original. (I liked the speed though, Pac-Man is too slow.)

The hiding spot doesn't work, so there is definitely something amiss with the behavior. Still very fun.

Re: Accurate remake of Pac-Man in JavaScript

#16
I like how the learn mode lets you see the AI algorithms and the practice mode lets you rewind. It's like Braid for PacMan. Pretty fun. It'd be interesting to play as the ghosts and see if you can write simple algorithms for a ghost team to capture pacman.

Re: Accurate remake of Pac-Man in JavaScript

#18
http://news.ycombinator.com/item?id=4431197

Double standard, HN?

At least qxcv sees the light: "It's one thing to make a Pac-Man-like game. But this is being called the trademarked name Pac-Man, and you've copied the artwork straight from Pac-Man.

Seems certain this isn't an official licensed version. In which case, you should change all those items immediately. It's illegal and it's just not cool.

Here are the guys you are ripping off. Tōru Iwatani and his friends at Namco. Tōru is a very nice guy:

http://pacmanmuseum.com/history/Toru-Iwatani.php "

Re: Accurate remake of Pac-Man in JavaScript

#19
post #6

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).

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.

Re: Accurate remake of Pac-Man in JavaScript

#20
post #6

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).

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.
Post reply on HN