Thema: Delphi Pong Schläger Problem

Einzelnen Beitrag anzeigen

tobyV12

Registriert seit: 28. Mai 2011
9 Beiträge
 
#6

AW: Pong Schläger Problem

  Alt 2. Jun 2011, 13:35
Ich habe es mal versucht aber bekomme es nicht richtig hin.

Delphi-Quellcode:
var
  x, y : double;
begin
  x := schlaeger_2.top - schlaeger_2.width;
  y := schlaeger_2.left - schlaeger_2.height;
  label4.caption := FloatToStr(x) + ' ' + FloatToStr(y);

  if (ball.Left >= schlaeger_2.left) and (ball.Top >= schlaeger_2.top) then
  begin
    form2.show;
  end;
Das war einfach nur zum testen, ob es funktioniert.
  Mit Zitat antworten Zitat