"+msg+"




") // mw.document.close() document.all.Splash.innerHTML='

'+msg+'

' document.all.Splash.style.visibility="visible" 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=document.all.hisHead this.shirtLayer=document.all.hisShirt this.fistLLayer=document.all.hisLFist this.fistRLayer=document.all.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=this.headLayer.bgColor } function drawHim(bobFlag) { with (this) { if (isDead) return headLayer.bgColor=defColor if (health < 33) headLayer.src=image3.src else if (health < 66) headLayer.src=image2.src else headLayer.src=image1.src // health1.clip.width=foobar(health) document.all.health1.style.width=foobar(health) if (health < 0) { this.isDead=true headLayer.visibility="hidden" if (SND) sndfx.src="owlower.wav" 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) fistLLayer.src=punchL.src else fistLLayer.src=armL.src if (swingR) fistRLayer.src=punchR.src else fistRLayer.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) { my.fistLLayer.bgColor="red" my.fistRLayer.bgColor="red" my.health-=damage swingR=true if (SND) sndfx.src="thump.wav" } else if (Math.abs( posX+fistLOffsetX - my.posX ) < 48) { my.fistRLayer.bgColor="red" my.fistLLayer.bgColor="red" my.health-=damage swingL=true if (SND) sndfx.src="thump.wav" } else if (posX < my.posX) { swingL=true } else { swingR=true } my.animate(false) animate(false) setTimeout("hisUnswing()", 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=document.all.myLFist this.fistRLayer=document.all.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=this.fistRLayer.bgColor } function drawMe(bobFlag) { with (this) { if (isDead) return if (health < 0) { isDead=true fistRLayer.visibility="hidden" fistLLayer.visibility="hidden" if (SND) sndfx.src="owlower.wav" return } // health2.clip.width=foobar(health) document.all.health2.style.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) { fistRLayer.bgColor=defColor fistLLayer.bgColor=defColor posLayerAt(fistLLayer,posX+fistLOffsetX+fistLBobX, posY+fistOffsetY+fistLBobY) posLayerAt(fistRLayer,posX+fistROffsetX+fistRBobX, posY+fistOffsetY+fistRBobY) if (swingL) fistLLayer.src=punchL.src else fistLLayer.src=armL.src if (swingR) fistRLayer.src=punchR.src else fistRLayer.src=armR.src } } function mySwing() { if (his.isDead) return with (this) { if (swingL || swingR) return if (Math.abs( posX+fistLOffsetX - his.posX ) < 48) { his.headLayer.bgColor="red" his.health-=damage swingL=true if (SND) sndfx.src="thump.wav" } else if (Math.abs( posX+fistROffsetX - his.posX ) < 48) { his.headLayer.bgColor="red" his.health-=damage swingR=true if (SND) sndfx.src="thump.wav" } else if (posX < his.posX) { swingR=true } else { swingL=true } animate(false) his.animate(false) setTimeout("myUnswing()", 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() hisHead.style.visibility="visible" hisShirt.style.visibility="visible" hisLFist.style.visibility="visible" hisRFist.style.visibility="visible" myLFist.style.visibility="visible" myRFist.style.visibility="visible" his.animate(false) my.animate(false) setTimeout("theBell()",SUDELAY) } function theBell() { document.all.Splash.style.visibility="hidden" document.onmousedown=downMouse; document.onmousemove=trackMouse; // window.captureEvents(Event.MOUSEMOVE | Event.MOUSEDOWN); setTimeout("looper()",DELAY) } function looper() { if (my.isDead) { document.onmousemove="" document.onmousedown="" showmsg(his.name+" Kicked your Ass!

You lasted a total of " + his.round + " Rounds") return } if (his.isDead) { document.onmousemove="" document.onmousedown="" 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) { layer.left=x layer.top=y } function posLayerAt(layer,x,y) { cx=Math.floor(layer.width / 2) cy=Math.floor(layer.height / 2) layer.style.left=x - cx layer.style.top=y - cy } function trackMouse() { my.posX=event.screenX 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: