entre les étoiles
for (var i = 0; i < nb; i++) { off=(i*3); xs=coord[off];ys=coord[off+1];zs=coord[off+2]+520; tx=(ys*zin[az])+(xs*coz[az]); ty=(ys*coz[az])-(xs*zin[az]); yt=(zs*zin[ax])+(ty*coz[ax]); tz=(zs*coz[ax])-(ty*zin[ax]); xt=(tz*zin[ay])+(tx*coz[ay]); zt=(tz*coz[ay])-(tx*zin[ay]); if (zt==0) {zt=0.001;} temp=320/(320-zt); xd=(tax/2)+(xt*temp); yd=(tay/2)-(yt*temp); if (xd>=tax-16) {xd=tax-16;cacheObj(i);} if (yd>=tay-16) {yd=tay-16;cacheObj(i);} placeObj(i,xd+oax,yd+oay); coord[off]+=sx;coord[off+1]+=sy;coord[off+2]+=sz; if (coord[off]<=-520) {coord[off]=519;coord[off+1]=(Math.random()*1040)-520;coord[off+2]=(Math.random()*1040)-520;voirObj(i);} if (coord[off]>=520) {coord[off]=-519;coord[off+1]=(Math.random()*1040)-520;coord[off+2]=(Math.random()*1040)-520;voirObj(i);} if (coord[off+1]<=-520) {coord[off+1]=519;coord[off]=(Math.random()*1040)-520;coord[off+2]=(Math.random()*1040)-520;voirObj(i);} if (coord[off+1]>=520) {coord[off+1]=-519;coord[off]=(Math.random()*1040)-520;coord[off+2]=(Math.random()*1040)-520;voirObj(i);} if (coord[off+2]<=-520) {coord[off]=(Math.random()*1040)-520;coord[off+1]=(Math.random()*1040)-520;coord[off+2]=519;voirObj(i);} if (coord[off+2]>=520) {coord[off]=(Math.random()*1040)-520;coord[off+1]=(Math.random()*1040)-520;coord[off+2]=-519;voirObj(i);} } ax+=0;ay-=0;az+=1; if (ax>359) {ax=0} if (ay>359) {ay=0} if (az>359) {az=0} if (ax<0) {ax=359} if (ay<0) {ay=359} if (az<0) {az=359} tempo = setTimeout("starsfield()", 15); } function frapper(code) { switch (code) { case 100: // gauche sx-=1; break; case 102: // droite sx+=1; break; case 104: // haut sy-=1; break; case 98: // bas sy+=1 break; case 109: // + sz+=1; break; case 107: // - sz-=1; break; case 106: // * sx=0;sy=0;sz=0; break; /* pour netscape qui utilise le code ascii de la touche */ case 52: // gauche sx-=1; break; case 54: // droite sx+=1; break; case 56: // haut sy-=1; break; case 50: // bas sy+=1 break; case 43: // + sz-=1; break; case 45: // - sz+=1; break; case 42: // * sx=0;sy=0;sz=0; break; } } var userAgent=navigator.appName + " " + navigator.appVersion; var agentInfo=userAgent.substring(0, 12); if(agentInfo >= "Netscape 4.0") { document.captureEvents(Event.onkeypress); function toucheA(evnt) { frapper(evnt.which); } document.onkeypress = toucheA; } else { function toucheB() { frapper(event.keyCode); } document.onkeydown = toucheB; } starsfield();

 

 

 

 

Dan

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

logo Dan

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','width','26','height','28','src','etoile','quality','high','pluginspage','http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash','movie','etoile' ); //end AC code