Skip to content

Compile error #1

@vtrx-az

Description

@vtrx-az

I tried to compile and there are many errors.
First snippet with errors in the variables:

function gererCollisions(position : TPoint; joueur : TImage; unRectangle : TRectangle; detruireObjetTouche: boolean):TCollision;
begin
var enCollision := false;
for var recChild in unRectangle.Children do begin
var unEnfant : TImage := recChild as TImage;
if (position.X > unEnfant.Position.X) and (position.X < unEnfant.Position.X + unEnfant.Width) and
(position.y + joueur.Height > unEnfant.Position.Y) and (position.y < unEnfant.Position.Y + unEnfant.Height) then begin
enCollision := true;
result.objet := unEnfant;
if detruireObjetTouche then unEnfant.free;
break;
end;
end;
result.enCollision := enCollision;
end;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions