Awkwardsaw
2009-07-22 07:00:27
this is my first scar game, im still trying to get used to canvases and such :)
i got the idea from cazax's click it game in the games folder in scar
and i got some code from yakman's, and solemn's tuts, so i have to give them some credit :D
goal: click the black box as many times as you can within 30 seconds
every thing else is explained in the script.
enjoy :) also post feedback, and ways to make it better so i can be more edumacated :p
i got the idea from cazax's click it game in the games folder in scar
and i got some code from yakman's, and solemn's tuts, so i have to give them some credit :D
goal: click the black box as many times as you can within 30 seconds
every thing else is explained in the script.
program Akwardsawclickit;
var Buffer,Line,x, y, a, b, m :integer;
//thanks to cazax for creating ClickEm - gave me the idea
//and yakman, and solemn for creating tuts on canvases :D
//instructions: hit play, and click the black box as many times as you can within
// 30 seconds. clicking the white area decreases your score!
procedure draw;
begin
Line:=BitmapFromString(10 + random(40),10 + random(40),'');
FastDrawClear(Buffer,16777215);
FastDrawTransparent(0 + random(300),y + random(300),Line,Buffer);
SafeDrawBitmap(Buffer,getdebugcanvas,0,0);
wait(10);
end;
var time: integer;
procedure check;
begin
if IsMouseButtonDown(true) then
begin
getmousepos(a, b);
while IsMouseButtonDown(true) do wait(10);
if getcolor(a, b) = 0 then inc(m) else dec(m);
draw;
end;
end;
begin
Buffer:=BitmapFromString(400,400,'');
FastDrawClear(Line,0);
DisplayDebugImgWindow(400,400);
m := 1;
time:= GetSystemTime;
repeat
check;
disguise('Clicks: ' + inttostr(m));
until (getsystemtime - time) > 30000;
writeln('You have got: ' + inttostr(m) + ' Clicks!');
end.enjoy :) also post feedback, and ways to make it better so i can be more edumacated :p