maker3
04-11-2006, 01:26 AM
Hi
I was estudying the SDL tutorial of the Lazy Foo and I translated one from c++ to delphi. But I modified the collision function. I used the SDL_CollidePixel function from lib SDL_Collide.
My program crash when the dot move in position X=20 and y=140. I dont know why? Some one help me please.
The code is here: http://rapidshare.com/files/1806994/pixel_collide.zip.html
The crash is here:
...
4:
begin
[color=red]=> PixelColor := PUint32( bits )^; (Line 244)[/color]
end;
...
Sorry, my english is bad.
I was estudying the SDL tutorial of the Lazy Foo and I translated one from c++ to delphi. But I modified the collision function. I used the SDL_CollidePixel function from lib SDL_Collide.
My program crash when the dot move in position X=20 and y=140. I dont know why? Some one help me please.
The code is here: http://rapidshare.com/files/1806994/pixel_collide.zip.html
The crash is here:
...
4:
begin
[color=red]=> PixelColor := PUint32( bits )^; (Line 244)[/color]
end;
...
Sorry, my english is bad.