the scar noob
2007-11-22 15:01:58
Congratulations, my friend, you deserve it!
I've seen you making incredible functions and plugins (remember the floodfill :p), things that are really advanced.
Keep it up and congratz again!!
Regards,
-Stijn.
2007-11-22 15:01:58
2007-11-22 15:02:32
2007-11-22 15:03:21
From: Killerdou
yeah he also told me;) all hail mastah!!!
2007-11-22 15:04:10
2007-11-22 15:07:21
2007-11-22 15:09:06
2007-11-22 15:09:18
2007-11-22 15:09:52
2007-11-22 15:10:49
2007-11-22 15:25:00
2007-11-22 15:27:55
2007-11-22 15:53:23
2007-11-22 15:55:28
2007-11-22 15:59:19
2007-11-22 16:21:11
From: PenttiI so agree.
Developer cup went to the guy who really deserved that.
Congratulations man!
2007-11-22 16:52:54
program New;
Function GetTPABounds(TPA: TPointArray): TBox;
var
I,L : Integer;
begin;
L := High(TPA);
if L < 0 then exit;
Result.x1 := TPA[0].x;
Result.y1 := TPA[0].y;
For I:= 0 to L do
begin;
if TPA[i].x > Result.x2 then
Result.x2 := TPA[i].x
else if TPA[i].x < Result.x1 then
Result.x1 := TPA[i].x;
if TPA[i].y > Result.y2 then
Result.y2 := TPA[i].y
else if TPA[i].y < Result.y1 then
Result.y1 := TPA[i].y;
end;
end;
procedure DrawTPA(TPA : TPointArray); //Put in a TPA, and it returns you a debug image with the found points :-)
var
TempBitmap,I,LengthA : integer;
Size : TBox;
begin;
Size := GetTPABounds(TPA);
TempBitmap := BitmapFromString(Size.x2-Size.x1+1,Size.y2-Size.y1+1,'');
// CopyClientToBitmap(TempBitmap,Size.x1,Size.y1,Size.x2,Size.y2);
LengthA := High(TPA);
For I:= 0 to LengthA do
FastSetPixel(TempBitmap,TPA[I].x-Size.x1,TPA[I].y-Size.y1,clred);
DisplayDebugImgWindow(Size.x2-Size.x1+1,Size.y2-Size.y1+1);
SafeDrawBitmap(TempBitmap,GetDebugCanvas,0,0);
FreeBitmap(TempBitmap);
end;
Function GetRosePoints(MaxSize,K : integer;CurveOffset,StepSize : extended): TPointArray;
var
I : Extended;
Len : integer;
begin
SetLength(Result,Round(Maxsize / Stepsize) + 1);
Repeat
I := I + Stepsize
Result[Len].x := Round(Cos(i) * sin(K * i) * CurveOffset); //Round(Pow(Abs( cos(I) * I * CurveOffset),1.2));
Result[Len].y := Round(Sin(i) * sin(K * I) * CurveOffset);//Round(Pow(Abs(sin(I) * I * CurveOffset),1.2));
Len := Len + 1;
Until I >= maxsize
SetLength(result,len);
end;
var
Arr : TPointArray;
begin
Arr := GetRosePoints(900,10,400,0.05);
DrawTPA(Arr);
end.
2007-11-22 16:57:45
From: mastaraymond
Script for you guys ^,^
program New;
Function GetTPABounds(TPA: TPointArray): TBox;
var
I,L : Integer;
begin;
L := High(TPA);
if L < 0 then exit;
Result.x1 := TPA[0].x;
Result.y1 := TPA[0].y;
For I:= 0 to L do
begin;
if TPA[i].x > Result.x2 then
Result.x2 := TPA[i].x
else if TPA[i].x < Result.x1 then
Result.x1 := TPA[i].x;
if TPA[i].y > Result.y2 then
Result.y2 := TPA[i].y
else if TPA[i].y < Result.y1 then
Result.y1 := TPA[i].y;
end;
end;
procedure DrawTPA(TPA : TPointArray); //Put in a TPA, and it returns you a debug image with the found points :-)
var
TempBitmap,I,LengthA : integer;
Size : TBox;
begin;
Size := GetTPABounds(TPA);
TempBitmap := BitmapFromString(Size.x2-Size.x1+1,Size.y2-Size.y1+1,'');
// CopyClientToBitmap(TempBitmap,Size.x1,Size.y1,Size.x2,Size.y2);
LengthA := High(TPA);
For I:= 0 to LengthA do
FastSetPixel(TempBitmap,TPA[I].x-Size.x1,TPA[I].y-Size.y1,clred);
DisplayDebugImgWindow(Size.x2-Size.x1+1,Size.y2-Size.y1+1);
SafeDrawBitmap(TempBitmap,GetDebugCanvas,0,0);
FreeBitmap(TempBitmap);
end;
Function GetRosePoints(MaxSize,K : integer;CurveOffset,StepSize : extended): TPointArray;
var
I : Extended;
Len : integer;
begin
SetLength(Result,Round(Maxsize / Stepsize) + 1);
Repeat
I := I + Stepsize
Result[Len].x := Round(Cos(i) * sin(K * i) * CurveOffset); //Round(Pow(Abs( cos(I) * I * CurveOffset),1.2));
Result[Len].y := Round(Sin(i) * sin(K * I) * CurveOffset);//Round(Pow(Abs(sin(I) * I * CurveOffset),1.2));
Len := Len + 1;
Until I >= maxsize
SetLength(result,len);
end;
var
Arr : TPointArray;
begin
Arr := GetRosePoints(900,10,400,0.05);
DrawTPA(Arr);
end.
2007-11-22 16:59:51
From: the scar noob
Haha, nice one!
It's beatifull! I also want to know how to make that, but I never did something with forms, nor canvases:p
Everybody, run it!
-Tsn.
2007-11-22 17:29:57
2007-11-22 17:36:03
2007-11-22 17:54:24
2007-11-22 19:03:38
2007-11-22 19:04:46
2007-11-22 19:42:00
2007-11-22 21:38:37
2007-11-22 21:43:32
2007-11-22 21:53:05
2007-11-22 23:55:28
2007-11-23 00:12:46
2007-11-23 01:31:11
From: mastaraymond
Script for you guys ^,^
program New;
Function GetTPABounds(TPA: TPointArray): TBox;
var
I,L : Integer;
begin;
L := High(TPA);
if L < 0 then exit;
Result.x1 := TPA[0].x;
Result.y1 := TPA[0].y;
For I:= 0 to L do
begin;
if TPA[i].x > Result.x2 then
Result.x2 := TPA[i].x
else if TPA[i].x < Result.x1 then
Result.x1 := TPA[i].x;
if TPA[i].y > Result.y2 then
Result.y2 := TPA[i].y
else if TPA[i].y < Result.y1 then
Result.y1 := TPA[i].y;
end;
end;
procedure DrawTPA(TPA : TPointArray); //Put in a TPA, and it returns you a debug image with the found points :-)
var
TempBitmap,I,LengthA : integer;
Size : TBox;
begin;
Size := GetTPABounds(TPA);
TempBitmap := BitmapFromString(Size.x2-Size.x1+1,Size.y2-Size.y1+1,'');
// CopyClientToBitmap(TempBitmap,Size.x1,Size.y1,Size.x2,Size.y2);
LengthA := High(TPA);
For I:= 0 to LengthA do
FastSetPixel(TempBitmap,TPA[I].x-Size.x1,TPA[I].y-Size.y1,clred);
DisplayDebugImgWindow(Size.x2-Size.x1+1,Size.y2-Size.y1+1);
SafeDrawBitmap(TempBitmap,GetDebugCanvas,0,0);
FreeBitmap(TempBitmap);
end;
Function GetRosePoints(MaxSize,K : integer;CurveOffset,StepSize : extended): TPointArray;
var
I : Extended;
Len : integer;
begin
SetLength(Result,Round(Maxsize / Stepsize) + 1);
Repeat
I := I + Stepsize
Result[Len].x := Round(Cos(i) * sin(K * i) * CurveOffset); //Round(Pow(Abs( cos(I) * I * CurveOffset),1.2));
Result[Len].y := Round(Sin(i) * sin(K * I) * CurveOffset);//Round(Pow(Abs(sin(I) * I * CurveOffset),1.2));
Len := Len + 1;
Until I >= maxsize
SetLength(result,len);
end;
var
Arr : TPointArray;
begin
Arr := GetRosePoints(900,10,400,0.05);
DrawTPA(Arr);
end.
2007-11-23 04:46:32
From: bullzeye95
Congratulations! Extremely well deserved :D
But you know… that means you should be able to pwn me… You need some practice nub :p
2007-11-23 05:45:28
2007-11-23 05:47:50
2007-11-23 05:49:35
2007-11-23 05:53:56
2007-11-23 06:55:41
From: RudeBoiAlex
WOOOW congratz man and loving the mario game :p
2007-11-23 07:02:09
2007-11-23 08:03:29
From: Kevin Wolf
xD
I cheated and made my mario always big :P
Gratz on Dev Ray
2007-11-23 09:04:26
2007-11-23 09:17:03
From: Santa_Clause
Hmm…do you have to be an SSRL to become a developer…? If so, then I guess we can predict the future developers.
2007-11-23 09:27:49
2007-11-23 11:22:32
2007-11-23 16:59:09
From: n3ss3s
Yup, don't have to, and plus that, Santy how'd ya know who are *cough*:s since its prohibited to tell?
2007-11-23 18:04:10
2007-11-23 18:15:38
2007-11-23 18:24:14
From: R0b0t1
Good work Sherlock, I was about to deduce the same….
2007-11-23 23:11:30
2007-11-24 09:09:57