daleharvey / pacman

HTML5 Pacman
Do What The F*ck You Want To Public License
697 stars 470 forks source link

Not really an issue but... #11

Open BigG opened 8 years ago

BigG commented 8 years ago

It is a way to change the level design? I mean I know that Pacman.WALLS drive it but what is the logic behind it?

Thanks! BigG

platzhersh commented 8 years ago

There are two things to change:

  1. edit the content of each field of the grid by editing the map.json file in the data folder. This is the file that gets loaded to place all the pills and walls.
  2. the graphic representation of the wall grid fields (the blue blocks) is currently still hardcoded and does not adapt to chsnges made in map.json yet. find the buildwalls() function in the main javascript and adjust it according to your changes in the map.json field.

hope this helps!

cheers Am 03.02.2016 09:38 schrieb "BigG" notifications@github.com:

It is a way to change the level design? I mean I know that PacmanWALLS drive it but what is the logic behind it?

Thanks! BigG

— Reply to this email directly or view it on GitHub https://github.com/daleharvey/pacman/issues/11.