0,]']±>Sï}WÿÍu§ðp8·d%qy)6o;]ÉA¦ösï÷ôôô”°ÂVl†3>?????????ðððððððððððððððððÿÿÿÿÿÿÿÿÿÿÿÿÿ ???ô?Õ?¶?¨?©9ª6ª0«0«0«0ª0ª0º6¹<È?è?÷???????????°AAA"AAAAAA"AAAA A A A"AAAA03À?ÌÌÁÌÌ333333333333333333333333Ì"ÁÌ"Ì!ÌÌ!ÂÌÌÂÌ!"!"!"!"!"!"!"!CD33CD33CD33CD33CD33CD33"!"!"!"!"!"!"!"!"!"!"!"!ÌÌÌÌÁÌ33C433C433C433C433C433C4ÌÌ!ÌÌÌ!Á,ÌÌ!!!!!!!!333333333333333333333333!!!!!!!!!!!!Ì,ÂÌÁÌ"Ì!,ÂÌ,ÌÂÌ,""!""!""!""!""!""!""!"CD33CD33CD33CD33CD33CD33"!""!""!""!""!""!""!""!""!""!""!""!"333333333333333333333333"!"!"!"!"!"!"!"!"!"!"!"!D433D433D433D433D433D433"!"!"!"!"!"!"!"!"!"!"!"!33D433D433ªªª3D433D433D43333333333Šˆ¨33333333333"!"!"!"!"!"!"!"!"!"!"!"!CD33CD33CDªªªD33CD33CD33"!"!"!"!"!"!"!"!"!"!"!"!ÌÌÂÌÂÁÌ33C433C433I4“3C433C433C4ÌÁ!Á!ÌÌÌÁÌÁ!!!!!!!!333333333“33393333333333!!!!!!!!!!!!Ì!ÌÂ!Ì"ÂÌ""Ì,,!""!""!""!""!""!""!""!"CD33CD33C”33CI33CD33CD33"!""!""!""!""!""!""!""!""!""!""!""!"ÌÁÌÂÌÁÌÂÌ333333333“33393333333333Ì"ÌÌÁÌÂÌ,Â,ÂÌ"!"!"!"!"!"!"!"!D433D433D433D433D433D433"!"!"!"!"!"!"!"!"!"!"!"!33D433D433D433D433D433D4333333333333333333333333"!"!"!"!"!"!"!"!"!"!"!"!CD33CD33CD33CD33CD33CD33"!"!"!"!"!"!"!"!"!"!"!"!33C433C433C433C433C433C4!!!!!!!!!!!!333333333333333333333333!!!!!!!!!!!!"!""!""!""!""!""!""!""!""!""!""!""!"CD33CD33CD33CD33CD33CD33"!""!""!""!""!""!""!""!""!""!""!""!"333333333333333333333333"!"!"!"!"!"!"!"!"!"!"!"!D433D433D433D433D433D433"!"!"!"!"!"!"!"!"!"!"!"!33D433D433D433D433D433D4333333333333333333333333"!"!"!"!"!"!"!"!"!"!"!"!CD33CD33CD33CD33CD33CD33"!"!"!"!"!"!"!"!"!"!"!"!33C433C433C433C433C433C4!!!!!!!!!!!!333333333333333333333333!!!!!!!!!!!!"!""!""!""!""!""!""!""!""!""!""!""!"CD33CD33CD33CD33CD33CD33"!""!""!""!""!""!""!""!""!""!""!""!"333333333333333333333333"!"!"!"!"!"!"!"!"!"!"!"!D433D433D433D433D433D433"!"!"!"!"!"!"!"!"!"!"!"!33D433D433D433D433D433D4333333333333333333333333"!"!"!"!"!"!"!"!"!"!"!"!CD33CD33CD33CD33CD33CD33"!"!"!"!"!"!"!"!"!"!"!"!33C433C433C433C433C433C4!!!!!!!!!!!!333333333333333333333333!!!!!!!!!!!!"!""!""!""!""!""!""!""!""!""!""!""!"CD33CD33CD33CD33CD33CD33"!""!""!""!""!""!""!""!""!""!""!""!"333333333333333333333333"!"!"!"!"!"!"!"!"!"!"!"!D433D433D433D433D433D433"!"!"!"!"!"!"!"!"!"!"!"!33D433D433D433D433D433D4333333333333333333333333"!"!"!"!"!"!"!"!"!"!"!"!CD33CD33CD33CD33CD33CD33"!"!"!"!"!"!"!"!"!"!"!"!33C433C433C433C433C433C4!!!!!!!!!!!!333333333333333333333333!!!!!!!!!!!!"!""!""!""!""!""!""!""!""!""!""!""!"CD33CD33CD33CD33CD33CD33"!""!""!""!""!""!""!""!""!""!""!""!"333333333333333333333333"!"!"!"!"!"!"!"!"!"!"!"!D433D433D433D433D433D433"!"!"!"!"!"!"!"!"!"!"!"!33D433D433D433D433D433D4333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD3333C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C4333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D43333D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D4333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD3333C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C4333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D43333D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D4333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD3333C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C4333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333D433D433D433D433D433D433D433D433D433D433D433D433D433D433Dtwww733D433D433D433D433D433D433D433D433D433D433D433D433D433D43333D433D433D433D433D433D433D433D433D433D433D433D433D433D43swww7D433D433D433D433D433D433D433D433D433D433D433D433D433D433D4333333333333333333333333333333333333333333333333333333333swww73333333333333333333333333333333333333333333333333333333333CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CtwpG33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD3333C¤ªªJ433C433C433C433C433C433C433C433C433C433C433C433C43swp7C433C433C433C433C433C433C433C433C433C433C433C433C4ªªª433C4333£ˆˆ:33333333333333333333333333333333333333333333333333svwg733333333333333333333333333333333333333333333333333Šˆ¨33333CD3£ªª:3CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CtwwwG33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33ªªª3CD33333“33933333333333333333333333333333333333333333333333333swww73333333333333333333333333333333333333333333333333393“33333D439D4“3D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D43“D439D43333D933”433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D”33D933D4333933“33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333“33393333CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD3333C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C4333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D43333D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D4333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD3333C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C433C4333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33CD33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D43333D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D433D4333333333333333333333333"!"!"!"!"!"!"!"!"!"!"!"!CD33CD33CD33CD33CD33CD33"!"!"!"!"!"!"!"!"!"!"!"!33C433C433C433C433C433C4!!!!!!!!!!!!333333333333333333333333!!!!!!!!!!!!"!""!""!""!""!""!""!""!""!""!""!""!"CD33CD33CD33CD33CD33CD33"!""!""!""!""!""!""!""!""!""!""!""!"333333333333333333333333"!"!"!"!"!"!"!"!"!"!"!"!D433D433D433D433D433D433"!"!"!"!"!"!"!"!"!"!"!"!33D433D433D433D433D433D4333333333333333333333333"!"!"!"!"!"!"!"!"!"!"!"!CD33CD33CD33CD33CD33CD33"!"!"!"!"!"!"!"!"!"!"!"!33C433C433C433C433C433C4!!!!!!!!!!!!333333333333333333333333!!!!!!!!!!!!"!""!""!""!""!""!""!""!""!""!""!""!"CD33CD33CD33CD33CD33CD33"!""!""!""!""!""!""!""!""!""!""!""!"333333333333333333333333"!"!"!"!"!"!"!"!"!"!"!"!D433D433D433D433D433D433"!"!"!"!"!"!"!"!"!"!"!"!33D433D433D433D433D433D4333333333333333333333333"!"!"!"!"!"!"!"!"!"!"!"!CD33CD33CD33CD33CD33CD33"!"!"!"!"!"!"!"!"!"!"!"!33C433C433C433C433C433C4!!!!!!!!!!!!333333333333333333333333!!!!!!!!!!!!"!""!""!""!""!""!""!""!""!""!""!""!"CD33CD33CD33CD33CD33CD33"!""!""!""!""!""!""!""!""!""!""!""!"333333333333333333333333"!"!"!"!"!"!"!"!"!"!"!"!D433D433D433D433D433D433"!"!"!"!"!"!"!"!"!"!"!"!33D433D433D433D433D433D4âîîîîîîîîîîîîîîîîîîîîîîîî333333333333333333333333"âîîîîîîîîîîîîîîîîîîîîîîîî."!"!"!"!"!CD33CD33CD33CD33CD33CD33"!"!"!"!"!"!"!"!"!"!"!"!áîîffffffffffffffffffffîî33C433C433C433C433C433C4áîîffffffffffffffffffffîî!!!!!333333333333333333333333!!!!!!!!!!!!"áîîffffffffffffffffffffîî."!""!""!""!""!"CD33CD33CDªªªD33CD33CD33"!""!""!""!""!""!""!""!""!""!""!""!"áîîffffffffffffffffffffîî3333333333Šˆ¨33333333333"âîîffffffffffffffffffffîî."!"!"!"!"!D433D433D4ªªª433D433D433"!"!"!"!"!"!"!"!"!"!"!"!âîîffffffffffffffffffffîî33D433D433I4“3D433D433D4âîîffffffffffffffffffffîî333333333“33393333333333"âîîîîîîîîîîîîîîîîîîîîîîîî."!"!"!"!"!CD33CD33C”33CI33CD33CD33"!"!"!"!"!"!"!"!"!"!"!"!áîîîîîîîîîîîîîîîîîîîîîîîî33C433C43“C439C433C433C4!!!!!!!!!!!!333333333333333333333333!!!!!!!!!!!!"!""!""!""!""!""!""!""!""!""!""!""!"CD33CD33CD33CD33CD33CD33"!""!""!""!""!""!""!""!""!""!""!""!"333333333333333333333333"!"!"!"!"!"!"!"!"!"!"!"!D433D433D433D433D433D433"!"!"!"!"!"!"!"!"!"!"!"!33D433D433D433D433D433D4H -- title: Blue Monsters -- author: Beanum -- desc: survival -- site: website link -- license: MIT License (change this to your license of choice) -- version: origional 0.1 -- script: lua t=0 x=115 y=70 Round=1 shot=false fx=x fy=y shot2=false bx=x by=y shot3=false lx=x ly=y shot4=false rx=x ry=y mon1x=5 mon1y=75 mon2x=225 mon2y=75 mon3x=115 mon3y=125 mon4x=115 mon4y=5 life=true life2=true life3=true life4=true speed=0.3 health=40 kills=0 alive=true spawn=true attack=false attack2=false attack3=false attack4=false R=0 function TIC() t=t+1 R=R+0.1 map() mx,my,ml=mouse() if shot==true then spr(2,fx,fy,14,1,0,0,1,1) end if shot2==true then spr(2,bx,by,14,1,0,0,1,1) end if shot3==true then spr(2,lx,ly,14,1,0,0,1,1) end if shot4==true then spr(2,rx,ry,14,1,0,0,1,1) end print("Kills:"..kills,0,10,12) print("Round:"..Round,0,0,12) spr(1,x,y,14,1,0,0,1,1) beforemovement() --shooting throw() --monsters monsterspawn() --healthpoints healthbar() hurt() end function beforemovement() if key(23) then playercollision(0,-1) end if key(19) then playercollision(0,1) end if key(1) then playercollision(-1,0) end if key(4) then playercollision(1,0) end end --vvvv every few sec spawn monster vvvv function monsterspawn() if life==false then attack=false end if life2==false then attack2=false end if life4==false then attack3=false end if life3==false then attack4=false end if life==true then bigLmon() end if life2==true then bigRmon() end if life4==true then bigTmon() end if life3==true then bigBmon() end if life==false and life2==false and life3==false and life4==false then Round=Round+1 speed=speed+0.01 mon1x=5 mon1y=75 mon2x=225 mon2y=75 mon3x=115 mon3y=125 mon4x=115 mon4y=5 life=true life2=true life3=true life4=true end end --monster code ------------------------------------------ function bigLmon() if life==false then return end monwalk() drawmon() --hitbox\ if overlap(mon1x,mon1y,8,8,x,y,8,8) then attack=true else attack=false end if overlap(mon1x,mon1y,8,8,fx+3,fy+3,2,2) and shot==true then life=false shot=false kills=kills+1 elseif overlap(mon1x,mon1y,8,8,bx+3,by+3,2,2) and shot2==true then life=false shot2=false kills=kills+1 elseif overlap(mon1x,mon1y,8,8,lx+3,ly+3,2,2) and shot3==true then life=false shot3=false kills=kills+1 elseif overlap(mon1x,mon1y,8,8,rx+3,ry+3,2,2) and shot4==true then life=false shot4=false kills=kills+1 end end function bigRmon() if life2==false then return end monwalk2() drawmon() --hitbox\ if overlap(mon2x,mon2y,8,8,x,y,8,8) then attack2=true else attack2=false end if overlap(mon2x,mon2y,8,8,fx+3,fy+3,2,2) and shot==true then life2=false shot=false kills=kills+1 elseif overlap(mon2x,mon2y,8,8,bx+3,by+3,2,2) and shot2==true then life2=false shot2=false kills=kills+1 elseif overlap(mon2x,mon2y,8,8,lx+3,ly+3,2,2) and shot3==true then life2=false shot3=false kills=kills+1 elseif overlap(mon2x,mon2y,8,8,rx+3,ry+3,2,2) and shot4==true then life2=false shot4=false kills=kills+1 end end function bigTmon() if life4==false then return end monwalk4() drawmon() --hitbox\ if overlap(mon4x,mon4y,8,8,x,y,8,8) then attack3=true else attack3=false end if overlap(mon4x,mon4y,8,8,fx+3,fy+3,2,2) and shot==true then life4=false shot=false kills=kills+1 elseif overlap(mon4x,mon4y,8,8,bx+3,by+3,2,2) and shot2==true then life4=false shot2=false kills=kills+1 elseif overlap(mon4x,mon4y,8,8,lx+3,ly+3,2,2) and shot3==true then life4=false shot3=false kills=kills+1 elseif overlap(mon4x,mon4y,8,8,rx+3,ry+3,2,2) and shot4==true then life4=false shot4=false kills=kills+1 end end function bigBmon() if life3==false then return end monwalk3() drawmon() --hitbox\ if overlap(mon3x,mon3y,8,8,x,y,8,8) then attack4=true else attack4=false end if overlap(mon3x,mon3y,8,8,fx+3,fy+3,2,2) and shot==true then life3=false shot=false kills=kills+1 elseif overlap(mon3x,mon3y,8,8,bx+3,by+3,2,2) and shot2==true then life3=false shot2=false kills=kills+1 elseif overlap(mon3x,mon3y,8,8,lx+3,ly+3,2,2) and shot3==true then life3=false shot3=false kills=kills+1 elseif overlap(mon3x,mon3y,8,8,rx+3,ry+3,2,2) and shot4==true then life3=false shot4=false kills=kills+1 end end function monwalk() if mon1xx then mon1x=mon1x-speed end if mon1yy then mon1y=mon1y-speed end end function monwalk2() if mon2xx then mon2x=mon2x-speed end if mon2yy then mon2y=mon2y-speed end end function monwalk3() if mon3xx then mon3x=mon3x-speed end if mon3yy then mon3y=mon3y-speed end end function monwalk4() if mon4xx then mon4x=mon4x-speed end if mon4yy then mon4y=mon4y-speed end end function drawmon() if life==true then spr(17+t%60//30*1,mon1x,mon1y,14,1,0,0,1,1) else spr(19,mon1x,mon1y,14)end if life2==true then spr(17+t%60//30*1,mon2x,mon2y,14,1,0,0,1,1) else spr(19,mon2x,mon2y,14)end if life3==true then spr(17+t%60//30*1,mon3x,mon3y,14,1,0,0,1,1) else spr(19,mon3x,mon3y,14)end if life4==true then spr(17+t%60//30*1,mon4x,mon4y,14,1,0,0,1,1) else spr(19,mon4x,mon4y,14)end end ---------------------------------------------- function healthbar() rect(5,120,50,11,14) rect(10,122,health,7,6) if health>0 then alive=true else alive=false end if alive==false then cls(0) y=12345678900 spr(4,115,60) print("Game Over",40,20,2,false,3) print("Kills:"..kills,0,10,3) print("Round:"..Round,0,0,3) end if alive==false and (time()%500>250) then print ("Press K to restart",70,70,3) end if key(11) then t=0 x=115 y=70 Round=1 shot=false fx=x fy=y shot2=false bx=x by=y shot3=false lx=x ly=y shot4=false rx=x ry=y mon1x=5 mon1y=75 mon2x=225 mon2y=75 mon3x=115 mon3y=125 mon4x=115 mon4y=5 life=true life2=true life3=true life4=true speed=0.3 health=40 kills=0 alive=true spawn=true attack=false attack2=false attack3=false attack4=false R=0 map()end end function hurt() if attack==true or attack2==true or attack3==true or attack4==true then health=health-0.2 end end function throw() if shot==false then fx=x fy=y end if btn(0) and shot2==false and shot3==false and shot4==false then sfx(0,25,-1,0,10,4) shot=true end if fy==y-70 then shot=false end if shot==true then fy=fy-1 end if shot2==false then bx=x by=y end if btn(1) and shot==false and shot3==false and shot4==false then sfx(0,25,-1,0,10,4) shot2=true end if by==y+70 then shot2=false end if shot2==true then by=by+1 end if shot3==false then lx=x ly=y end if btn(2) and shot2==false and shot==false and shot4==false then sfx(0,25,-1,0,10,4) shot3=true end if lx==x-70 then shot3=false end if shot3==true then lx=lx-1 end if shot4==false then rx=x ry=y end if btn(3) and shot2==false and shot3==false and shot==false then sfx(0,25,-1,0,10,4) shot4=true end if rx==x+70 then shot4=false end if shot4==true then rx=rx+1 end end function overlap(x1,y1,w1,h1,x2,y2,w2,h2) local left1=x1 local top1=y1 local right1=x1+w1 local bottom1=y1+h1 local left2=x2 local top2=y2 local right2=x2+w2 local bottom2=y2+h2 local overlapX=(left1left2) local overlapY=(top1top2) if overlapX and overlapY then return true else return false end end function playercollision(distancex,distancey) local playerx=x local playery=y local playerw=8 local playerh=8 local nextx=playerx+distancex local nexty=playery+distancey --brick walls if overlap(nextx,nexty,playerw,playerh, 0,0,96,48) then return end if overlap(nextx,nexty,playerw,playerh, 144,0,96,48) then return end if overlap(nextx,nexty,playerw,playerh, 0,96,96,48) then return end if overlap(nextx,nexty,playerw,playerh, 144,96,96,48) then return end --border if overlap(nextx,nexty,playerw,playerh, 0,0,265,2) then return end if overlap(nextx,nexty,playerw,playerh, 0,134,265,2) then return end if overlap(nextx,nexty,playerw,playerh, 238,0,2,482) then return end if overlap(nextx,nexty,playerw,playerh, 0,0,2,482) then return end x=nextx y=nexty end