") // mw.document.close() document.layers["Splash"].document.close() document.layers["Splash"].document.writeln('<' + 'BODY BGCOLOR="white" TEXT="blue">

'+msg+'




') document.layers["Splash"].document.close() document.layers["Splash"].visibility="show" return } function loadOpponent() { with(this) { health=100 swingL=false swingR=false posX=300 posY=0 isDead=false round++ if (round==1) { name='Pucker "Nut-Boy" Brown' image1.src="head4.gif" image2.src="headb.gif" image3.src="headp.gif" damage=6 punchPct=75 sdelay=400 } else if (round==2) { name='Rheeneau "the Rhino"' image1.src="reno4.gif" image2.src="reno4b.gif" image3.src="renop.gif" damage=10 punchPct=65 sdelay=600 } else if (round==3) { name='Erwin "the Ear Biter"' image1.src="erwin4.gif" image2.src="erwinb.gif" image3.src="erwinp.gif" damage=15 punchPct=50 sdelay=1000 } else if (round==4) { name='Mark "the Meat Wagon"' image1.src="mark4.gif" image2.src="markb.gif" image3.src="markp.gif" damage=20 punchPct=25 sdelay=600 } else if (round==5) { name='Eileen "the Cleaner"' image1.src="eileen4.gif" image2.src="eileenb.gif" image3.src="eileenp.gif" damage=4 punchPct=95 sdelay=100 } else if (round==6) { name='Jambalaya Jackass' image1.src="jamie4.gif" image2.src="jamieb.gif" image3.src="jamiep.gif" damage=3 punchPct=50 sdelay=600 } showmsg("Round "+ round + "

Puppet Smasher
versus
" + name + "



