ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ ÀÌÌ  Ì " Ì " ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ ÌÌ ªÀª" ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ ªÌ ¬ªÌ  ª  *¢  ª¢ ÀÌÌÌÀÌÌÌ ÌÌ *"ª*"¬ª"À ªÌªªªÀ¬ ªÀ̪ ÀÌ  ÀÌÌÌÌÌÌÌÌÌÀÌ ª Ì ªªÀ ªªÀ ªªÀ ÌÌ ÀÌÌ  ÌÌ ÀÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ̪ ̬ªÀÀÀ  Ì ÀÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÀÌÌÌÀÌÌÌÀÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌû >À?ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À ÀÌÌÌÌÌÌÌÌÌÌÌ À ÀÌÌÌÌÌÌÌÌÌÌÌ À ÀÌÌÌÌÌÌÌÌÌÌÌ À ÀÌÌÌÌÌÌÌÌÌÌÌ À ÀÌÌÌÌÌÌÌÌÌÌ À ÀÌ ªÀÌÀÌÌÌÌ À ÀÌ ¢À ª ÌÌÌÌ À ÀÌ ¢ *¢ÀÌÌÌ À ÀÌ ªª ""ÀÌÌÌ À ÀÌÀªªª""ÀÌÌÌ À À ªÊª*Ì Ì À Àª" ª ÀÌ ªÀ À ª*ªªª ªª À ÀÌÌ̪  ªª À À ÌÌ̬ ªª À ÀÌÀÌ̬ Ì  À À ÀÌÌ̬ªÀÌ Ì À À ªÀ̪ ÀÌ À ÀÌ ÌÌÌ À ÀÌÌÌ ªÀ ÌÌÌ À ÀÌÌÌÌÌÌÌÌÌÌ À ÀÌÌÌÌÌÌÌÌÌÌÌ À ÀÌÌÌÌÌÌÌÌÌÌÌ À ÀÌÌÌÌÌÌÌÌÌÌÌ À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À À ÀÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ̇-- title: Marill generator -- author: gumshoos -- desc: Programming in lua -- license: MIT License (change this to your license of choice) -- version: 0.1 -- script: lua function rendermarill( x, y) local xarray ={x-8,x,x+8} local yarray ={y-8,y-8,y-8,y,y,y,y+8,y+8,y+8} --pain for i=0,8 do spr(i,xarray[(math.fmod((i),3)+1)],yarray[i+1]) end -- end for end -- end rendermarill function drawborder() --creates the border clockwise line(0,0,239,0,12) line(239,0,239,135,12) line(239,136,0,135,12) line(0,135,0,0,12) end --ends drawborder --lua doesnt have classes, you have to make a prototype object that instancs can copy --Pokemon gen1-5 mostly uses a Linear Congruential RNG. pokemon = { } x = 120 y = 120 xDirection = 1 yDirection = 1 function TIC() cls() x=x+xDirection if (x>225) then x = 225 xDirection =-1 end if (x<8) then x= 8 xDirection = 1 end y=y+yDirection if (y>119) then y=119 yDirection = -1 end if (y<8) then y = 8 yDirection = 1 end rendermarill(x,y) drawborder() end -- ends TIC --need to put all this in a function and base it around the middle rather than use 9 specific coords)