Hey guys, I decided to make a curveball script out of boredom, but It doesent work well... At all... I decided to use pixelshift to figure out when the round was over, but the mouse is uber jumpy and slow at getting to the ball. Can someone show me what I;m doing wrong?
Simba Code:
program Curveball;
{$i srl/srl.simba}
Procedure StartGame;
begin
Mouse(330, 225, 3, 3, 1);
wait(randomrange(1000,2000));
end;
Procedure Ingame;
var
x, y:integer;
PBox:TBox;
begin
PBox := IntToBox(0, 0, 616, 413);
repeat
findcolorspiraltolerance(x, y, 10485682, 0, 0, 616, 431, 10);
Movemouse(x, y);
until(pixelshift(Pbox, 10) = 0)
end;
procedure StartRound;
var
x, y:integer;
PBox: TBox;
begin
PBox := IntToBox(0, 0, 616, 413);
if pixelshift(Pbox, 20) < 10 then
begin
findcolorspiraltolerance(x, y, 10485682, 0, 0, 616, 431, 3)
Mouse(x, y, 5, 5, 1);
end else
Ingame;
end;
begin
SetupSRL
StartGame
repeat
StartRound
Ingame
until(false);
end.
Game = http://www.addictinggames.com/sports.../curveball.jsp