Please wait...") } } function him() { this.posX=300 this.posY=0 this.isDead=false this.image1=new Image() this.image2=new Image() this.image3=new Image() this.name="Moose" this.armL=new Image() this.armR=new Image() this.armL.src="hisleft2.gif" this.armR.src="hisrght2.gif" this.punchL=new Image() this.punchR=new Image() this.punchL.src="hislfist.gif" this.punchR.src="hisrfist.gif" this.headLayer="hisHead" this.shirtLayer="hisShirt" this.fistLLayer="hisLFist" this.fistRLayer="hisRFist" this.headOffsetY=100 this.shirtOffsetY=200 this.fistOffsetY=125 this.fistLOffsetX=75 this.fistROffsetX=-75 this.round=0 this.health=100 this.damage=4 this.punchPct=50 this.sdelay=600 this.swingL=false this.swingR=false this.swinger=hisSwing this.unswing=hisUnswing this.animate=drawHim this.refresh=loadOpponent this.defColor=document[this.headLayer].document.bgColor } function drawHim(bobFlag) { with (this) { if (isDead) return document[headLayer].document.bgColor=defColor if (health < 33) document[headLayer].document.images[0].src=image3.src else if (health < 66) document[headLayer].document.images[0].src=image2.src else document[headLayer].document.images[0].src=image1.src document.layers["health1"].clip.width=foobar(health) if (health < 0) { this.isDead=true document[headLayer].visibility="hide" if (SND) document.layers["theRing"].document.embeds["owlower"].play() return } } if (bobFlag) { headBobX=(nrand(3)-2)*(nrand(10)) headBobY=(nrand(3)-2)*(nrand(10)) shirtBobX=(nrand(3)-2)*(nrand(10)) shirtBobY=(nrand(3)-2)*(nrand(10)) fistLBobX=(nrand(3)-2)*(nrand(10)) fistLBobY=(nrand(3)-2)*(nrand(10)) fistRBobX=(nrand(3)-2)*(nrand(10)) fistRBobY=(nrand(3)-2)*(nrand(10)) } else { headBobX=0 headBobY=0 shirtBobX=0 shirtBobY=0 fistLBobX=0 fistLBobY=0 fistRBobX=0 fistRBobY=0 } with (this) { posX+=(nrand(3)-2)*(nrand(10)+10) if (posX < 0) posX=0 if (posX >600) posX=600 posLayerAt(headLayer,posX+headBobX, posY+headOffsetY+headBobY) posLayerAt(shirtLayer,posX+shirtBobX, posY+shirtOffsetY+shirtBobY) posLayerAt(fistLLayer,posX+fistLOffsetX+fistLBobX, posY+fistOffsetY+fistLBobY) posLayerAt(fistRLayer,posX+fistROffsetX+fistRBobX, posY+fistOffsetY+fistRBobY) if (swingL) document[fistLLayer].document.images[0].src=punchL.src else document[fistLLayer].document.images[0].src=armL.src if (swingR) document[fistRLayer].document.images[0].src=punchR.src else document[fistRLayer].document.images[0].src=armR.src } } function hisSwing() { if (my.isDead) { my.animate(false) return } with (this) { if (swingL || swingR) return if (Math.abs( posX+fistROffsetX - my.posX ) < 48) { document[my.fistLLayer].document.bgColor="red" document[my.fistRLayer].document.bgColor="red" my.health-=damage swingR=true if (SND) document.layers["theRing"].document.embeds["thump"].play() } else if (Math.abs( posX+fistLOffsetX - my.posX ) < 48) { document[my.fistRLayer].document.bgColor="red" document[my.fistLLayer].document.bgColor="red" my.health-=damage swingL=true if (SND) document.layers["theRing"].document.embeds["thump"].play() } else if (posX < my.posX) { swingL=true } else { swingR=true } my.animate(false) animate(false) setTimeout(unswing, sdelay) } } function hisUnswing() { his.swingL=false his.swingR=false his.animate(false) my.animate(false) } function refreshMe() { with (this) { posX=300 posY=0 isDead=false health=100 swingL=false swingR=false } } function me() { this.posX=300 this.posY=0 this.isDead=false this.armL=new Image() this.armR=new Image() this.armL.src="myleft3.gif" this.armR.src="myrght3.gif" this.punchL=new Image() this.punchR=new Image() this.punchL.src="mylfist.gif" this.punchR.src="myrfist.gif" this.fistLLayer="myLFist" this.fistRLayer="myRFist" this.fistLOffsetX=-75 this.fistROffsetX=75 this.fistOffsetY=150 this.health=100 if ((document.location.search).indexOf("penis")>0) this.damage=30 else this.damage=9 this.animate=drawMe this.sdelay=600 this.refresh=refreshMe this.swingL=false this.swingR=false this.swinger=mySwing this.unswing=myUnswing this.defColor=document[this.fistRLayer].document.bgColor } function drawMe(bobFlag) { with (this) { if (isDead) return if (health < 0) { isDead=true document[fistRLayer].visibility="hide" document[fistLLayer].visibility="hide" if (SND) document.layers["theRing"].document.embeds["owlower"].play() return } document.layers["health2"].clip.width=foobar(health) } if (bobFlag) { fistLBobX=(nrand(3)-2)*(nrand(10)) fistLBobY=(nrand(3)-2)*(nrand(10)) fistRBobX=(nrand(3)-2)*(nrand(10)) fistRBobY=(nrand(3)-2)*(nrand(10)) } else { fistLBobX=0 fistLBobY=0 fistRBobX=0 fistRBobY=0 } with (this) { document[fistRLayer].document.bgColor=defColor document[fistLLayer].document.bgColor=defColor posLayerAt(fistLLayer,posX+fistLOffsetX+fistLBobX, posY+fistOffsetY+fistLBobY) posLayerAt(fistRLayer,posX+fistROffsetX+fistRBobX, posY+fistOffsetY+fistRBobY) if (swingL) document[fistLLayer].document.images[0].src=punchL.src else document[fistLLayer].document.images[0].src=armL.src if (swingR) document[fistRLayer].document.images[0].src=punchR.src else document[fistRLayer].document.images[0].src=armR.src } } function mySwing() { if (his.isDead) return with (this) { if (swingL || swingR) return if (Math.abs( posX+fistLOffsetX - his.posX ) < 48) { document[his.headLayer].document.bgColor="red" his.health-=damage swingL=true if (SND) document.layers["theRing"].document.embeds["thump"].play() } else if (Math.abs( posX+fistROffsetX - his.posX ) < 48) { document[his.headLayer].document.bgColor="red" his.health-=damage swingR=true if (SND) document.layers["theRing"].document.embeds["thump"].play() } else if (posX < his.posX) { swingR=true } else { swingL=true } animate(false) his.animate(false) setTimeout(unswing, sdelay) } } function myUnswing() { my.swingL=false my.swingR=false my.animate(false) his.animate(false) } function initialize() { his=new him() his.refresh() my=new me() my.refresh() setTimeout("setupdelay()",SUDELAY) } function setupdelay() { showmsg("Setup Complete...Let's get it On!") //mw.close() document.hisHead.visibility="show" document.hisShirt.visibility="show" document.hisLFist.visibility="show" document.hisRFist.visibility="show" document.myLFist.visibility="show" document.myRFist.visibility="show" his.animate(false) my.animate(false) setTimeout("theBell()",SUDELAY) } function theBell() { document.layers["Splash"].visibility="hide" window.onMouseMove=trackMouse; window.onMouseDown=downMouse; window.captureEvents(Event.MOUSEMOVE | Event.MOUSEDOWN); setTimeout("looper()",DELAY) } function looper() { if (my.isDead) { window.releaseEvents(Event.MOUSEMOVE | Event.MOUSEDOWN); showmsg(his.name+" Kicked your Ass!

You lasted a total of " + his.round + " Rounds") return } if (his.isDead) { window.releaseEvents(Event.MOUSEMOVE | Event.MOUSEDOWN); if (his.round==6) { showmsg("Way to go CHAMP!
You kicked Primitive Puppet ASS") return } his.refresh() my.refresh() setTimeout("setupdelay()",SUDELAY) return } if (!his.swingL && !his.swingR) { if (nrand(100) < his.punchPct) { if (Math.abs( his.posX - my.posX ) < 150) { his.swinger() } } } his.animate(true) my.animate(true) setTimeout("looper()",DELAY) } function posLayer(layer,x,y) { document[layer].left=x document[layer].top=y } function posLayerAt(layer,x,y) { cx=Math.floor(document[layer].clip.width / 2) cy=Math.floor(document[layer].clip.height / 2) document[layer].left=x - cx document[layer].top=y - cy } function trackMouse(evnt) { my.posX=evnt.pageX if (my.posX < 0) my.posX=0 if (my.posX >600) my.posX=600 my.animate(false) return true; } function downMouse(evnt) { my.swinger() return true; } //window.onMouseMove=trackMouse; //window.onMouseDown=downMouse;




 His Health:



Your Health: