homenagem do google ao pac man

Ver o tópico anterior Ver o tópico seguinte Ir em baixo

homenagem do google ao pac man

Mensagem por Henrique_GJ em Ter 01 Fev 2011, 11:48

esse assunto deve ser bem old, mas eu descobri agora, e achei muito massa

em 21 de maio de 2010 (ano passado) foi possivel jogar um jogo de pac man diretamente na pagina inicial do google

a diferença é que o nivel foi fieto usando o nome GOOGLE

o que eu achei legal, não foi isso, na verdade é a velocidade que o jogo carrega, minha net chega ate 25kbps normalmente quando eu baixo um arquivo (olhei a velocidade no orbit, e não ta errado, minha net é lenta mesmu ¬¬) e o jogo carregou extremamente rapido, abriu a pagina e em 5 segundos ja dava pra jogar =D

esta curioso? clica no link a seguir

http://www.google.com/pacman/

fonte:wikipedia =D

Henrique_GJ

Número de Mensagens : 1344
Idade : 19
Data de inscrição : 30/12/2009
Reputação : 4
Insignia 1 x 0 Insignia 2 x 0 Insignia 3 x 0
Prêmios
   :
   :
   :

http://sitedosjogos.forumeiros.com

Voltar ao Topo Ir em baixo

Re: homenagem do google ao pac man

Mensagem por itallo em Ter 01 Fev 2011, 13:01

ainda dá para jogar, você tem que clicar em insert coin.
é, a google fez essa homenagem no sei lá ésimo aniversário do pacman.
o legal é que da para jogar de dois colocando mais moedas.

aqui está toda a programação do jogo:
http://www.google.com/pacman/pacman.2.js
é só olhar no código fonte.
a sprite sheet:
http://www.google.com/logos/pacman10-hp-sprite-2.png
tem apenas 8kbps, por isso fica rápido.

itallo

Ranking : Sem avaliações
Número de Mensagens : 969
Idade : 24
Data de inscrição : 26/08/2009
Reputação : 12
Insignia 1 x 0 Insignia 2 x 0 Insignia 3 x 0
Prêmios
   : 1
   :
   :

http://www.zuluhotel.com.br

Voltar ao Topo Ir em baixo

Re: homenagem do google ao pac man

Mensagem por Henrique_GJ em Ter 01 Fev 2011, 13:33

interessante

eles fizeram isso no 30° aniversáro do pac-man, ano passado

estranho que aqui em casa não tem nada de inserti coin, eu acessei a pagina e apareceu um desenho do jogo do pac-man em forma de imagem normal, ai eu fiquei esperando e começou o jogo igual no NES, só que com o nome do google =D

ps.: entendi pq o jogo é tão rapido, com um codigo fonte simples desse ^^ entendi tudo ¬¬

