Permalink
Browse files

re-adding gh-pages

  • Loading branch information...
0 parents commit 21a67e3c29d47fe51bde7c967c1f3b4a135c62c5 @macek committed Jan 24, 2013
64 README
@@ -0,0 +1,64 @@
+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.
+
+
+
+
+
+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
@@ -0,0 +1,115 @@
+<!doctype html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Google Pacman</title>
+ <script>
+ window.google = {}
+ </script>
+ <style>
+ body{background:#222;font-family:monospace;margin-top:50px}
+ td{line-height:.8em;}
+ form{margin-bottom:20px;}
+ input{font-family:inherit;-moz-box-sizing:content-box}
+ a{color:#11c;text-decoration:none}
+ a:hover,a:active{text-decoration:underline}
+ a:visited{color:#551a8b}
+ #logo{width:554px;height:186px;background:black url(src/pacman10-hp.gif) 0 0 no-repeat;position:relative;margin-bottom:9px}
+ #logo-l{width:200px;height:2px;left:177px;top:157px;background:#990;position:absolute;display:none;overflow:hidden}
+ #logo-b{position:absolute;left:0;background:#ff0;height:8px;width:0}
+ #wrapper{width:554px;height:186px;padding:10px;background:#000;-webkit-border-radius:8px;}
+ .lsb:active{background:-webkit-gradient(linear,left top,left bottom,from(#ccc),to(#ddd))}
+ .ds{display:-moz-inline-box}
+ .ds{border-bottom:solid 1px #e7e7e7;border-right:solid 1px #e7e7e7;display:inline-block;margin:3px 0 4px;margin-left:4px;margin-right:3px:height:32px}
+ .lsbb{background:#eee;border:solid 1px;border-color:#ccc #999 #999 #ccc;height:30px;display:block}
+ .lsb{background:url(/images/srpr/nav_logo13.png) bottom;font:15px arial,sans-serif;border:none;cursor:pointer;height:30px;margin:0;outline:0;vertical-align:top}
+ .lsb:active{background:#ccc}
+ #footer ul{list-style-type:none;padding:0}
+ #footer a{display:inline-block;color:#444;font-size:10pt;font-family:monospace;padding:5px}
+ #footer a:hover{color:#666;text-decoration:none;background:#333}
+
+ </style>
+</head>
+<body>
+ <center>
+ <div id="wrapper">
+ <a href="#gameover" id="dlink"></a>
+ <div id='logo' title="PAC-MAN's 30th Birthday! Doodle with PAC-MAN™ & ©1980 NAMCO BANDAI Games Inc.">
+ <div id="logo-l">
+ <div id="logo-b">
+ </div>
+ </div>
+ </div>
+ </div>
+ <script>
+ google.dom = {};
+ google.pacManSound = true;
+ google.browser = {};
+ google.browser.engine = {}
+
+ google.dom.remove = function (a) {
+ return a && a.parentNode && a.parentNode.removeChild(a)
+ };
+
+ google.dom.append = function (a) {
+ return document.body.appendChild(a)
+ };
+
+ google.browser.engine.IE = false
+ google.pml = function () {
+ function d(a) {
+ if (!google.pml_installed) {
+ google.pml_installed = true;
+ if (!a) {
+ document.getElementById("logo").style.background = "black";
+ window.setTimeout(function () {
+ var b = document.getElementById("logo-l");
+ if (b) b.style.display = "block"
+ }, 400)
+ }
+ a = document.createElement("script");
+ a.type = "text/javascript";
+ a.src = "src/js/pacman10-hp.3.js";
+ document.body.appendChild(a)
+ }
+ }
+ function e() {
+ if (document.f && document.f.btnI) document.f.btnI.onclick = function () {
+ typeof google.pacman != "undefined" ? google.pacman.insertCoin() : d(false);
+ return false
+ }
+ }
+ if (!google.pml_loaded) {
+ google.pml_loaded = true;
+ window.setTimeout(function () {
+ document.f && d(true)
+ }, 1E4);
+ e();
+ }
+ };
+ </script>
+
+ <form action="#submit" name='f'>
+ <table width="23%" cellpadding='0' cellspacing='0'>
+ <tr valign='top'>
+ <td align='center' nowrap><br style="line-height:0">
+ <span class='ds'>
+ <span class='lsbb'>
+ <input name='btnI' type='submit' value="Insert Coin" class='lsb'>
+ </span>
+ </span>
+ </td>
+ </tr>
+ </table>
+ </form>
+
+ <div id="footer">
+ <ul>
+ <li><a href="http://github.com/macek/google_pacman">GitHub macek/google_pacman</a></li>
+ <li><a href="http://google.com">&copy; 2010, Google</a></li>
+ <li><a href="http://pacman.com">&copy; 1980, NAMCO BANDAI Games Inc.</a></li>
+ </ul>
+ </div>
+ <script>google.pml && google.pml()</script>
+ </center>
+</html>
Oops, something went wrong.

0 comments on commit 21a67e3

Please sign in to comment.