Giter VIP home page Giter VIP logo

google_pacman's Introduction

Google Pacman

This is a copy of Google's playable Pacman game logo hosted for Pacman's 30th Anniversary.

With the help of StackOverflow users, we were able to get a playable version working 100%.

To play a live version: http://macek.github.com/google_pacman

Or download the source and run it offline. Run on Repl.it

Sound in Offline Mode

A snippet from Adobe.com

For example, a trusted local HTML file may permit an untrusted local SWF to script it by setting allowScriptAccess="always". However, an untrusted local HTML file may never permit an untrusted local SWF to script it, regardless of the value of allowScriptAccess.

To have flash trust your local SWF, you must add your google_pacman folder to the allow list using your Flash Control Panel.

  1. Adobe Flash Control Panel: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

  2. Click Edit Locations

  3. Click Add Location

  4. Browse to your google_pacman directory

  5. Click Confirm

Read more about this issue here: http://www.adobe.com/devnet/flash/articles/fplayer8_security_09.html

Thanks to:

SteD for providing a nicely formatted version of pacman10-hp.2.js

Skizo for noticing that relative paths don't work as expected when executed locally

Skizo for fixing issue: "Ghosts stay blue permanently on restart"

Mason Barry for cleaning up the homepage, adding a nice starting graphic, and fixing the Insert Coin button

winwakr for showing us how to get sound working in offline mode.

KevinCathcart for recommending we setup a live version on the gh-pages branch

KevinCathcart and Barry Silverman for removing a good amount of unnecessary HTML/JavaScript

KevinCathcart and Barry Silverman for getting the famous intro song working

google_pacman's People

Contributors

macek avatar malteianlauterbach avatar mcepl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

google_pacman's Issues

Ghosts stay blue permanently on restart

If you get a game over, then click Insert Coin to start a new game, the ghosts will stay blue permanently once you've collected a power pill. This has a few side effects too, such as this: Ghosts will no longer change modes for the rest of that level. This means if you race to a power pill right at the start, the ghosts will be in permanent scatter mode for the rest of the level (although as soon as Elroy 1 is activated, Blinky starts chasing).

Sometimes the effect carries over to the next few levels, but it seems randomish (usually lets you do it up to level 5 or 6, then stops working). This is obviously a bug in the original Google code, so if fixed it should probably be saved as a different version. Can anyone please look through the code of pacman10-hp.3.js and tell me what causes this bug? It seems to trigger every time you do a restart, but not on the first play. Is there a variable that's erroneously set or something when you get a game over, or when you start a new game (not the first game)? I'd love to know what causes it! Thanks, this is really interesting.

Custom maps

Hi very good

I would like to change the image of the game so do not put google if nothing else and want to know how. should be modified only spritte or have to touch it. JS

greetings and thank you very much

Index redirects to a google search

This is Skizo from StackOverflow.

When you reach game over you get redirected to a page for the google search. I found a pretty simple solution. There's a link in the code with a A tag with ID=DLINK. It's enough to strip the href like this:

<a id="dlink"></a>

This way you won't be redirected anymore. This is useful while source gets stripped out of unnecessary google code.

Cheers

Try the new and updated version from google

Hi I am new to GitHub here so I don't know how to post an issue the right way so please bare with me. So I was playing the game from Google's website and just noticed a change, the scoreboard had shifted to the top and bottom instead of left and right. I mean it is not a big issue but this version looks better aesthetically and is also closer to the original pacman game by namco I think,

The link:
https://google.com/logos/2010/pacman10-hp.html

A screenshot of the game:
Screenshot_2020-04-29-19-52-52-639

P.s really love your work macek, just a small enhancement for the game :)

Sound does not work offline

@winwakr found this fix for the time being:

A snippet from Adobe.com

For example, a trusted local HTML file may permit an untrusted local SWF to script it by setting allowScriptAccess="always". However, an untrusted local HTML file may never permit an untrusted local SWF to script it, regardless of the value of allowScriptAccess.

To have flash trust your local SWF, you must add your google_pacman
folder to the allow list using your Flash Control Panel.

  1. Adobe Flash Control Panel:
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager03.html
  2. Click Edit Locations
  3. Click Add Location
  4. Browse to your google_pacman directory
  5. Click Confirm

Read more about this issue here:
http://www.adobe.com/devnet/flash/articles/fplayer8_security_09.html

Game is not working!!!!

I am using Chrome and Explorer and in offline mode every time I hit Insert Coin, a yellow bar appears and then it get stuck.

Latest Doodle from Google.com/pacman

Pardon me for my English. I am a bad english speaker
Hello, please extract the version from here : https://www.google.com/logos/2010/pacman10-hp.html?=en
I am a diehard Pacman fan and I truly love the game, the index.html file works on my device but the frames per second is extremely low and the score board and life bar is at the left and right sides of the screen, my windows 7 device has a very small screen so the score board just does not fit in the screen. The newer online version works smoothly and the scoreboard is also visible, please extract the latest version of the doodle from the given link

Thank You

Update pacman10-hp.3.js to reference only /one/ sprite image

The official Google code added the mute option in a hurry, and thus uses two versions of the sprite page. The Javascript uses the new version in one location, and the old version in a few other locations. Considering that the only differences are two new sprites, it should be possible to cut down on memory usage slightly by updating the remaining references in the packman10-hp.3.js to use the new sprite page too.

At that point it should be possible to delete the old javascript and spite page, although leaving them in the repository for reference also make sense. In that case you probably should also include the first version of the javascript code too (http://www.google.com/logos/js/pacman10-hp.js) so we can see all the changes Google made.

Gameplay becomes jerky after continuous play

When you first start playing, it's nice and smooth, but as the minutes go by, it slowly gets jerkier and jerkier. It stays jerky even after a game over, and after you start a new game, and it can be fixed by refreshing the page. Does anyone know why it gets so jerky and slow after a while?

Cannot call method 'append' of undefined

index.html:218

Uncaught TypeError: Cannot call method 'append' of undefined

a = document.createElement("script");
a.type = "text/javascript";
a.src = "logos/js/pacman10-hp.2.js";
google.dom.append(a)

The game doesn't work?

I've done everything necessary such as downloading the files and making correct directories, but the game still won't play.
It just gets stuck when I press "Insert coin", and an yellow bar appears.
Oh, and I can't see the Pacman GIF which you can see on the online version here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.