面面面面面面面面面 戚�� � " � " 面面面面面面面面面面� 面����" 面面面面面面面面面面面面面面面面面��� ������ �*����� 戚面戚面 面 *"�*"��"���蜜��征 �戚��戚 �戚面面面面戚 � ������������� 面 戚�� 面 �面面面面面面面面面面蜜 蓑��誓� � 戚面面面面面面面戚面戚面戚面面面面面面面面面� >�?面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面 � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 戚面面面面面 � 戚面面面面面 � 戚面面面面面 � 戚面面面面面 � 戚�面面面面 � 戚 �戚戚面� � 戚 ∪ � 面面 � 戚 ��*∪面� � 戚 ���""戚面 � 戚勢��""戚面 � � �物*� � � ��" � 戚��� � �*��� �� � �面蜜� �� � � 面蓑 �� � 戚戚蓑 ���� � 戚面��戚 � � � �戚� 戚 � 戚 面� � 戚面 �� 面� � 戚面�面面面 � 戚面面面面面 � 戚面面面面面 � 戚面面面面面 � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 戚面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面面��-- 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)