Spoiler:
var g,h,aa,ba,i,ca,j,k,da,l,ea,m,n,fa,o,ga,q,ha,ia,r,s,t,ja,ka,u,v,la,ma,na,oa,pa,w,x,y,z,qa,sa,ta,ua,va,wa,A,B,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,C,D,E,Ma,Na,F,G,Oa,Pa,Qa,Ra,Sa,H,Ta,Ua,I,K,Va,Wa,Xa,Ya,Za,$a,ab,bb,L,cb,db,eb,M,N,fb=[1,4,2,8],O={0:{axis:0,G:0},1:{axis:0,G:-1},2:{axis:0,G:+1},4:{axis:1,G:-1},8:{axis:1,G:+1}},gb=[0,7,17,32],hb=[{x:5,y:1,e:56},{x:5,y:4,e:5},{x:5,y:1,i:4},{x:9,y:1,i:12},{x:5,y:12,i:4},{x:10,y:12,i:4},{x:5,y:15,e:16},{x:5,y:12,e:31},{x:60,y:1,i:4},{x:54,y:1,i:4},
{x:19,y:1,i:12},{x:19,y:4,e:26},{x:13,y:5,e:7},{x:13,y:5,i:4},{x:13,y:8,e:3},{x:56,y:4,i:9},{x:48,y:4,e:13},{x:48,y:1,i:12},{x:60,y:12,i:4},{x:44,y:15,e:17},{x:54,y:12,i:4},{x:44,y:12,e:17},{x:44,y:1,i:15},{x:41,y:13,e:4},{x:41,y:13,i:3},{x:38,y:13,i:3},{x:38,y:15,e:4},{x:35,y:10,e:10},{x:35,y:1,i:15},{x:35,y:13,e:4},{x:21,y:12,i:4},{x:24,y:12,i:4},{x:24,y:15,e:12},{x:27,y:4,i:9},{x:52,y:9,e:5},{x:56,y:8,e:10,type:1},{x:1,y:8,e:9,type:1}],P=[{x:1,y:8,e:8},{x:57,y:8,e:9},{x:44,y:2,i:10},{x:35,y:5,
i:7},{x:36,y:4,e:8},{x:36,y:10,e:8},{x:39,y:15,e:2}],ib=[{x:5,y:15},{x:5,y:3},{x:15,y:8},{x:60,y:3},{x:60,y:15}],Q=[{x:2,y:8},{x:63,y:8}],jb={1:[{x:39.5,y:15,dir:4},{x:39.5,y:4,dir:4,S:57,T:-4},{x:39.5,y:7,dir:2,S:0,T:-4},{x:37.625,y:7,dir:1,S:57,T:20},{x:41.375,y:7,dir:1,S:0,T:20}],2:[{x:40.25,y:15,dir:8},{x:38.75,y:15,dir:4},{x:39.5,y:4,dir:4,S:57,T:-4},{x:39.5,y:7,dir:2,S:0,T:-4},{x:37.625,y:7,dir:1,S:57,T:20},{x:41.375,y:7,dir:1,S:0,T:20}]},kb=[32,312],lb=[80,312],mb={0:0.16,1:0.23,2:1,3:1,4:2.23,
5:0.3,6:1.9,7:2.23,8:1.9,9:5,10:1.9,11:1.18,12:0.3,13:0.5,14:1.9,15:9,16:10,17:0.26},R=0.8*0.4,S=[{},{l:0.75,m:0.4,B:0.8,j:0.71,z:0.5,A:0.9,q:0.79,p:20,s:0.8,r:10,t:0.85,g:6,u:5,h:1,v:100,k:[7,20,7,20,5,20,5,1],n:4,o:[0,0,30,60]},{l:0.85,m:0.45,B:0.9,j:0.79,z:0.55,A:0.95,q:0.83,p:30,s:0.9,r:15,t:0.95,g:5,u:5,h:2,v:300,k:[7,20,7,20,5,1033,1/60,1],n:4,o:[0,0,0,50],W:1},{l:0.85,m:0.45,B:0.9,j:0.79,z:0.55,A:0.95,q:0.83,p:40,s:0.9,r:20,t:0.95,g:4,u:5,h:3,v:500,k:[7,20,7,20,5,1033,1/60,1],n:4,o:[0,0,0,
0]},{l:0.85,m:0.45,B:0.9,j:0.79,z:0.55,A:0.95,q:0.83,p:40,s:0.9,r:20,t:0.95,g:3,u:5,h:3,v:500,k:[7,20,7,20,5,1033,1/60,1],n:4,o:[0,0,0,0]},{l:0.95,m:0.5,B:1,j:0.87,z:0.6,A:1,q:0.87,p:40,s:1,r:20,t:1.05,g:2,u:5,h:4,v:700,k:[5,20,5,20,5,1037,1/60,1],n:3,o:[0,0,0,0],W:2},{l:0.95,m:0.5,B:1,j:0.87,z:0.6,A:1,q:0.87,p:50,s:1,r:25,t:1.05,g:5,u:5,h:4,v:700,k:[5,20,5,20,5,1037,1/60,1],n:3,o:[0,0,0,0]},{l:0.95,m:0.5,B:1,j:0.87,z:0.6,A:1,q:0.87,p:50,s:1,r:25,t:1.05,g:2,u:5,h:5,v:1E3,k:[5,20,5,20,5,1037,1/60,
1],n:3,o:[0,0,0,0]},{l:0.95,m:0.5,B:1,j:0.87,z:0.6,A:1,q:0.87,p:50,s:1,r:25,t:1.05,g:2,u:5,h:5,v:1E3,k:[5,20,5,20,5,1037,1/60,1],n:3,o:[0,0,0,0]},{l:0.95,m:0.5,B:1,j:0.87,z:0.6,A:1,q:0.87,p:60,s:1,r:30,t:1.05,g:1,u:3,h:6,v:2E3,k:[5,20,5,20,5,1037,1/60,1],n:3,o:[0,0,0,0],W:3},{l:0.95,m:0.5,B:1,j:0.87,z:0.6,A:1,q:0.87,p:60,s:1,r:30,t:1.05,g:5,u:5,h:6,v:2E3,k:[5,20,5,20,5,1037,1/60,1],n:3,o:[0,0,0,0]},{l:0.95,m:0.5,B:1,j:0.87,z:0.6,A:1,q:0.87,p:60,s:1,r:30,t:1.05,g:2,u:5,h:7,v:3E3,k:[5,20,5,20,5,1037,
1/60,1],n:3,o:[0,0,0,0]},{l:0.95,m:0.5,B:1,j:0.87,z:0.6,A:1,q:0.87,p:80,s:1,r:40,t:1.05,g:1,u:3,h:7,v:3E3,k:[5,20,5,20,5,1037,1/60,1],n:3,o:[0,0,0,0]},{l:0.95,m:0.5,B:1,j:0.87,z:0.6,A:1,q:0.87,p:80,s:1,r:40,t:1.05,g:1,u:3,h:8,v:5E3,k:[5,20,5,20,5,1037,1/60,1],n:3,o:[0,0,0,0],W:3},{l:0.95,m:0.5,B:1,j:0.87,z:0.6,A:1,q:0.87,p:80,s:1,r:40,t:1.05,g:3,u:5,h:8,v:5E3,k:[5,20,5,20,5,1037,1/60,1],n:3,o:[0,0,0,0]},{l:0.95,m:0.5,B:1,j:0.87,z:0.6,A:1,q:0.87,p:100,s:1,r:50,t:1.05,g:1,u:3,h:8,v:5E3,k:[5,20,5,20,
5,1037,1/60,1],n:3,o:[0,0,0,0]},{l:0.95,m:0.5,B:1,j:0.87,z:0.6,A:1,q:0.87,p:100,s:1,r:50,t:1.05,g:1,u:3,h:8,v:5E3,k:[5,20,5,20,5,1037,1/60,1],n:3,o:[0,0,0,0]},{l:0.95,m:0.5,B:1,j:0.87,z:0.6,A:1,q:0.87,p:100,s:1,r:50,t:1.05,g:0,u:0,h:8,v:5E3,k:[5,20,5,20,5,1037,1/60,1],n:3,o:[0,0,0,0],W:3},{l:0.95,m:0.5,B:1,j:0.87,z:0.6,A:1,q:0.87,p:100,s:1,r:50,t:1.05,g:1,u:3,h:8,v:5E3,k:[5,20,5,20,5,1037,1/60,1],n:3,o:[0,0,0,0]},{l:0.95,m:0.5,B:1,j:0.87,z:0.6,A:1,q:0.87,p:120,s:1,r:60,t:1.05,g:0,u:0,h:8,v:5E3,k:[5,
20,5,20,5,1037,1/60,1],n:3,o:[0,0,0,0]},{l:0.95,m:0.5,B:1,j:0.87,z:0.6,A:1,q:0.87,p:120,s:1,r:60,t:1.05,g:0,u:0,h:8,v:5E3,k:[5,20,5,20,5,1037,1/60,1],n:3,o:[0,0,0,0]},{l:0.95,m:0.5,B:0.9,j:0.79,z:0.75,A:0.9,q:0.79,p:120,s:1,r:60,t:1.05,g:0,u:0,h:8,v:5E3,k:[5,20,5,20,5,1037,1/60,1],n:3,o:[0,0,0,0]}],nb={1:[{x:37.6,y:7,dir:1,f:6.375,b:0.48},{x:37.6,y:6.375,dir:2,f:7.625,b:0.48},{x:37.6,y:7.625,dir:1,f:7,b:0.48}],2:[{x:39.5,y:7,dir:2,f:7.625,b:0.48},{x:39.5,y:7.625,dir:1,f:6.375,b:0.48},{x:39.5,y:6.375,
dir:2,f:7,b:0.48}],3:[{x:41.4,y:7,dir:1,f:6.375,b:0.48},{x:41.4,y:6.375,dir:2,f:7.625,b:0.48},{x:41.4,y:7.625,dir:1,f:7,b:0.48}],4:[{x:37.6,y:7,dir:8,f:39.5,b:R},{x:39.5,y:7,dir:1,f:4,b:R}],5:[{x:39.5,y:7,dir:1,f:4,b:R}],6:[{x:41.4,y:7,dir:4,f:39.5,b:R},{x:39.5,y:7,dir:1,f:4,b:R}],7:[{x:39.5,y:4,dir:2,f:7,b:1.6},{x:39.5,y:7,dir:4,f:37.625,b:1.6}],8:[{x:39.5,y:4,dir:2,f:7,b:1.6}],9:[{x:39.5,y:4,dir:2,f:7,b:1.6},{x:39.5,y:7,dir:8,f:41.375,b:1.6}],10:[{x:37.6,y:7,dir:8,f:39.5,b:R},{x:39.5,y:7,dir:1,
f:4,b:R}],11:[{x:39.5,y:7,dir:1,f:4,b:R}],12:[{x:41.4,y:7,dir:4,f:39.5,b:R},{x:39.5,y:7,dir:1,f:4,b:R}]},ob={1:{V:[{w:false,x:64,y:9,id:0},{w:true,x:68.2,y:9,id:1}],ga:[{O:5.5,H:[{dir:4,b:0.75*0.8*2},{dir:4,b:0.78*0.8*2}]},{O:0.1,H:[{dir:4,b:32},{dir:4,b:0}]},{O:9,H:[{dir:8,b:0.75*0.8*2,M:"pcm-bpcm"},{dir:8,b:0.8,a:4}]}]},2:{V:[{w:false,x:64,y:9,id:0},{w:true,x:70.2,y:9,id:1},{w:true,x:32,y:9.5,id:2}],ga:[{O:2.7,H:[{dir:4,b:0.75*0.8*2},{dir:4,b:0.78*0.8*2},{dir:0,b:0,M:"pcm-stck"}]},{O:1,H:[{dir:4,
b:0.75*0.8*2},{dir:4,b:0.1*0.8},{dir:0,b:0,M:"pcm-stck"}]},{O:1.3,H:[{dir:4,b:0.75*0.8*2},{dir:4,b:0},{dir:0,b:0,M:"pcm-stck"}]},{O:1,H:[{dir:4,b:0.75*0.8*2},{dir:4,b:0,M:"pcm-ghfa"},{dir:0,b:0,M:"pcm-stck"}]},{O:2.5,H:[{dir:4,b:0.75*0.8*2},{dir:4,b:0,M:"pcm-ghfa"},{dir:0,b:0,M:"pcm-stck"}]}]},3:{V:[{w:false,x:64,y:9,id:0},{w:true,x:70.2,y:9,id:2}],ga:[{O:5.3,H:[{dir:4,b:0.75*0.8*2},{dir:4,b:0.78*0.8*2,M:"pcm-ghin"}]},{O:5.3,H:[{dir:4,b:0},{dir:8,b:0.78*0.8*2,M:"pcm-gbug"}]}]}},pb=[90,45,30],T=pb[0];
function qb(a){this.id=a}qb.prototype.createElement=function(){this.D=document.createElement("div");this.D.className="pcm-ac";this.D.id="actor"+this.id;U(this.D,0,0);h.appendChild(this.D);this.$=[0,0];this.Z=[0,0]};
function V(a,b){var c=a.a;a.a=b;if(a.id==g+3&&(b==16||c==16))rb();switch(c){case 32:aa=false;break;case 8:ba>0&&ba--;ba==0&&W();break}switch(b){case 4:a.aa=i.z*0.8;a.ba=i.m*0.8;a.U=false;break;case 1:a.aa=i.l*0.8;a.ba=i.m*0.8;a.U=false;break;case 2:a.K=a.na;a.aa=i.l*0.8;a.ba=i.m*0.8;a.U=false;break;case 8:a.aa=1.6;a.ba=1.6;a.K=[kb[0],kb[1]];a.U=false;a.P=false;break;case 16:sb(a);a.U=true;a.R=-1;switch(a.id){case g+1:a.J=2;break;case g+2:a.J=1;break;case g+3:a.J=3;break}break;case 32:a.U=true;a.R=
-1;switch(a.id){case g+1:a.J=5;break;case g+2:a.J=4;break;case g+3:a.J=6;break}aa=true;break;case 64:a.U=true;a.R=-1;switch(a.id){case g:case g+1:a.J=8;break;case g+2:a.J=7;break;case g+3:a.J=9;break}break;case 128:a.U=true;a.R=-1;switch(a.id){case g:case g+1:a.J=11;break;case g+2:a.J=10;break;case g+3:a.J=12;break}break}tb(a)}function sb(a){if(a.id>=g)a.oa=Math.floor(ub()*g)}
function vb(a,b){var c=a.d,e=O[a.dir],d=[c[0],c[1]];d[e.axis]+=e.G*8;var f=k[d[0]][d[1]];if(b&&!f.Q)f=k[c[0]][c[1]];if(f.Q)switch(a.a){case 2:case 1:case 8:if((a.dir&f.F)==0&&f.F==j[a.dir])a.C=j[a.dir];else{c=99999999999;var p=0;for(var ra in fb){var J=fb[ra];if(f.F&J&&a.dir!=j[J]){e=O[J];var Tb=[d[0],d[1]];Tb[e.axis]+=e.G;e=wb(Tb,[a.K[0],a.K[1]]);if(e<c){c=e;p=J}}}if(p)a.C=p}break;case 4:if((a.dir&f.F)==0&&f.F==j[a.dir])a.C=j[a.dir];else{do d=fb[Math.floor(ub()*4)];while((d&f.F)==0||d==j[a.dir]);
a.C=d}break}}
function xb(a){if(a.R==-1||a.ia)a:{a.R++;if(a.R==nb[a.J].length)if(a.a==16&&a.P&&!aa){a.Y?V(a,128):V(a,32);break a}else if(a.a==32||a.a==128){a.c=[kb[0],kb[1]+4];a.dir=a.ma?8:4;var b=n;if(a.a==128&&b==4)b=fa;V(a,b);break a}else if(a.a==64){if(a.id==g||a.P)V(a,128);else{a.Y=true;V(a,16)}break a}else a.R=0;b=nb[a.J][a.R];a.c[0]=b.y*8;a.c[1]=b.x*8;a.dir=b.dir;a.ea=0;a.ja=yb(b.b);a.ia=false;zb(a)}if(b=nb[a.J][a.R])if(a.ja[o]){var c=O[a.dir];a.c[c.axis]+=c.G;switch(a.dir){case 1:case 4:if(a.c[c.axis]<b.f*
8){a.c[c.axis]=b.f*8;a.ia=true}break;case 2:case 8:if(a.c[c.axis]>b.f*8){a.c[c.axis]=b.f*8;a.ia=true}break}zb(a)}}function tb(a){switch(a.ka){case 0:var b=a.id==g&&(a.a==2||a.a==1)?ga:a.aa;break;case 1:b=a.j;break;case 2:b=a.ba;break}if(a.ea!=b){a.ea=b;a.ja=yb(a.ea)}}function Ab(a,b){a.ka=b;tb(a)}
function Bb(a){if(a.dir)if(a.ja[o]){var b=O[a.dir];a.c[b.axis]+=b.G;var c=a.c[0]/8,e=a.c[1]/8;b=[Math.round(c)*8,Math.round(e)*8];if(b[0]!=a.d[0]||b[1]!=a.d[1]){da=true;if(a.fa){a.dir=j[a.dir];a.C=0;a.fa=false;vb(a,true)}if(!a.w&&!k[b[0]][b[1]].path){a.c[0]=a.da[0];a.c[1]=a.da[1];b[0]=a.da[0];b[1]=a.da[1];a.dir=0}else a.da=[b[0],b[1]];k[b[0]][b[1]].type==1&&a.a!=8?Ab(a,2):Ab(a,0);if(!a.w&&k[b[0]][b[1]].L){c=a.id;l--;z++;Ab(m[c],1);Cb(c);if(k[b[0]][b[1]].L==2){Db(4,false);Eb(50,c)}else Eb(10,c);document.getElementById("pcm-d"+
b[0]+"-"+b[1]).style.display="none";k[b[0]][b[1]].L=0;rb();Ja=i.n*T;if(Fa){Ga++;switch(Ga){case gb[1]:m[g+1].P=true;break;case gb[2]:m[g+2].P=true;break;case gb[3]:if(m[g+3].a==16)Fa=false;break}}else if(m[g+1].a==16||m[g+1].a==8){m[g+1].X++;if(m[g+1].X>=i.o[1])m[g+1].P=true}else if(m[g+2].a==16||m[g+2].a==8){m[g+2].X++;if(m[g+2].X>=i.o[2])m[g+2].P=true}else if(m[g+3].a==16||m[g+3].a==8){m[g+3].X++;if(m[g+3].X>=i.o[3])m[g+3].P=true}if(z==70||z==170){Ka=true;c=[i.h<=4?128,128+16*((i.h-1)%4)];X(w,
c[0],c[1],true);ya=s[15]+(s[16]-s[15])*ub()}l==0&&Y(9);W()}a.d[0]=b[0];a.d[1]=b[1]}else{c=[Math.floor(c)*8,Math.floor(e)*8];if(a.c[1]==c[1]&&a.c[0]==c[0]){if(a.c[0]==Q[0].y*8&&a.c[1]==Q[0].x*8){a.c[0]=Q[1].y*8;a.c[1]=(Q[1].x-1)*8}else if(a.c[0]==Q[1].y*8&&a.c[1]==Q[1].x*8){a.c[0]=Q[0].y*8;a.c[1]=(Q[0].x+1)*8}a.a==8&&a.c[0]==kb[0]&&a.c[1]==kb[1]&&V(a,64);if(!a.w&&a.c[0]==lb[0]&&(a.c[1]==lb[1]||a.c[1]==lb[1]+8)){c=a.id;if(Ka){Z("fruit",0);Ka=false;e=[128,16*(i.h-1)];X(w,e[0],e[1],true);ya=s[14];Eb(i.v,
c)}}a.w&&vb(a,false);c=k[a.c[0]][a.c[1]];if(c.Q)if(a.C&&a.C&c.F){if(a.dir!=0)a.ca=a.dir;a.dir=a.C;a.C=0;if(!a.w){a.c[0]+=a.N[0];a.c[1]+=a.N[1];a.N=[0,0]}}else if((a.dir&c.F)==0){if(a.dir!=0)a.ca=a.dir;a.dir=0;a.C=0;Ab(a,0)}}}if(!a.w&&a.C&&k[b[0]][b[1]].Q&&a.C&k[b[0]][b[1]].F){b=a.d;switch(a.dir){case 1:var d=[b[0],b[1]],f=[b[0]+3.6,b[1]];break;case 2:d=[b[0]-4,b[1]];f=[b[0],b[1]];break;case 4:d=[b[0],b[1]];f=[b[0],b[1]+3.6];break;case 8:d=[b[0],b[1]-4];f=[b[0],b[1]];break}if(a.c[0]>=d[0]&&a.c[0]<=
f[0]&&a.c[1]>=d[1]&&a.c[1]<=f[1]){d=O[a.C];a.N[d.axis]+=d.G}}zb(a)}}
qb.prototype.move=function(){if(q==0||this.w&&q==1&&(this.a==8||this.a==64)){if(this.I!=0){a:{var a=this.I;if(!ca){google.pacManSound=true;Fb()}if(this.dir==j[a]){this.dir=a;this.N=[0,0];this.ka!=2&&Ab(this,0);if(this.dir!=0)this.ca=this.dir;this.C=0}else if(this.dir!=a)if(this.dir==0){if(k[this.c[0]][this.c[1]].F&a)this.dir=a}else{var b=k[this.d[0]][this.d[1]];if(b&&b.F&a){b=O[this.dir];var c=[this.c[0],this.c[1]];c[b.axis]-=b.G;var e=0;if(c[0]==this.d[0]&&c[1]==this.d[1])e=1;else{c[b.axis]-=b.G;
if(c[0]==this.d[0]&&c[1]==this.d[1])e=2}if(e){this.dir=a;this.c[0]=this.d[0];this.c[1]=this.d[1];b=O[this.dir];this.c[b.axis]+=b.G*e;break a}}this.C=a;this.N=[0,0]}}this.I=0}if(this.U){xb(this);this.a==64&&xb(this)}else{Bb(this);this.a==8&&Bb(this)}}};function Gb(a){var b=a.c[1]+a.N[1]+-32,c=a.c[0]+a.N[0]+0;if(a.$[0]!=c||a.$[1]!=b){a.$[0]=c;a.$[1]=b;a.D.style.left=b+"px";a.D.style.top=c+"px"}}
function zb(a){Gb(a);var b=[0,0];if(q==8||q==14)b=[0,3];else{if(a.w){var c=b=0;if(q==10||q==4||q==3){b=3;c=0}else if(q==1&&a.id==ja){switch(ka){case 2:b=0;break;case 4:b=1;break;case 8:b=2;break;case 16:b=3;break}c=11;a.D.className="pcm-ac pcm-n"}else if(a.a==4||(a.a==16||a.a==32)&&n==4&&!a.Y){b=0;c=8;if(u<i.ha-i.g&&Math.floor(u/s[1])%2==0)b+=2;b+=Math.floor(t/16)%2}else if(a.a==8||a.a==64){c=a.C;if(!c)c=a.dir;switch(c){case 4:b=2;break;case 8:b=3;break;case 1:b=0;break;case 2:b=1;break}c=10}else if(a.D.id==
"pcm-ghin"){b=6;c=8;b+=Math.floor(t/16)%2}else if(a.D.id=="pcm-gbug"){b=6;c=9;c+=Math.floor(t/16)%2}else if(a.D.id=="pcm-ghfa"){b=v==3?6:7;c=11}else if(a.D.id=="pcm-stck"){b=v==1?la>60?1:la>45?2:3:v==2?3:v==3||v==4?4:0;c=13}else{c=a.C;if(!c||k[a.d[0]][a.d[1]].type==1)c=a.dir;switch(c){case 4:b=4;break;case 8:b=6;break;case 1:b=0;break;case 2:b=2;break}c=4+a.id-g;if(a.b>0||q!=13)b+=Math.floor(t/16)%2}b=[c,b]}else{c=b=0;var e=a.dir;if(e==0)e=a.ca;if(q==1&&a.id==ha){b=3;c=0}else if((q==9||q==10)&&a.id==
0){b=2;c=0}else if(q==4||q==5||q==7){b=a.id==0?2:4;c=0}else if(q==3)if(a.id==ia){e=20-Math.floor(r/s[4]*21);if(a.id==0){b=e-1;switch(b){case -1:b=0;break;case 11:b=10;break;case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:b=11;break}c=12}else switch(e){case 0:case 1:case 2:case 6:case 10:b=4;c=3;break;case 3:case 7:case 11:b=4;c=0;break;case 4:case 8:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:b=4;c=2;break;case 5:case 9:b=4;c=1;break}}else{b=3;c=
0}else if(a.D.id=="pcm-bpcm"){b=14;c=0;e=Math.floor(t*0.2)%4;if(e==3)e=1;c+=2*e}else{switch(e){case 4:c=0;break;case 8:c=1;break;case 1:c=2;break;case 2:c=3;break}if(q!=2)b=Math.floor(t*0.3)%4;if(b==3&&a.dir==0)b=0;if(b==2&&a.id==0)b=0;if(b==3){b=2;if(a.id==0)c=0}if(a.id==1)b+=4}b=[c,b]}b=b}b=b;if(a.Z[0]!=b[0]||a.Z[1]!=b[1]){a.Z[0]=b[0];a.Z[1]=b[1];b[0]*=16;b[1]*=16;X(a.D,b[1],b[0],true)}}function ub(){return(ma=(134775813*ma+1)%4294967296)/4294967296}
function wb(a,b){return Math.sqrt((b[1]-a[1])*(b[1]-a[1])+(b[0]-a[0])*(b[0]-a[0]))}function Hb(a,b){var c=document.getElementById(a);if(c)c.style.visibility=b?"visible":"hidden"}
function U(a,b,c){b=parseInt(b,10)/8*10+2;c=parseInt(c,10)/8*10+2;if(na){a.style.backgroundImage="url(http://www.google.com/logos/pacman10-hp-sprite-2.png)";a.style.backgroundPosition=-b+"px "+-c+"px";a.style.backgroundRepeat="no-repeat"}else{a.style.overflow="hidden";a.innerHTML='<img style="'+("display: block; position: relative; left: "+-b+"px; top: "+-c+"px")+'" src="http://www.google.com/logos/pacman10-hp-sprite.png">'}}
function X(a,b,c,e){if(e){b=b/8*10+2;c=c/8*10+2}if(na)a.style.backgroundPosition=-b+"px "+-c+"px";else if(a.childNodes[0]){a.childNodes[0].style.left=-b+"px";a.childNodes[0].style.top=-c+"px"}}function Ib(){m=[];for(var a=0;a<g+4;a++){m[a]=new qb(a);if(a<g){m[a].w=false;m[a].a=1}else m[a].w=true}}function Jb(){h=document.createElement("div");h.id="pcm-p";y.appendChild(h)}
function Kb(a){if(!a)a=window.event;var b=false;switch(a.keyCode){case 37:m[0].I=4;b=true;break;case 38:m[0].I=1;b=true;break;case 39:m[0].I=8;b=true;break;case 40:m[0].I=2;b=true;break;case 65:if(g==2){m[1].I=4;b=true}break;case 83:if(g==2){m[1].I=2;b=true}break;case 68:if(g==2){m[1].I=8;b=true}break;case 87:if(g==2){m[1].I=1;b=true}break}if(b)if(a.preventDefault)a.preventDefault();else a.returnValue=false}
function Lb(a,b){var c=y,e=[0,0];do{e[0]+=c.offsetTop;e[1]+=c.offsetLeft}while(c=c.offsetParent);a-=e[1]- -32;b-=e[0]-0;c=m[0];e=c.c[1]+c.N[1]+-32+16;var d=c.c[0]+c.N[0]+0+32,f=Math.abs(a-e),p=Math.abs(b-d);if(f>8&&p<f)c.I=a>e?8:4;else if(p>8&&f<p)c.I=b>d?2:1}function Mb(a){if(!a)a=window.event;Lb(a.clientX,a.clientY)}
function Nb(a){sa=qa=0;if(a.touches.length==1){ta=a.touches[0].pageX;ua=a.touches[0].pageY;document.body.addEventListener("touchmove",Ob,true);document.body.addEventListener("touchend",Pb,true)}a.preventDefault();a.stopPropagation()}function Ob(a){if(a.touches.length>1)Qb();else{qa=a.touches[0].pageX-ta;sa=a.touches[0].pageY-ua}a.preventDefault();a.stopPropagation()}
function Pb(a){if(qa==0&&sa==0)Lb(ta,ua);else{var b=Math.abs(qa),c=Math.abs(sa);if(b<8&&c<8)Lb(ta,ua);else if(b>15&&c<b*2/3)m[0].I=qa>0?8:4;else if(c>15&&b<c*2/3)m[0].I=sa>0?2:1}a.preventDefault();a.stopPropagation();Qb()}function Qb(){document.body.removeEventListener("touchmove",Ob,true);document.body.removeEventListener("touchend",Pb,true);ua=ta=null}function Rb(){va=[0,0];wa=[false,false];A=3;B=0;xa=false;t=0;Sb(true)}
function Ub(a){za=ya=r=o=u=ma=0;Aa=i.k[0]*T;aa=false;ba=0;da=false;rb();Vb();Ja=i.n*T;for(var b in m){var c=m[b],e=jb[g][c.id];c.c=[e.y*8,e.x*8];c.N=[0,0];c.d=[e.y*8,e.x*8];c.K=[e.T*8,e.S*8];c.na=[e.T*8,e.S*8];c.dir=e.dir;c.ca=c.dir;c.C=0;c.I=0;c.ea=0;Ab(c,0);c.Y=false;c.ma=false;c.P=false;c.fa=false;sb(c)}for(var d in m)Gb(m[d]);Db(2,true);for(b=g+1;b<g+4;b++)V(m[b],16);Ba=[0,0];Ca=[1,1];Va=[false,false];Wa=[false,false];a?Y(4):Y(6)}function Wb(){g=1;Xb();Jb();Ib();Rb()}
function Yb(a,b,c,e,d){var f=document.createElement("div");f.style.left=a+"px";f.style.top=b+"px";f.style.width=c+"px";f.style.height=e+"px";f.style.zIndex=119;if(d){f.style.background="url(http://www.google.com/logos/pacman10-hp-sprite.png) -"+Da+"px -"+Ea+"px no-repeat";Ea+=8}else f.style.background="black";h.appendChild(f)}
function Sb(a){B++;i=B>=S.length?S[S.length-1]:S[B];i.g=Math.round(i.g*T);i.ha=i.g+s[1]*(i.u*2-1);for(var b in m)m[b].X=0;ea=Fa=false;Ua.innerHTML="";for(b=B;b>=Math.max(B-4+1,1);b--){var c=b>=S.length?S[S.length-1].h:S[b].h,e=document.createElement("div");c=[c<=4?128,128+16*((c-1)%4)];U(e,c[0],c[1]);Ua.appendChild(e)}Ua.style.marginTop=(4-Math.min(B,4))*16+"px";Zb();for(b=0;b<g;b++)$b(b);z=l=0;h.innerHTML="";U(h,256,0);pa=oa=0;for(var d in hb){b=hb[d];if(b.e){b=b.x+b.e-1;if(b>oa)oa=b}else{b=
b.y+b.i-1;if(b>pa)pa=b}}k=[];for(d=0;d<=pa+1;d++){k[d*8]=[];for(b=-2;b<=oa+1;b++)k[d*8][b*8]={path:0,L:0,Q:0}}for(var f in hb){d=hb[f];b=d.type;if(d.e){e=d.y*8;for(c=d.x*8;c<=(d.x+d.e-1)*8;c+=8){k[e][c].path=true;if(k[e][c].L==0){k[e][c].L=1;l++}k[e][c].type=!b||c!=d.x*8&&c!=(d.x+d.e-1)*8?b:0}k[e][d.x*8].Q=true;k[e][(d.x+d.e-1)*8].Q=true}else{c=d.x*8;for(e=d.y*8;e<=(d.y+d.i-1)*8;e+=8){if(k[e][c].path)k[e][c].Q=true;k[e][c].path=true;if(k[e][c].L==0){k[e][c].L=1;l++}k[e][c].type=!b||e!=d.y*8&&e!=(d.y+
d.i-1)*8?b:0}k[d.y*8][c].Q=true;k[(d.y+d.i-1)*8][c].Q=true}}for(f in P)if(P[f].e)for(c=P[f].x*8;c<=(P[f].x+P[f].e-1)*8;c+=8){k[P[f].y*8][c].L=0;l--}else for(e=P[f].y*8;e<=(P[f].y+P[f].i-1)*8;e+=8){k[e][P[f].x*8].L=0;l--}for(f=8;f<=pa*8;f+=8)for(d=8;d<=oa*8;d+=8){k[f][d].F=0;if(k[f-8][d].path)k[f][d].F+=1;if(k[f+8][d].path)k[f][d].F+=2;if(k[f][d-8].path)k[f][d].F+=4;if(k[f][d+8].path)k[f][d].F+=8}x=document.createElement("div");x.id="pcm-do";x.style.display="none";h.appendChild(x);for(f=8;f<=pa*8;f+=
8)for(d=8;d<=oa*8;d+=8)if(k[f][d].L){b=document.createElement("div");b.className="pcm-d";b.id="pcm-d"+f+"-"+d;b.style.left=d+-32+"px";b.style.top=f+0+"px";h.appendChild(b)}for(var p in ib){f=ib[p];d="pcm-d"+f.y*8+"-"+f.x*8;document.getElementById(d).className="pcm-e";U(document.getElementById(d),0,144);k[f.y*8][f.x*8].L=2}w=document.createElement("div");w.id="pcm-f";w.style.left=lb[1]+-32+"px";w.style.top=lb[0]+0+"px";U(w,-32,-16);h.appendChild(w);for(var ra in m)m[ra].createElement();Ub(a);if(B==
256){ma=0;y.style.visibility="";Yb(272,0,200,80,false);Yb(280,80,192,56,false);Da=80;Ea=0;for(a=280;a<=472;a+=8)for(p=0;p<=136;p+=8){if(ub()<0.03){Da=Math.floor(ub()*25)*10;Ea=Math.floor(ub()*2)*10}Yb(a,p,8,8,true)}Y(14)}}
function Db(a,b){if(a==4&&i.g==0)for(var c in m){var e=m[c];if(e.w)e.fa=true}else{e=n;if(a==4&&n!=4)fa=n;n=a;if(a==4||e==4)W();switch(a){case 1:case 2:Ha=i.B*0.8;Ia=i.j*0.8;break;case 4:Ha=i.A*0.8;Ia=i.q*0.8;u=i.ha;ka=1;break}for(c in m){e=m[c];if(e.w){if(a!=64&&!b)e.ma=true;if(a==4)e.Y=false;if(e.a!=8&&e.a!=16&&e.a!=32&&e.a!=128&&e.a!=64||b){if(!b&&e.a!=4&&e.a!=a)e.fa=true;V(e,a)}}else{e.aa=Ha;e.j=Ia;e.ba=Ha;tb(e)}}}}function Vb(){Ka=false;X(w,32,16,true)}
function rb(){var a=i.l*0.8;if(!ea||m[g+3].a!=16){var b=i;if(l<b.r)a=b.t*0.8;else if(l<b.p)a=b.s*0.8}if(a!=ga){ga=a;tb(m[g])}}function yb(a){if(!La[a]){var b=0,c=0;La[a]=[];for(var e=0;e<T;e++){b+=a;if(Math.floor(b)>c){La[a].push(true);c=Math.floor(b)}else La[a].push(false)}}return La[a]}
function Y(a){q=a;if(a!=13)for(var b=0;b<g+4;b++)zb(m[b]);switch(a){case 0:W();break;case 2:$();r=s[3];break;case 3:ia==0?Z("death",0):Z("death-double",0);r=s[4];break;case 6:y.style.visibility="hidden";r=s[5];break;case 7:$();y.style.visibility="";x.style.display="block";var c=document.createElement("div");c.id="pcm-re";U(c,160,0);h.appendChild(c);r=s[6];break;case 4:x.style.display="block";c=document.createElement("div");c.id="pcm-re";U(c,160,0);h.appendChild(c);r=s[7];$();g==2?Z("start-music-double",
0,true):Z("start-music",0,true);break;case 5:A--;Zb();r=s[8];break;case 8:case 14:(c=document.getElementById("pcm-re"))&&c.parentNode.removeChild(c);$();c=document.createElement("div");c.id="pcm-go";U(c,8,152);h.appendChild(c);r=s[9];break;case 9:$();r=s[10];break;case 10:x.style.display="none";r=s[11];break;case 11:y.style.visibility="hidden";r=s[12];break;case 12:h.style.visibility="hidden";r=s[13];break;case 1:r=s[2];break;case 13:h.style.visibility="hidden";y.style.visibility="";ac(false);D=document.createElement("div");
D.id="pcm-cc";y.appendChild(D);E=ob[Ma];v=-1;u=i.ha;Na=[];for(c in E.V){b=E.V[c].id;if(b>0)b+=g-1;a=document.createElement("div");a.className="pcm-ac";a.id="actor"+b;U(a,0,0);b=new qb(b);b.D=a;b.Z=[0,0];b.$=[0,0];b.c=[E.V[c].y*8,E.V[c].x*8];b.N=[0,0];b.w=E.V[c].w;D.appendChild(a);Na.push(b)}bc();$();W();break}}function ac(a){Hb("pcm-sc-1-l",a);Hb("pcm-sc-2-l",a);Hb("pcm-sc-1",a);Hb("pcm-sc-2",a);Hb("pcm-li",a);Hb("pcm-so",a)}
function cc(a){a=window.event||a;a.cancelBubble=true;if(google.pacManSound){ca=true;$();google.pacManSound=false}else{google.pacManSound=true;W()}Fb();return a.returnValue=false}function Fb(){if(C)google.pacManSound?X(C,216,105,false):X(C,236,105,false)}
function bc(){v++;if(E.ga.length==v){h.style.visibility="";D&&D.parentNode.removeChild(D);ac(true);Sb(false)}else{var a=E.ga[v];la=a.O*T;for(var b in Na){var c=Na[b];c.dir=a.H[b].dir;c.b=a.H[b].b;if(a.H[b].M)c.D.id=a.H[b].M;if(a.H[b].a)c.a=a.H[b].a;zb(c)}}}function dc(){if(q!=13){var a="";if(t%(s[17]*2)==0)a="visible";else if(t%(s[17]*2)==s[17])a="hidden";if(a)for(var b=0;b<g;b++)F[b].style.visibility=a}}
function ec(){var a=(new Date).getTime();G+=a-Oa-Pa;if(G>100)G=100;if(Qa&&G>50){Ra++;if(Ra==20)if($a<pb.length-1){$a++;fc();if($a==pb.length-1)Qa=false}}var b=0;if(G>Pa){b=Math.floor(G/Pa);G-=Pa*b}Oa=a;if(q==13){for(a=0;a<Sa+b;a++){for(var c in Na){var e=Na[c],d=O[e.dir];e.c[d.axis]+=d.G*e.b;zb(e)}la--;o=(o+1)%T;t++}la<=0&&bc();dc()}else for(a=0;a<Sa+b;a++){for(e in m)m[e].move();if(q==0)if(da){a:{da=false;for(d=g;d<g+4;d++)for(c=0;c<g;c++)if(m[d].d[0]==m[c].d[0]&&m[d].d[1]==m[c].d[1])if(m[d].a==
4){d=d;c=c;Z("eating-ghost",0);Eb(200*ka,c);ka*=2;ja=d;ha=c;Y(1);break a}else if(m[d].a!=8&&m[d].a!=16&&m[d].a!=32&&m[d].a!=128&&m[d].a!=64){ia=c;Y(2)}}for(c=g;c<g+4;c++){d=m[c];if(d.id==g&&l<i.p&&d.a==2&&(!ea||m[g+3].a!=16)){var f=m[d.oa];d.K=[f.d[0],f.d[1]]}else if(d.w&&d.a==1){f=m[d.oa];switch(d.id){case g:d.K=[f.d[0],f.d[1]];break;case g+1:d.K=[f.d[0],f.d[1]];var p=O[f.dir];d.K[p.axis]+=32*p.G;if(f.dir==1)d.K[1]-=32;break;case g+2:var ra=m[g],J=[f.d[0],f.d[1]];p=O[f.dir];J[p.axis]+=16*p.G;if(f.dir==
1)J[1]-=16;d.K[0]=J[0]*2-ra.d[0];d.K[1]=J[1]*2-ra.d[1];break;case g+3:d.K=wb(f.d,d.d)>64?[f.d[0],f.d[1]]:d.na;break}}}}t++;o=(o+1)%T;switch(q){case 4:case 5:case 6:case 7:case 9:case 10:case 11:case 12:h.className="";break;case 8:case 14:h.className="blk";break;default:if(t%(s[0]*2)==0)h.className="";else if(t%(s[0]*2)==s[0])h.className="blk";break}dc();if(q==0){if(Ja){Ja--;if(Ja<=0){for(c=1;c<=3;c++)if(m[g+c].a==16){m[g+c].P=true;break}Ja=i.n*T}}if(ya){ya--;ya<=0&&Vb()}if(u){u--;if(u<=0){u=0;Db(fa,
false)}}else if(Aa>0){Aa--;if(Aa<=0){Aa=0;za++;if(i.k[za]){Aa=i.k[za]*T;switch(n){case 2:Db(1,false);break;case 1:Db(2,false);break}}}}}if(r){r--;switch(q){case 2:case 3:for(c=0;c<g+4;c++)zb(m[c]);break;case 10:Math.floor(r/(s[11]/8))%2==0?X(h,322,2,false):X(h,322,138,false)}if(r<=0){r=0;switch(q){case 1:Y(0);ba++;W();m[ja].D.className="pcm-ac";V(m[ja],8);d=false;for(c=g;c<g+4;c++)if(m[c].a==4||(m[c].a==16||m[c].a==128)&&!m[c].Y){d=true;break}d||Db(fa,false);break;case 2:Y(3);break;case 3:Fa=ea=true;
Ga=0;A--;Zb();A==-1?Y(8):Ub(false);break;case 4:Y(5);break;case 6:Y(7);break;case 7:case 5:(c=document.getElementById("pcm-re"))&&c.parentNode.removeChild(c);Y(0);break;case 8:(c=document.getElementById("pcm-go"))&&c.parentNode.removeChild(c);break;case 9:Y(10);break;case 10:Y(11);break;case 11:if(i.W){Ma=i.W;Y(13)}else{y.style.visibility="";Sb(false)}break;case 12:h.style.visibility="";y.style.visibility="";g=2;Xb();Jb();Ib();Rb();break}}}}}
function Eb(a,b){va[b]+=a;if(!wa[b]&&va[b]>1E4){Z("extra-life",0);wa[b]=true;A++;if(A>5)A=5;Zb()}$b(b)}function $b(a){var b=va[a].toString();if(b.length>H)b=b.substr(b.length-H,H);for(var c=0;c<H;c++){var e=document.getElementById("pcm-sc-"+(a+1)+"-"+c),d=b.substr(c,1);d?X(e,8+8*parseInt(d,10),144,true):X(e,48,0,true)}}function Zb(){Ta.innerHTML="";for(var a=0;a<A;a++){var b=document.createElement("div");b.className="pcm-lif";U(b,64,129);Ta.appendChild(b)}}
function Xb(){y.innerHTML="";H=g==1?10:5;F=[];F[0]=document.createElement("div");F[0].id="pcm-sc-1-l";U(F[0],160,56);y.appendChild(F[0]);I=[];I[0]=document.createElement("div");I[0].id="pcm-sc-1";for(var a=0;a<H;a++){var b=document.createElement("div");b.id="pcm-sc-1-"+a;b.style.top=a*8+"px";b.style.left=0;b.style.position="absolute";b.style.width="8px";b.style.height="8px";U(b,48,0);I[0].appendChild(b)}y.appendChild(I[0]);Ta=document.createElement("div");Ta.id="pcm-li";y.appendChild(Ta);Ua=document.createElement("div");
Ua.id="pcm-le";y.appendChild(Ua);if(g==2){F[1]=document.createElement("div");F[1].id="pcm-sc-2-l";U(F[1],160,64);y.appendChild(F[1]);I[1]=document.createElement("div");I[1].id="pcm-sc-2";for(a=0;a<H;a++){b=document.createElement("div");b.id="pcm-sc-2-"+a;b.style.top=a*8+"px";b.style.left=0;b.style.position="absolute";b.style.width="8px";b.style.height="8px";U(b,48,0);I[1].appendChild(b)}y.appendChild(I[1])}if(K){C=document.createElement("div");C.id="pcm-so";U(C,-32,-16);y.appendChild(C);C.onclick=
cc;Fb()}}function Z(a,b,c){if(!(!K||!google.pacManSound||xa)){c||gc(b);try{Xa.playTrack(a,b)}catch(e){K=false}}}function gc(a){if(K)try{Xa.stopChannel(a)}catch(b){K=false}}function $(){if(K){try{Xa.stopAmbientTrack()}catch(a){K=false}for(var b=0;b<5;b++)gc(b)}}
function Cb(a){if(K&&google.pacManSound)if(q==0)if(Va[a])Wa[a]=true;else{if(a==0){Z(Ca[a]==1?"eating-dot-1":"eating-dot-2",1+Ba[a],true);window.setInterval(hc,150)}else{Z("eating-dot-double",3+Ba[a],true);window.setInterval(ic,150)}Ba[a]=(Ba[a]+1)%2;Ca[a]=3-Ca[a]}}function jc(a){Va[a]=false;if(Wa[a]){Wa[a]=false;Cb(a)}}function hc(){jc(0)}function ic(){jc(1)}
function W(){if(K&&google.pacManSound){var a=0;if(q==0||q==1)a=ba?"ambient-eyes":n==4?"ambient-fright":z>241?"ambient-4":z>207?"ambient-3":z>138?"ambient-2":"ambient-1";else if(q==13)a="cutscene";if(a)try{Xa.playAmbientTrack(a)}catch(b){K=false}}}function fc(){window.clearInterval(Ya);Za=pb[$a];Pa=1E3/Za;Sa=T/Za;s={};for(var a in mb)s[a]=Math.round((!google.pacManSound&&(a==7||a==8)?1:mb[a])*T);Oa=(new Date).getTime();Ra=G=0;Ya=window.setInterval(ec,Pa)}
function kc(){if(L||cb)lc(0.67);if(L&&cb){lc(1);if(!bb){bb=true;var a=document.getElementById("logo-l");a.parentNode.removeChild(a);document.getElementById("logo").style.background="black";ab=document.createElement("style");ab.type="text/css";if(ab.styleSheet)ab.styleSheet.cssText="#pcm-c { width: 554px; border-top: 25px solid black; padding-bottom: 25px; height: 136px; position: relative; background: black; outline: 0; overflow: hidden; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}#pcm-c * { position: absolute; overflow: hidden;}#pcm-p,#pcm-cc { left: 45px; width: 464px; height: 136px; z-index: 99; overflow: hidden;}#pcm-p .pcm-d { width: 2px; height: 2px; margin-left: 3px; margin-top: 3px; background: #f8b090; z-index: 100;}#pcm-p .pcm-e { width: 8px; height: 8px; z-index: 101;}#pcm-sc-1 { left: 18px; top: 16px; width: 8px; height: 56px; position: absolute; overflow: hidden;}#pcm-sc-2 { left: 18px; top: 80px; width: 8px; height: 56px; position: absolute; overflow: hidden;}#pcm-le { position: absolute; left: 515px; top: 74px; height: 64px; width: 32px;} #pcm-le div { position: relative;}#pcm-sc-1-l { left: -2px; top: 0; width: 48px; height: 8px;}#pcm-sc-2-l { left: -2px; top: 64px; width: 48px; height: 8px;}#pcm-so { left: 7px; top: 116px; width: 12px; height: 12px; border: 8px solid black; cursor: pointer;}#pcm-li { position: absolute; left: 523px; top: 0; height: 80px; width: 16px;}#pcm-li .pcm-lif { position: relative; width: 16px; height: 12px; margin-bottom: 3px;}#pcm-p.blk .pcm-e { visibility: hidden;}#pcm-c .pcm-ac { width: 16px; height: 16px; margin-left: -4px; margin-top: -4px; z-index: 110;}#pcm-c .pcm-n { z-index: 111;}#pcm-c #pcm-stck { z-index: 109;}#pcm-c #pcm-gbug { width: 32px;}#pcm-c #pcm-bpcm { width: 32px; height: 32px; margin-left: -20px; margin-top: -20px;}#pcm-f,#pcm-le div { width: 32px; height: 16px; z-index: 105;}#pcm-f { margin-left: -8px; margin-top: -4px;}#pcm-do { width: 19px; height: 2px; left: 279px; top: 46px; overflow: hidden; position: absolute; background: #ffaaa5;}#pcm-re { width: 48px; height: 8px; z-index: 120; left: 264px; top: 80px;}#pcm-go { width: 80px; height: 8px; z-index: 120; left: 248px; top: 80px;}";
else ab.appendChild(document.createTextNode("#pcm-c { width: 554px; border-top: 25px solid black; padding-bottom: 25px; height: 136px; position: relative; background: black; outline: 0; overflow: hidden; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}#pcm-c * { position: absolute; overflow: hidden;}#pcm-p,#pcm-cc { left: 45px; width: 464px; height: 136px; z-index: 99; overflow: hidden;}#pcm-p .pcm-d { width: 2px; height: 2px; margin-left: 3px; margin-top: 3px; background: #f8b090; z-index: 100;}#pcm-p .pcm-e { width: 8px; height: 8px; z-index: 101;}#pcm-sc-1 { left: 18px; top: 16px; width: 8px; height: 56px; position: absolute; overflow: hidden;}#pcm-sc-2 { left: 18px; top: 80px; width: 8px; height: 56px; position: absolute; overflow: hidden;}#pcm-le { position: absolute; left: 515px; top: 74px; height: 64px; width: 32px;} #pcm-le div { position: relative;}#pcm-sc-1-l { left: -2px; top: 0; width: 48px; height: 8px;}#pcm-sc-2-l { left: -2px; top: 64px; width: 48px; height: 8px;}#pcm-so { left: 7px; top: 116px; width: 12px; height: 12px; border: 8px solid black; cursor: pointer;}#pcm-li { position: absolute; left: 523px; top: 0; height: 80px; width: 16px;}#pcm-li .pcm-lif { position: relative; width: 16px; height: 12px; margin-bottom: 3px;}#pcm-p.blk .pcm-e { visibility: hidden;}#pcm-c .pcm-ac { width: 16px; height: 16px; margin-left: -4px; margin-top: -4px; z-index: 110;}#pcm-c .pcm-n { z-index: 111;}#pcm-c #pcm-stck { z-index: 109;}#pcm-c #pcm-gbug { width: 32px;}#pcm-c #pcm-bpcm { width: 32px; height: 32px; margin-left: -20px; margin-top: -20px;}#pcm-f,#pcm-le div { width: 32px; height: 16px; z-index: 105;}#pcm-f { margin-left: -8px; margin-top: -4px;}#pcm-do { width: 19px; height: 2px; left: 279px; top: 46px; overflow: hidden; position: absolute; background: #ffaaa5;}#pcm-re { width: 48px; height: 8px; z-index: 120; left: 264px; top: 80px;}#pcm-go { width: 80px; height: 8px; z-index: 120; left: 248px; top: 80px;}"));
document.getElementsByTagName("head")[0].appendChild(ab);y=document.createElement("div");y.id="pcm-c";y.hideFocus=true;document.getElementById("logo").appendChild(y);y.tabIndex=0;y.focus();La=[];j=[];j[1]=2;j[2]=1;j[4]=8;j[8]=4;if(window.addEventListener){window.addEventListener("keydown",Kb,false);y.addEventListener("click",Mb,false);document.body.addEventListener("touchstart",Nb,true);y.addEventListener("touchstart",Nb,true);document.la&&document.la.pa&&document.la.pa.addEventListener("touchstart",
Nb,true)}else{document.body.attachEvent("onkeydown",Kb);y.attachEvent("onclick",Mb)}$a=0;Qa=true;fc();Wb()}}}function mc(){cb=true;kc()}function nc(a,b){if(a<b)return-1;else if(a>b)return 1;return 0}function oc(a){a=a.match(/[\d]+/g);a.length=3;return a.join(".")}function pc(){if(!bb){K=false;L=true;kc()}}function lc(a){a=Math.round(a*200);document.getElementById("logo-b").style.width=a+"px"}bb=false;document.getElementById("logo").title="";lc(0.33);google.pacman={};
google.pacman.insertCoin=function(){if(q==8||q==14)Wb();else if(g!=2){$();Y(12)}};google.pacman.flashLoaded=function(){if(N){var a=N.getElementById("pacman-sound-player");if(a&&a.playTrack){Xa=a;L=K=true;kc();return}else if((a=N.getElementById("pacman-sound-player-2"))&&a.playTrack){Xa=a;L=K=true;kc();return}}pc()};na=navigator.userAgent.indexOf("MSIE 5.")!=-1||navigator.userAgent.indexOf("MSIE 6.")!=-1||navigator.userAgent.indexOf("MSIE 7.")!=-1?false:true;cb=false;
var qc=new Image,rc=navigator.userAgent.indexOf("MSIE")!=-1;if(!rc)qc.onload=mc;qc.src="http://www.google.com/logos/pacman10-hp-sprite.png";rc&&mc();var sc=L=K=false,tc="";
if(navigator.plugins&&navigator.plugins.length){var uc=navigator.plugins["Shockwave Flash"];if(uc){sc=true;if(uc.description)tc=oc(uc.description)}if(navigator.plugins["Shockwave Flash 2.0"]){sc=true;tc="2.0.0.11"}}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var vc=navigator.mimeTypes["application/x-shockwave-flash"];if(sc=vc&&vc.enabledPlugin)tc=oc(vc.enabledPlugin.description)}else try{var wc=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");sc=true;tc=oc(wc.GetVariable("$version"))}catch(xc){try{wc=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");sc=true;tc="6.0.21"}catch(yc){try{wc=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");sc=true;tc=oc(wc.GetVariable("$version"))}catch(zc){}}}db=sc;eb=tc;var Ac;
if(!(Ac=!db)){for(var Bc=0,Cc=String(eb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),Dc=String("9.0.0.0").replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),Ec=Math.max(Cc.length,Dc.length),Fc=0;Bc==0&&Fc<Ec;Fc++){var Gc=Cc[Fc]||"",Hc=Dc[Fc]||"",Ic=new RegExp("(\\d*)(\\D*)","g"),Jc=new RegExp("(\\d*)(\\D*)","g");do{var Kc=Ic.exec(Gc)||["","",""],Lc=Jc.exec(Hc)||["","",""];if(Kc[0].length==0&&Lc[0].length==0)break;Bc=nc(Kc[1].length==0?0:parseInt(Kc[1],10),Lc[1].length==0?0:parseInt(Lc[1],10))||nc(Kc[2].length==
0,Lc[2].length==0)||nc(Kc[2],Lc[2])}while(Bc==0)}Ac=!(Bc>=0)}
if(Ac){L=true;kc()}else{M=document.createElement("iframe");M.name="pm-sound";M.style.position="absolute";M.style.top="-150px";M.style.border=0;M.style.width="100px";M.style.height="100px";document.body.appendChild(M);N=M.contentDocument;if(N==undefined||N==null)N=M.contentWindow.document;N.open();N.write('<html><head></head><body><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="0" height="0" id="pacman-sound-player" type="application/x-shockwave-flash"> <param name="movie" value="http://www.google.com/logos/swf/pacman10-hp-sound.swf"> <param name="allowScriptAccess" value="always"> <object id="pacman-sound-player-2" type="application/x-shockwave-flash" data="http://www.google.com/logos/swf/pacman10-hp-sound.swf" width="0" height="0"><param name="allowScriptAccess" value="always"> </object></object></body></html>');N.close();
window.setTimeout(pc,3E3)};

Henrique_GJ

Número de Mensagens : 1344
Idade : 19
Data de inscrição : 30/12/2009
Reputação : 4
Insignia 1 x 0 Insignia 2 x 0 Insignia 3 x 0
Prêmios
   :
   :
   :

http://sitedosjogos.forumeiros.com

Voltar ao Topo Ir em baixo

Re: homenagem do google ao pac man

Mensagem por Mr. Kaleb em Ter 01 Fev 2011, 13:50

Nossa, bem simples mesmo XD.
Ficou bem legalzinho, uma vez minha internet faltou quando entrei no Google e fiquei jogando ele umas duas horas hehe.

Mr. Kaleb

Ranking : Nota C
Número de Mensagens : 1400
Idade : 19
Data de inscrição : 07/09/2010
Notas recebidas : C
Reputação : 21
Insignia 1 x 0 Insignia 2 x 0 Insignia 3 x 0
Prêmios
   : 0
   : 0
   : 0

Voltar ao Topo Ir em baixo

Re: homenagem do google ao pac man

Mensagem por donte em Ter 01 Fev 2011, 14:40

ja teve um tópico sobre isso aqui henrique... e é bem old mesmo xD. mais ainda jogo esse jogo é bem legal jogar o do gologol

donte

Número de Mensagens : 1164
Idade : 18
Data de inscrição : 22/12/2009
Reputação : 0
Insignia 1 x 0 Insignia 2 x 0 Insignia 3 x 0
Prêmios
   :
   :
   :

http://nintendocenterbr.forumeiros.com

Voltar ao Topo Ir em baixo

Re: homenagem do google ao pac man

Mensagem por Henrique_GJ em Qua 02 Fev 2011, 08:00

alguem sabe COM QUE esse jogo foi feito? (flash, ou outra coisa?)

Henrique_GJ

Número de Mensagens : 1344
Idade : 19
Data de inscrição : 30/12/2009
Reputação : 4
Insignia 1 x 0 Insignia 2 x 0 Insignia 3 x 0
Prêmios
   :
   :
   :

http://sitedosjogos.forumeiros.com

Voltar ao Topo Ir em baixo

Re: homenagem do google ao pac man

Mensagem por Conteúdo patrocinado Hoje à(s) 10:31


Conteúdo patrocinado


Voltar ao Topo Ir em baixo

Ver o tópico anterior Ver o tópico seguinte Voltar ao Topo

- Tópicos similares

 
Permissão deste fórum:
Você não pode responder aos tópicos neste fórum