Yeni27
BRICK KILLER
10 puan 20 puan 30 puan |
<BODY bgColor=#000000 onload=javascript:tophareket()>
<DIV align=left><FONT color=#c0c0c0 size=+1>BRICK KILLER</FONT></DIV>
<TABLE>
<TBODY>
<TR>
<TD id=yazan style="LEFT: 250px; POSITION: absolute; TOP: 0px"></TD>
<TD align=middle width=100 bgColor=#808000>
<HR width=30 color=#008000 SIZE=10>
<FONT color=#ffffff>10 puan</FONT>
<HR width=30 color=#ff00ff SIZE=10>
<FONT color=#ffffff>20 puan</FONT>
<HR width=30 color=#ff0000 SIZE=10>
<FONT color=#ffffff>30 puan</FONT> <BR><BR>
<DIV id=levelx
style="FONT-WEIGHT: bold; FONT-SIZE: small; COLOR: white; FONT-STYLE: normal; FONT-FAMILY: Times, serif"></DIV></TD></TR></TBODY></TABLE>
<TABLE>
<TBODY>
<TR>
<TD id=score
style="FONT-WEIGHT: bold; FONT-SIZE: small; COLOR: white; FONT-STYLE: normal; FONT-FAMILY: Times, serif; BACKGROUND-COLOR: black"></TD></TR></TBODY></TABLE>
<TABLE style="LEFT: 200px; POSITION: absolute; TOP: 100px" height=350
cellSpacing=0 cellPadding=0 width=410 align=center border=1>
<TBODY>
<TR borderColor=#000000>
<TD onmousemove=javascript:mousehareket() id=tablo borderColor=#000000
width=400 bgColor=#828282 height=430></TD></TR></TBODY></TABLE>
<DIV id=yem style="LEFT: 250px; POSITION: absolute; TOP: 250px" width="30">
<HR width=30 color=#008000 SIZE=10>
</DIV>
<DIV id=yem2 style="LEFT: 250px; POSITION: absolute; TOP: 250px" width="30">
<HR width=30 color=#ff00ff SIZE=10>
</DIV>
<DIV id=yem3 style="LEFT: 250px; POSITION: absolute; TOP: 250px" width="30">
<HR width=30 color=#ff0000 SIZE=10>
</DIV><<DIV id=topz style="LEFT: 250px; POSITION: absolute; TOP: 250px">
<HR width=10 color=#00ffff SIZE=10>
</DIV>
<DIV id=raket style="LEFT: 250px; POSITION: absolute; TOP: 500px">
<HR width=80 color=#ffff00 SIZE=14>
</DIV>
<SCRIPT language=JavaScript1.2>
<!--
this.yazan.innerHTML=" adet tuğla var. Dileyen kod ekleyerek arttırabilir. Ben random la yer belirledim.<br>Raketin boyu 80 dir. Mouse''a sabitlerken raketi ortalamak için -40 kullandım!!!<br> score 200 den buyukse topun hareket hizi level ivmesi ile çarpılıyor.Buda hızı level oranında arttırıyor.";
var level=1;var hiz=250;var yuk=120;var hbuyu=8;var ybuyu=8;var a;var bx1,bx2;var sa;var scor=0;
var yemx=200+Math.random()*370;var yemy=130+Math.random()*150;this.yem.style.left=eval(yemx);this.yem.style.top=eval(yemy);
var yem2x=200+Math.random()*370;var yem2y=230+Math.random()*150;this.yem2.style.left=eval(yem2x);this.yem2.style.top=eval(yem2y);
var yem3x=200+Math.random()*370;var yem3y=330+Math.random()*150;this.yem3.style.left=eval(yem3x);this.yem3.style.top=eval(yem3y);
this.score.innerHTML=scor;this.levelx.innerHTML="LEVEL: "+Math.round(level);this.yazan.style.color="gray";this.tablo.style.cursor="crosshair";
function tophareket()
{if (scor>200){level=scor/200;this.levelx.innerHTML="LEVEL: "+Math.round(level);}
this.score.innerHTML="SCORE= "+scor;hiz+=hbuyu*level;yuk+=ybuyu*level;
if (hiz>600){hbuyu=-10;}if (hiz<200){hbuyu=10;}if (yuk>520){ybuyu=-10;scor-=50;}if (yuk<110){ybuyu=10;}
topz.style.left=hiz;topz.style.top=yuk;setTimeout("tophareket()",5);
if (hiz>eval(yemx)-20){if (hiz<eval(yemx)+20){if (yuk>eval(yemy)-20){if (yuk<eval(yemy)+20){
scor+=10;yemx=200+Math.random()*370;yemy=130+Math.random()*150;this.yem.style.left=eval(yemx);this.yem.style.top=eval(yemy);}}}}
if (hiz>eval(yem2x)-20){if (hiz<eval(yem2x)+20){if (yuk>eval(yem2y)-20){if (yuk<eval(yem2y)+20){
scor+=20;yem2x=200+Math.random()*370;yem2y=230+Math.random()*150;this.yem2.style.left=eval(yem2x);this.yem2.style.top=eval(yem2y);}}}}
if (hiz>eval(yem3x)-20){if (hiz<eval(yem3x)+20){if (yuk>eval(yem3y)-20){if (yuk<eval(yem3y)+20){
scor+=30;yem3x=200+Math.random()*370;yem3y=330+Math.random()*150;this.yem3.style.left=eval(yem3x);this.yem3.style.top=eval(yem3y);}}}}
bx1=this.raket.style.left;
sa=bx1.split("px");
bx1=eval(sa[0]);bx2=eval(bx1)+80;
if (hiz>(bx1)){if (hiz<(bx2)){if (yuk>470){if (yuk<500){if (hiz>eval(bx1+60)){hbuyu=15;}
if (hiz>eval(bx1+40)){if (hiz<eval(bx1+60)){hbuyu=10;}}if (hiz<eval(bx1+20)){hbuyu=-15;}
if (hiz>eval(bx1+20)){if (hiz<eval(bx1+40)){hbuyu=-10;}}ybuyu=-10;}}}}}
function mousehareket()
{a=event.x;this.raket.style.left=a-40;}
-->
</SCRIPT>