<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Clomosy | Forum : Oyunda ortadan geçtiğinde de oyunu bitirmesi</title>
  <link>https://www.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : Oyunda ortadan geçtiğinde de oyunu bitirmesi]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 14 Apr 2026 15:09:15 +0000</pubDate>
  <lastBuildDate>Tue, 08 Aug 2023 17:19:17 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.clomosy.com.tr/RSS_post_feed.asp?TID=556</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Clomosy | Forum]]></title>
   <url>https://www.clomosy.com.tr/forum_images/logo.png</url>
   <link>https://www.clomosy.com.tr/</link>
  </image>
  <item>
   <title><![CDATA[Oyunda ortadan geçtiğinde de oyunu bitirmesi : Bu nas&#305;l: Const BallSpeed = 2;Var...]]></title>
   <link>https://www.clomosy.com.tr/forum_posts.asp?TID=556&amp;PID=705#705</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://www.clomosy.com.tr/member_profile.asp?PF=133">Alforce</a><br /><strong>Konu:</strong> 556<br /><strong>Gönderim Zamanı:</strong> 08&nbsp;Ağustos&nbsp;2023 Saat 17:19<br /><br />Bu nasıl:<div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>Const&nbsp;</div><div>&nbsp; BallSpeed = 2;</div><div>Var</div><div>&nbsp; MyForm: TclGameForm;</div><div>&nbsp; ImgBall,ImgHole1,ImgHole2: TclProImage;</div><div>&nbsp; DeviceMotionSensor: TClMotionSensor;</div><div>&nbsp; LblDisplay: TclLabel;</div><div>&nbsp; GameTimer,Timer,Timer1,Timer2: TClTimer;</div><div>&nbsp; BtnStartGame: TclButton;</div><div>&nbsp; SoundIndex:Integer;</div><div>&nbsp; myDeviceManager: TclDeviceManager;</div><div>&nbsp; a:Boolean;</div><div>&nbsp;&nbsp;</div><div>&nbsp; intersect_x1,intersect_y1,intersect_x2,intersect_y2,intersect_area: Integer;</div><div>&nbsp;</div><div>Function Max(in1,in2: Integer): Integer;</div><div>Begin</div><div>&nbsp; if in1 &gt;= in2 then</div><div>&nbsp; &nbsp; Result:= in1;</div><div>&nbsp; else</div><div>&nbsp; &nbsp; Result:= in2;</div><div>End;</div><div>&nbsp; &nbsp;</div><div>Function Min(in1,in2: Integer): Integer;</div><div>Begin</div><div>&nbsp; if in1 &lt;= in2 then</div><div>&nbsp; &nbsp; Result:= in1</div><div>&nbsp; else</div><div>&nbsp; &nbsp; Result:= in2;</div><div>End;</div><div><br></div><div>Procedure ProcOnGameTimer1;</div><div>begin</div><div>&nbsp; if a then</div><div>&nbsp; &nbsp; MyForm.SetFormBGImage('rkw3wez.jpg')</div><div>&nbsp; else</div><div>&nbsp; &nbsp; MyForm.SetFormBGImage('234mi5f.jpg');</div><div>&nbsp; a:= not a;</div><div>End;</div><div><br></div><div>Function isBallinTheHole2: Boolean;</div><div>Begin</div><div>&nbsp; intersect_x1:= max(ImgBall.Left, ImgHole2.Left);</div><div>&nbsp; intersect_y1:= max(ImgBall.Top, ImgHole2.Top);</div><div>&nbsp; intersect_x2:= min(ImgBall.Left +ImgBall.Width, ImgHole2.Left +ImgHole2.Width);</div><div>&nbsp; intersect_y2:= min(ImgBall.Top +ImgBall.Height, ImgHole2.Top +ImgHole2.Height);</div><div>&nbsp; intersect_area:= (intersect_x2 -intersect_x1) *(intersect_y2 -intersect_y1);</div><div>&nbsp;&nbsp;</div><div>&nbsp; Result:= (intersect_area &gt; 0) and (ImgBall.Left &lt; ImgHole2.Left+ImgHole2.Width) and (ImgBall.Left+ImgBall.Width &gt; ImgHole2.Left) and (ImgBall.Top+ImgBall.Height &gt; ImgHole2.Top);&nbsp;</div><div>End;</div><div>&nbsp;&nbsp;</div><div>function isBallinTheHole3: Boolean;</div><div>begin</div><div>&nbsp; intersect_x1:= max(ImgBall.Left, ImgHole1.Left);</div><div>&nbsp; intersect_y1:= max(ImgBall.Top, ImgHole1.Top);</div><div>&nbsp; intersect_x2:= min(ImgBall.Left +ImgBall.Width, ImgHole1.Left +ImgHole1.Width);</div><div>&nbsp; intersect_y2:= min(ImgBall.Top +ImgBall.Height, ImgHole1.Top +ImgHole1.Height);</div><div>&nbsp; intersect_area:= (intersect_x2 -intersect_x1) *(intersect_y2 -intersect_y1);</div><div>&nbsp;&nbsp;</div><div>&nbsp; Result:= (intersect_area &gt; 0) and (ImgBall.Left &lt; ImgHole1.Left+ImgHole1.Width) and (ImgBall.Left+ImgBall.Width &gt; ImgHole1.Left) and (ImgBall.Top &lt; ImgHole1.Top+ImgHole1.Height);&nbsp;</div><div>end;</div><div><br></div><div>Procedure ProcOnGameTimer3;</div><div>Begin</div><div>&nbsp; ImgHole2.Align:= alNone;</div><div>&nbsp; If Clomosy.PlatformIsMobile Then</div><div>&nbsp; &nbsp; ImgHole2.Position.X:= ImgHole2.Position.X -BallSpeed;//Move left</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (ImgHole2.Position.X +ImgHole2.Width) &gt; TForm(MyForm).ClientWidth then&nbsp; // Form Right border control</div><div>&nbsp; &nbsp; ImgHole2.Position.X:= TForm(MyForm).ClientWidth -ImgHole2.Width;</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (ImgHole2.Position.Y +ImgHole2.Height) &gt; TForm(MyForm).ClientHeight then&nbsp; // Form Bottom border control</div><div>&nbsp; &nbsp; ImgHole2.Position.Y:= TForm(MyForm).ClientHeight -ImgHole1.Height;</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (ImgHole2.Position.Y &lt; 0) then&nbsp; // Top border control</div><div>&nbsp; &nbsp; ImgHole2.Position.Y:= 0;</div><div>End;</div><div><br></div><div>Procedure ProcOnGameTimer2;</div><div>Begin</div><div>&nbsp; ImgHole1.Align:= alNone;</div><div>&nbsp; If Clomosy.PlatformIsMobile Then</div><div>&nbsp; &nbsp; &nbsp; ImgHole1.Position.X:= ImgHole1.Position.X - BallSpeed;//Move left</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (ImgHole1.Position.X +ImgHole1.Width) &gt; TForm(MyForm).ClientWidth then&nbsp; // Form Right border control</div><div>&nbsp; &nbsp; ImgHole1.Position.X:= TForm(MyForm).ClientWidth -ImgHole1.Width;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; if (ImgHole1.Position.Y +ImgHole1.Height) &gt; TForm(MyForm).ClientHeight then&nbsp; // Form Bottom border control</div><div>&nbsp; &nbsp; ImgHole1.Position.Y:= TForm(MyForm).ClientHeight - ImgHole1.Height;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; if (ImgHole1.Position.Y &lt; 0) then&nbsp; // Top border control</div><div>&nbsp; &nbsp; ImgHole1.Position.Y:= 0;</div><div>End;</div><div><br></div><div>Procedure ProcOnGameTimer;</div><div>begin</div><div>&nbsp; If Clomosy.PlatformIsMobile Then</div><div>&nbsp; Begin</div><div>&nbsp; &nbsp; ImgBall.Position.X:= ImgBall.Position.X +BallSpeed;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Case DeviceMotionSensor.GetDirectionY of&nbsp;</div><div>&nbsp; &nbsp; &nbsp; 1: ImgBall.Position.Y:= ImgBall.Position.Y -(BallSpeed*4);//Move up</div><div>&nbsp; &nbsp; &nbsp; 2: ImgBall.Position.Y:= ImgBall.Position.Y +(BallSpeed*4);//Move down</div><div>&nbsp; &nbsp; End;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (ImgBall.Position.X +ImgBall.Width) &gt; TForm(MyForm).ClientWidth then&nbsp; // Form Right border control</div><div>&nbsp; &nbsp; &nbsp; ImgBall.Position.X:= TForm(MyForm).ClientWidth -ImgBall.Width;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (ImgBall.Position.X) &lt; 0 then // Left border control</div><div>&nbsp; &nbsp; &nbsp; ImgBall.Position.X:= 0;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (ImgBall.Position.Y +ImgBall.Height) &gt; TForm(MyForm).ClientHeight-150 then&nbsp; // Form Bottom border control</div><div>&nbsp; &nbsp; &nbsp; ImgBall.Position.Y:= TForm(MyForm).ClientHeight-150 -ImgBall.Height;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (ImgBall.Position.Y &lt; 0) then&nbsp; // Top border control</div><div>&nbsp; &nbsp; &nbsp; ImgBall.Position.Y:= 0;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if isBallinTheHole2 or isBallinTheHole3 then</div><div>&nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; GameTimer.Enabled:= False;</div><div>&nbsp; &nbsp; &nbsp; Timer.Enabled:= False;</div><div>&nbsp; &nbsp; &nbsp; Timer1.Enabled:= False;</div><div>&nbsp; &nbsp; &nbsp; Timer2.Enabled:= False;</div><div>&nbsp; &nbsp; &nbsp; If Clomosy.PlatformIsMobile Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DeviceMotionSensor.Active:= False;//game stopped</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; BtnStartGame.Text:= 'START GAME';</div><div>&nbsp; &nbsp; &nbsp; ImgHole2.Position.x:= 250;</div><div>&nbsp; &nbsp; &nbsp; ImgHole2.Position.y:= 1;</div><div>&nbsp; &nbsp; &nbsp; ImgHole2.Margins.Top:= 1;</div><div>&nbsp; &nbsp; &nbsp; ImgHole2.Margins.Bottom:= 500;</div><div>&nbsp; &nbsp; &nbsp; ImgHole2.Margins.Left:= 440;</div><div>&nbsp; &nbsp; &nbsp; ImgHole2.Margins.Right:= 60;</div><div>&nbsp; &nbsp; &nbsp; MyForm.PlayGameSound(SoundIndex); //sound effect</div><div>&nbsp; &nbsp; &nbsp; myDeviceManager.Vibrate(1000); // vibration feature&nbsp;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Mission Failed');</div><div>&nbsp; &nbsp; end;</div><div>&nbsp; End;</div><div>End;</div><div>&nbsp;&nbsp;</div><div>Procedure BtnStartGameClick;</div><div>begin</div><div>&nbsp; GameTimer.Enabled:= Not GameTimer.Enabled;</div><div>&nbsp; Timer.Enabled:= Not Timer.Enabled;</div><div>&nbsp; Timer1.Enabled:= Not Timer1.Enabled;</div><div>&nbsp; Timer2.Enabled:= Not Timer2.Enabled;</div><div>&nbsp;&nbsp;</div><div>&nbsp; If GameTimer.Enabled Then</div><div>&nbsp; &nbsp; BtnStartGame.Text:= 'STOP GAME'</div><div>&nbsp; Else</div><div>&nbsp; &nbsp; BtnStartGame.Text:= 'START GAME';</div><div>&nbsp;&nbsp;</div><div>&nbsp; If GameTimer.Enabled Then</div><div>&nbsp; Begin</div><div>&nbsp; &nbsp; ImgBall.Align:= alNone;</div><div>&nbsp; &nbsp; ImgBall.Position.x:= 0;</div><div>&nbsp; &nbsp; ImgBall.Position.y:= 0;</div><div>&nbsp; &nbsp; If Clomosy.PlatformIsMobile Then</div><div>&nbsp; &nbsp; &nbsp; DeviceMotionSensor.Active:= True;</div><div>&nbsp; End</div><div>&nbsp; Else If Clomosy.PlatformIsMobile Then</div><div>&nbsp; &nbsp; DeviceMotionSensor.Active:= False;//game stopped</div><div>End;</div><div>&nbsp;</div><div>Begin</div><div>&nbsp; a:= False;</div><div>&nbsp; MyForm:= TclGameForm.Create(Self);</div><div>&nbsp; myDeviceManager:= TclDeviceManager.Create;</div><div>&nbsp; MyForm.AddGameAssetFromUrl('https://i.hizliresim.com/rkw3wez.jpg');</div><div>&nbsp; MyForm.AddGameAssetFromUrl('https://i.hizliresim.com/234mi5f.jpg');</div><div>&nbsp; MyForm.AddGameAssetFromUrl('https://i.hizliresim.com/cslph5r.png'); //ImgHole1</div><div>&nbsp; MyForm.AddGameAssetFromUrl('https://i.hizliresim.com/7heqvui.png'); //ImgHole2</div><div>&nbsp; MyForm.AddGameAssetFromUrl('https://i.hizliresim.com/eiro064.png'); //ImgBall</div><div>&nbsp; MyForm.AddGameAssetFromUrl('https://www.clomosy.com/game/assets/win.wav');</div><div>&nbsp;&nbsp;</div><div>&nbsp; MyForm.SetFormBGImage('rkw3wez.jpg');</div><div>&nbsp;&nbsp;</div><div>&nbsp; SoundIndex:= MyForm.RegisterSound('win.wav');</div><div>&nbsp; MyForm.SoundIsActive:= True;</div><div>&nbsp; LblDisplay:= MyForm.AddNewLabel(MyForm,'LblDisplay','--');</div><div>&nbsp; LblDisplay.Align:= alTop;</div><div>&nbsp; LblDisplay.Visible:= False;</div><div>&nbsp; BtnStartGame:= MyForm.AddNewButton(MyForm,'BtnStartGame','START GAME');</div><div>&nbsp; BtnStartGame.Align:= alBottom;</div><div>&nbsp; BtnStartGame.Height:=30;</div><div>&nbsp; BtnStartGame.StyledSettings:= ssFamily;</div><div>&nbsp; BtnStartGame.TextSettings.FontColor:= clAlphaColor.clHexToColor('#FFFFFF');</div><div>&nbsp; MyForm.AddNewEvent(BtnStartGame,tbeOnClick,'BtnStartGameClick');</div><div>&nbsp;&nbsp;</div><div>&nbsp; ImgHole1:= MyForm.AddNewProImage(MyForm,'ImgHole1');</div><div>&nbsp; ImgHole1.clSetImage('cslph5r.png');</div><div>&nbsp; ImgHole1.Align:= alNone;</div><div>&nbsp; ImgHole1.Top:= TForm(MyForm).ClientHeight-300;</div><div>&nbsp; ImgHole1.Height:= 300;</div><div>&nbsp; ImgHole1.Width:= 75;</div><div>&nbsp;&nbsp;</div><div>&nbsp; ImgHole2:= MyForm.AddNewProImage(MyForm,'ImgHole2');</div><div>&nbsp; ImgHole2.clSetImage('7heqvui.png');</div><div>&nbsp; ImgHole2.Align:= alNone;</div><div>&nbsp; ImgHole2.Top:= 0;</div><div>&nbsp; ImgHole2.Height:= 300;</div><div>&nbsp; ImgHole2.Width:= 75;</div><div>&nbsp;&nbsp;</div><div>&nbsp; ImgBall:= MyForm.AddNewProImage(MyForm,'ImgBall');</div><div>&nbsp; ImgBall.clSetImage('eiro064.png');</div><div>&nbsp; ImgBall.Align:= alNone;</div><div>&nbsp; ImgBall.Width:= 30;</div><div>&nbsp; ImgBall.Height:= 30;</div><div>&nbsp;&nbsp;</div><div>&nbsp; DeviceMotionSensor:= MyForm.AddNewSensorsMotion(MyForm,'DeviceMotionSensor');</div><div>&nbsp; DeviceMotionSensor.Active:= Clomosy.PlatformIsMobile;</div><div>&nbsp; GameTimer:= MyForm.AddNewTimer(MyForm,'GameTimer',1000);</div><div>&nbsp; GameTimer.Interval:= 30;</div><div>&nbsp; GameTimer.Enabled:= False;</div><div>&nbsp; MyForm.AddNewEvent(GameTimer,tbeOnTimer,'ProcOnGameTimer');</div><div>&nbsp; Timer:= MyForm.AddNewTimer(MyForm,'timer',300);</div><div>&nbsp; Timer.Enabled:= False;</div><div>&nbsp;&nbsp;</div><div>&nbsp; MyForm.AddNewEvent(Timer,tbeOnTimer,'ProcOnGameTimer1');</div><div>&nbsp; Timer1:= MyForm.AddNewTimer(MyForm,'timer1',300);</div><div>&nbsp; Timer1.Enabled:= False;</div><div>&nbsp;&nbsp;</div><div>&nbsp; MyForm.AddNewEvent(Timer1,tbeOnTimer,'ProcOnGameTimer2');</div><div>&nbsp; Timer2:= MyForm.AddNewTimer(MyForm,'timer2',300);</div><div>&nbsp; Timer2.Enabled:= False;</div><div>&nbsp;&nbsp;</div><div>&nbsp; MyForm.AddNewEvent(Timer2,tbeOnTimer,'ProcOnGameTimer3');</div><div>&nbsp; MyForm.Run;</div><div>End;</div></div><div></pre></td></tr></table></div>]]>
   </description>
   <pubDate>Tue, 08 Aug 2023 17:19:17 +0000</pubDate>
   <guid isPermaLink="true">https://www.clomosy.com.tr/forum_posts.asp?TID=556&amp;PID=705#705</guid>
  </item> 
  <item>
   <title><![CDATA[Oyunda ortadan geçtiğinde de oyunu bitirmesi : var MyForm:TclGameForm; ImgBall,...]]></title>
   <link>https://www.clomosy.com.tr/forum_posts.asp?TID=556&amp;PID=704#704</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://www.clomosy.com.tr/member_profile.asp?PF=118">SefaBuyuksoylu</a><br /><strong>Konu:</strong> 556<br /><strong>Gönderim Zamanı:</strong> 08&nbsp;Ağustos&nbsp;2023 Saat 15:07<br /><br />&nbsp; var<div>&nbsp; MyForm:TclGameForm;</div><div>&nbsp; ImgBall, ImgHole1,ImgHole2:TclProImage;</div><div>&nbsp; DeviceMotionSensor:TClMotionSensor;</div><div>&nbsp; LblDisplay:TclLabel;</div><div>&nbsp; GameTimer,Timer,Timer1,Timer2:TClTimer;</div><div>&nbsp; BtnStartGame:TclButton;</div><div>&nbsp; SoundIndex:Integer;myDeviceManager:TclDeviceManager;Kus_X,Kus_Y: Single;a,b,b1:Boolean;intersect_x1, intersect_y1, intersect_x2, intersect_y2,intersect_area: Integer; intersect_x1_2,intersect_y1_2,intersect_x2_2,intersect_y2_2,intersect_area1:Integer;</div><div>&nbsp;Function Max(in1,in2: Integer): Integer;</div><div>&nbsp; Begin</div><div>&nbsp; if in1 &gt;= in2 then</div><div>&nbsp; &nbsp; Result:= in1;</div><div>&nbsp; else</div><div>&nbsp; &nbsp; Result:= in2;</div><div>&nbsp; &nbsp;End;</div><div>Function Min(in1,in2: Integer): Integer;</div><div>&nbsp; Begin</div><div>&nbsp; if in1 &lt;= in2 then</div><div>&nbsp; &nbsp; Result:= in1</div><div>&nbsp; else</div><div>&nbsp; &nbsp; Result:= in2;</div><div>&nbsp; End;</div><div>&nbsp;Procedure ProcOnGameTimer1;</div><div>begin</div><div>&nbsp; if a then</div><div>&nbsp; &nbsp; MyForm.SetFormBGImage('rkw3wez.jpg')</div><div>&nbsp; else</div><div>&nbsp; &nbsp; MyForm.SetFormBGImage('234mi5f.jpg');</div><div>&nbsp; a:= not a;</div><div>End;</div><div>&nbsp; function isBallinTheHole2: Boolean;</div><div>&nbsp; begin</div><div>&nbsp; &nbsp; Result := False;</div><div>&nbsp; &nbsp; if (ImgBall.Left+ImgBall.Width &gt;= ImgHole2.Left) and (ImgBall.Top &lt;= ImgHole2.Top+ImgHole2.Height) and</div><div>&nbsp; (ImgBall.Top+ImgBall.Height &gt;= ImgHole2.Top) and</div><div>&nbsp; (ImgBall.Left &lt;= ImgHole2.Left+ImgHole2.Width)&nbsp; then</div><div>&nbsp; &nbsp; &nbsp;Result := True;</div><div>&nbsp; end;</div><div>&nbsp; function isBallinTheHole3: Boolean;</div><div>&nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; Result:=False;</div><div>&nbsp; &nbsp; if (ImgBall.Left+ImgBall.Width &gt;= ImgHole1.Left) and (ImgBall.Top &lt;= ImgHole1.Top+ImgHole1.Height) and</div><div>&nbsp; (ImgBall.Top+ImgBall.Height &gt;= ImgHole1.Top) and</div><div>&nbsp; (ImgBall.Left &lt;= ImgHole1.Left+ImgHole1.Width)&nbsp; then&nbsp;</div><div>&nbsp; &nbsp; &nbsp; Result:=True;</div><div>&nbsp; end;</div><div>&nbsp; Procedure ProcOnGameTimer3;</div><div>&nbsp; Const&nbsp;</div><div>&nbsp; &nbsp; BallSpeed = 8;</div><div>&nbsp; begin</div><div>&nbsp; &nbsp; ImgHole2.Align := alNone;</div><div>&nbsp; &nbsp; If Clomosy.PlatformIsMobile Then</div><div>&nbsp; &nbsp;Begin</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImgHole2.Position.X := ImgHole2.Position.X - BallSpeed;//Move left</div><div>&nbsp; &nbsp; &nbsp;end;</div><div>&nbsp; &nbsp; &nbsp; if (ImgHole2.Position.X + ImgHole2.Width) &gt; TForm(MyForm).ClientWidth then&nbsp; // Form Right border control</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImgHole2.Position.X := TForm(MyForm).ClientWidth - ImgHole2.Width;</div><div>&nbsp; &nbsp; &nbsp; if (ImgHole2.Position.Y + ImgHole2.Height) &gt; TForm(MyForm).ClientHeight then&nbsp; // Form Bottom border control</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImgHole2.Position.Y := TForm(MyForm).ClientHeight - ImgHole1.Height;</div><div>&nbsp; &nbsp; &nbsp; if (ImgHole2.Position.Y &lt; 0) then&nbsp; // Top border control</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImgHole2.Position.Y := 0;</div><div>&nbsp; end;</div><div>&nbsp; Procedure ProcOnGameTimer2;</div><div>&nbsp; Const&nbsp;</div><div>&nbsp; &nbsp; BallSpeed = 8;</div><div>&nbsp; begin</div><div>&nbsp; &nbsp; ImgHole1.Align := alNone;</div><div>&nbsp; &nbsp; If Clomosy.PlatformIsMobile Then</div><div>&nbsp; &nbsp;Begin</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImgHole1.Position.X := ImgHole1.Position.X - BallSpeed;//Move left</div><div>&nbsp; &nbsp; &nbsp;end;</div><div>&nbsp; &nbsp; &nbsp; if (ImgHole1.Position.X + ImgHole1.Width) &gt; TForm(MyForm).ClientWidth then&nbsp; // Form Right border control</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImgHole1.Position.X := TForm(MyForm).ClientWidth - ImgHole1.Width;</div><div>&nbsp; &nbsp; &nbsp; if (ImgHole1.Position.Y + ImgHole1.Height) &gt; TForm(MyForm).ClientHeight then&nbsp; // Form Bottom border control</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImgHole1.Position.Y := TForm(MyForm).ClientHeight - ImgHole1.Height;</div><div>&nbsp; &nbsp; &nbsp; if (ImgHole1.Position.Y &lt; 0) then&nbsp; // Top border control</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImgHole1.Position.Y := 0;</div><div>&nbsp; end;</div><div>&nbsp; Procedure ProcOnGameTimer;</div><div>&nbsp; Const&nbsp;</div><div>&nbsp; &nbsp; BallSpeed = 8;</div><div>&nbsp; begin</div><div>&nbsp; &nbsp; If Clomosy.PlatformIsMobile Then</div><div>&nbsp; &nbsp;Begin</div><div>&nbsp; &nbsp; &nbsp; Case DeviceMotionSensor.GetDirectionX of&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 1:ImgBall.Position.X := ImgBall.Position.X - BallSpeed;//Move left</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 2:ImgBall.Position.X := ImgBall.Position.X + BallSpeed;//Move right</div><div>&nbsp; &nbsp; &nbsp; End;</div><div>&nbsp; &nbsp; &nbsp; Case DeviceMotionSensor.GetDirectionY of&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 1:ImgBall.Position.Y := ImgBall.Position.Y - BallSpeed;//Move up</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 2:ImgBall.Position.Y := ImgBall.Position.Y + BallSpeed;//Move down</div><div>&nbsp; &nbsp; &nbsp; End;</div><div>&nbsp; &nbsp; &nbsp; if (ImgBall.Position.X + ImgBall.Width) &gt; TForm(MyForm).ClientWidth then&nbsp; // Form Right border control</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImgBall.Position.X := TForm(MyForm).ClientWidth - ImgBall.Width;</div><div>&nbsp; &nbsp; &nbsp; if (ImgBall.Position.X) &lt; 0 then // Left border control</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImgBall.Position.X := 0;</div><div>&nbsp; &nbsp; &nbsp; if (ImgBall.Position.Y + ImgBall.Height) &gt; TForm(MyForm).ClientHeight-150 then&nbsp; // Form Bottom border control</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImgBall.Position.Y := TForm(MyForm).ClientHeight-150 - ImgBall.Height;</div><div>&nbsp; &nbsp; &nbsp; if (ImgBall.Position.Y &lt; 0) then&nbsp; // Top border control</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImgBall.Position.Y := 0;</div><div>&nbsp; &nbsp; &nbsp; else if b1 or isBallinTheHole2 then</div><div>&nbsp; &nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameTimer.Enabled := False;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Timer.Enabled := False;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Timer1.Enabled:=False;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Timer2.Enabled:=False;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImgBall.Position.X := Kus_X;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImgBall.Position.Y := Kus_Y;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; If Clomosy.PlatformIsMobile Then DeviceMotionSensor.Active := False;//game stopped</div><div>&nbsp; &nbsp; &nbsp; &nbsp; BtnStartGame.Text := 'START GAME';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ImgHole2.Position.x:=250;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ImgHole2.Position.y:=1;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ImgHole2.Margins.Top:=1;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ImgHole2.Margins.Bottom:=500;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ImgHole2.Margins.Left:=440;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ImgHole2.Margins.Right:=60;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MyForm.PlayGameSound(SoundIndex); //sound effect</div><div>&nbsp; &nbsp; &nbsp; &nbsp; myDeviceManager.Vibrate(1000); // vibration feature&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Mission Failed');</div><div>&nbsp; &nbsp; &nbsp; end;</div><div>&nbsp; &nbsp; &nbsp; else if b or isBallinTheHole3 then</div><div>&nbsp; &nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameTimer.Enabled := False;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Timer.Enabled := False;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Timer1.Enabled:=False;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Timer2.Enabled:=False;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImgBall.Position.X := Kus_X;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImgBall.Position.Y := Kus_Y;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; If Clomosy.PlatformIsMobile Then DeviceMotionSensor.Active := False;//game stopped</div><div>&nbsp; &nbsp; &nbsp; &nbsp; BtnStartGame.Text := 'START GAME';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ImgHole1.Position.x:=250;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ImgHole1.Position.y:=270;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ImgHole1.Margins.Top:=270;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ImgHole1.Margins.Bottom:=10;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ImgHole1.Margins.Left:=30;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ImgHole1.Margins.Right:=40;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MyForm.PlayGameSound(SoundIndex); //sound effect</div><div>&nbsp; &nbsp; &nbsp; &nbsp; myDeviceManager.Vibrate(1000); // vibration feature&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Mission Failed');</div><div>&nbsp; &nbsp; &nbsp; end;</div><div>&nbsp; &nbsp; End;</div><div>&nbsp; End;</div><div>&nbsp;Procedure BtnStartGameClick;</div><div>&nbsp;begin</div><div>&nbsp; &nbsp;GameTimer.Enabled := Not GameTimer.Enabled;</div><div>&nbsp; &nbsp;Timer.Enabled := Not Timer.Enabled;</div><div>&nbsp; &nbsp;Timer1.Enabled:= Not Timer1.Enabled;</div><div>&nbsp; &nbsp;Timer2.Enabled:=Not Timer2.Enabled;</div><div>&nbsp; &nbsp;If (GameTimer.Enabled) and (Timer.Enabled) and (Timer1.Enabled) and (Timer2.Enabled) Then BtnStartGame.Text := 'STOP GAME' ELSE BtnStartGame.Text := 'START GAME';</div><div>&nbsp; &nbsp;If (GameTimer.Enabled) and (Timer.Enabled) and (Timer1.Enabled) and (Timer2.Enabled) Then</div><div>&nbsp; &nbsp;Begin</div><div>&nbsp; &nbsp; &nbsp;ImgBall.Align := alNone;</div><div>&nbsp; &nbsp; &nbsp;ImgBall.Position.x := 0;</div><div>&nbsp; &nbsp; &nbsp;ImgBall.Position.y := 0;</div><div>&nbsp; &nbsp; &nbsp;If Clomosy.PlatformIsMobile Then DeviceMotionSensor.Active := True;</div><div>&nbsp; &nbsp;End Else If Clomosy.PlatformIsMobile Then DeviceMotionSensor.Active := False;//game stopped</div><div>&nbsp;End;</div><div>&nbsp;Begin</div><div>&nbsp;a:= False;</div><div>&nbsp;MyForm := TclGameForm.Create(Self);</div><div>&nbsp;myDeviceManager := TclDeviceManager.Create;</div><div>&nbsp;MyForm.SetFormBGImage('https://i.hizliresim.com/rkw3wez.jpg');</div><div>&nbsp;MyForm.AddGameAssetFromUrl('https://www.clomosy.com/game/assets/win.wav');</div><div>&nbsp;SoundIndex := MyForm.RegisterSound('win.wav');</div><div>&nbsp;MyForm.SoundIsActive:=True;</div><div>&nbsp;LblDisplay:= MyForm.AddNewLabel(MyForm,'LblDisplay','--');</div><div>&nbsp;LblDisplay.Align := alTop;</div><div>&nbsp;LblDisplay.Visible := False;</div><div>&nbsp;BtnStartGame:= MyForm.AddNewButton(MyForm,'BtnStartGame','START GAME');</div><div>&nbsp;BtnStartGame.Align := alBottom;</div><div>&nbsp;BtnStartGame.Height:=30;</div><div>&nbsp;BtnStartGame.StyledSettings := ssFamily;</div><div>&nbsp;BtnStartGame.TextSettings.FontColor := clAlphaColor.clHexToColor('#FFFFFF');</div><div>&nbsp;MyForm.AddNewEvent(BtnStartGame,tbeOnClick,'BtnStartGameClick');</div><div>&nbsp;ImgHole1 := MyForm.AddNewProImage(MyForm,'ImgHole1');</div><div>&nbsp;ImgHole1.clSetImage('https://i.hizliresim.com/cslph5r.png');</div><div>&nbsp;ImgHole1.Margins.Top:=270;</div><div>&nbsp;ImgHole1.Margins.Bottom:=10;</div><div>&nbsp;ImgHole1.Margins.Left:=30;</div><div>&nbsp;ImgHole1.Margins.Right:=40;</div><div>&nbsp;ImgHole1.Height:=25;</div><div>&nbsp;ImgHole1.Width:=75;</div><div>&nbsp;ImgHole1.Properties.AutoSize := False;</div><div>&nbsp;ImgHole1.Align := alRight;</div><div>&nbsp;ImgHole2 := MyForm.AddNewProImage(MyForm,'ImgHole2');</div><div>&nbsp;ImgHole2.clSetImage('https://i.hizliresim.com/7heqvui.png');</div><div>&nbsp;ImgHole2.Margins.Top:=1;</div><div>&nbsp;ImgHole2.Margins.Bottom:=500;</div><div>&nbsp;ImgHole2.Margins.Left:=440;</div><div>&nbsp;ImgHole2.Margins.Right:=60;</div><div>&nbsp;ImgHole2.Height:=25;</div><div>&nbsp;ImgHole2.Width:=75;</div><div>&nbsp;ImgHole2.Properties.AutoSize := False;</div><div>&nbsp;ImgHole2.Align := alRight;</div><div>&nbsp;ImgBall := MyForm.AddNewProImage(MyForm,'ImgBall');</div><div>&nbsp;ImgBall.clSetImage('https://i.hizliresim.com/eiro064.png');</div><div>&nbsp;ImgBall.Width := 60;</div><div>&nbsp;ImgBall.Height := 60;</div><div>&nbsp;ImgBall.Align := alCenter;</div><div>&nbsp;Kus_X:=ImgBall.Position.X+(ImgBall.Width);</div><div>&nbsp;Kus_Y:=ImgBall.Position.Y+(ImgBall.Height);</div><div>&nbsp;intersect_x1:= Max(ImgBall.Left, ImgHole1.Left);</div><div>&nbsp;intersect_y1:= Max(ImgBall.Top, ImgHole1.Top);</div><div>&nbsp;intersect_x2:= Min(ImgBall.Left+ImgBall.Width, ImgHole1.Left+ImgHole1.Width);</div><div>&nbsp;intersect_y2:= Min(ImgBall.Top+ImgBall.Height, ImgHole1.Top+ImgHole1.Height);</div><div>&nbsp;intersect_area:= (intersect_x2 - intersect_x1) * (intersect_y2 - intersect_y1);</div><div>&nbsp;b:= (intersect_area &gt; 0) and (ImgBall.Top &lt; ImgHole1.Top+ImgHole1.Height);&nbsp;&nbsp;</div><div>&nbsp;intersect_x1_2:= Max(ImgBall.Left, ImgHole2.Left);</div><div>&nbsp;intersect_y1_2:= Max(ImgBall.Top, ImgHole2.Top);</div><div>&nbsp;intersect_x2_2:= Min(ImgBall.Left+ImgBall.Width, ImgHole2.Left+ImgHole2.Width);</div><div>&nbsp;intersect_y2_2:= Min(ImgBall.Top+ImgBall.Height, ImgHole2.Top+ImgHole2.Height);</div><div>&nbsp;intersect_area1:= (intersect_x2_2 - intersect_x1_2) * (intersect_y2_2 - intersect_y1_2);</div><div>&nbsp;b1:= (intersect_area1 &gt; 0) and (ImgBall.Top &lt; ImgHole2.Top+ImgHole2.Height);&nbsp;&nbsp;</div><div>&nbsp;ImgBall.Align := alNone;</div><div>&nbsp;ImgBall.Position.Y := Kus_Y;</div><div>&nbsp;DeviceMotionSensor := MyForm.AddNewSensorsMotion(MyForm,'DeviceMotionSensor');</div><div>&nbsp;DeviceMotionSensor.Active := Clomosy.PlatformIsMobile;</div><div>&nbsp;MyForm.AddGameAssetFromUrl('https://i.hizliresim.com/rkw3wez.jpg');</div><div>&nbsp;MyForm.AddGameAssetFromUrl('https://i.hizliresim.com/234mi5f.jpg');</div><div>&nbsp;GameTimer:= MyForm.AddNewTimer(MyForm,'GameTimer',1000);</div><div>&nbsp;GameTimer.Interval := 30;</div><div>&nbsp;GameTimer.Enabled :=False;</div><div>&nbsp;MyForm.AddNewEvent(GameTimer,tbeOnTimer,'ProcOnGameTimer');</div><div>&nbsp;Timer:= MyForm.AddNewTimer(MyForm,'timer',300);</div><div>&nbsp;Timer.Enabled:= False;</div><div>&nbsp;MyForm.AddNewEvent(Timer,tbeOnTimer,'ProcOnGameTimer1');</div><div>&nbsp;Timer1:= MyForm.AddNewTimer(MyForm,'timer1',300);</div><div>&nbsp;Timer1.Enabled:= False;</div><div>&nbsp;MyForm.AddNewEvent(Timer1,tbeOnTimer,'ProcOnGameTimer2');</div><div>&nbsp;Timer2:= MyForm.AddNewTimer(MyForm,'timer2',300);</div><div>&nbsp;Timer2.Enabled:= False;</div><div>&nbsp;MyForm.AddNewEvent(Timer2,tbeOnTimer,'ProcOnGameTimer3');</div><div>&nbsp;MyForm.Run;</div><div>End;</div><div><br></div><div>Tüm proje kodum..</div>]]>
   </description>
   <pubDate>Tue, 08 Aug 2023 15:07:14 +0000</pubDate>
   <guid isPermaLink="true">https://www.clomosy.com.tr/forum_posts.asp?TID=556&amp;PID=704#704</guid>
  </item> 
  <item>
   <title><![CDATA[Oyunda ortadan geçtiğinde de oyunu bitirmesi : Tamam, san&#305;r&#305;m bunlar eksik: Function...]]></title>
   <link>https://www.clomosy.com.tr/forum_posts.asp?TID=556&amp;PID=703#703</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://www.clomosy.com.tr/member_profile.asp?PF=133">Alforce</a><br /><strong>Konu:</strong> 556<br /><strong>Gönderim Zamanı:</strong> 08&nbsp;Ağustos&nbsp;2023 Saat 11:24<br /><br />Tamam, sanırım bunlar eksik:<div><table width="99%"><tr><td><pre class="BBcode"></div><div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">Function Max(in1,in2: Integer): Integer;</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">Begin</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; if in1 &gt;= in2 then</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; &nbsp; Result:= in1</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; else</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; &nbsp; Result:= in2;</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">End;</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;"><br></div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">Function Min(in1,in2: Integer): Integer;</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">Begin</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; if in1 &lt;= in2 then</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; &nbsp; Result:= in1</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; else</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; &nbsp; Result:= in2;</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">End;</div></div><div></pre></td></tr></table></div>]]>
   </description>
   <pubDate>Tue, 08 Aug 2023 11:24:35 +0000</pubDate>
   <guid isPermaLink="true">https://www.clomosy.com.tr/forum_posts.asp?TID=556&amp;PID=703#703</guid>
  </item> 
  <item>
   <title><![CDATA[Oyunda ortadan geçtiğinde de oyunu bitirmesi :  Bu &#351;ekil hata al&#305;yorum max tan&#305;ml&#305;...]]></title>
   <link>https://www.clomosy.com.tr/forum_posts.asp?TID=556&amp;PID=702#702</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://www.clomosy.com.tr/member_profile.asp?PF=118">SefaBuyuksoylu</a><br /><strong>Konu:</strong> 556<br /><strong>Gönderim Zamanı:</strong> 08&nbsp;Ağustos&nbsp;2023 Saat 11:21<br /><br /><img src="uploads/118/WhatsApp_Image_2023-08-08_at_11.19.28.jpeg" height="500" width="700" border="0" /><div>Bu şekil hata alıyorum max tanımlı değil hatası ??</div>]]>
   </description>
   <pubDate>Tue, 08 Aug 2023 11:21:19 +0000</pubDate>
   <guid isPermaLink="true">https://www.clomosy.com.tr/forum_posts.asp?TID=556&amp;PID=702#702</guid>
  </item> 
  <item>
   <title><![CDATA[Oyunda ortadan geçtiğinde de oyunu bitirmesi : &#350;uan bundan daha g&#252;zel &#231;al&#305;&#351;an...]]></title>
   <link>https://www.clomosy.com.tr/forum_posts.asp?TID=556&amp;PID=697#697</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://www.clomosy.com.tr/member_profile.asp?PF=133">Alforce</a><br /><strong>Konu:</strong> 556<br /><strong>Gönderim Zamanı:</strong> 08&nbsp;Ağustos&nbsp;2023 Saat 10:54<br /><br />Şuan bundan daha güzel çalışan bir karşılaştırma koduna sahibim.<div><br></div><div>Bunu deneyebilirsiniz.</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>Var</div><div>&nbsp; &nbsp;<span style=": rgb251, 251, 253; font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;">intersect_x1, </span><span style=": rgb251, 251, 253; font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;">intersect_y1, </span><span style=": rgb251, 251, 253; font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;">intersect_x2, </span><span style=": rgb251, 251, 253; font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;">intersect_y2,</span></div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; intersect_area: Integer;</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">  b: Boolean;</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">Begin</div><div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; intersect_x1:= max(testImg.Left, engelimg.Left);</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; intersect_y1:= max(testImg.Top, engelimg.Top);</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; intersect_x2:= min(testImg.Left+testImg.Width, engelimg.Left+engelimg.Width);</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; intersect_y2:= min(testImg.Top+testImg.Height, engelimg.Top+engelimg.Height);</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; intersect_area:= (intersect_x2 - intersect_x1) * (intersect_y2 - intersect_y1);</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp;&nbsp;</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; b:= (intersect_area &gt; 0) and (testImg.Top &lt; engelimg.Top+engelimg.Height);&nbsp;&nbsp;</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp;&nbsp;</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; if b then</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; Begin</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; &nbsp; ShowMessage('Engele dokanıldı');</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; &nbsp; engelimg.Top:= 1;</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; &nbsp; engel1img.Top:= 1;</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; &nbsp; engel2img.Top:= 1;</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">&nbsp; End;</div></div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;"></pre></td></tr></table></div>]]>
   </description>
   <pubDate>Tue, 08 Aug 2023 10:54:53 +0000</pubDate>
   <guid isPermaLink="true">https://www.clomosy.com.tr/forum_posts.asp?TID=556&amp;PID=697#697</guid>
  </item> 
  <item>
   <title><![CDATA[Oyunda ortadan geçtiğinde de oyunu bitirmesi : function isBallinTheHole2: Boolean;...]]></title>
   <link>https://www.clomosy.com.tr/forum_posts.asp?TID=556&amp;PID=692#692</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://www.clomosy.com.tr/member_profile.asp?PF=118">SefaBuyuksoylu</a><br /><strong>Konu:</strong> 556<br /><strong>Gönderim Zamanı:</strong> 08&nbsp;Ağustos&nbsp;2023 Saat 10:23<br /><br />function isBallinTheHole2: Boolean;<div>&nbsp; begin</div><div>&nbsp; &nbsp; Result := False;</div><div>&nbsp; &nbsp; if (ImgBall.Left+ImgBall.Width &gt;= ImgHole2.Left) and (ImgBall.Top &lt;= ImgHole2.Top+ImgHole2.Height) and</div><div>&nbsp; (ImgBall.Top+ImgBall.Height &gt;= ImgHole2.Top) and</div><div>&nbsp; (ImgBall.Left &lt;= ImgHole2.Left+ImgHole2.Width)&nbsp; then</div><div>&nbsp; &nbsp; &nbsp;Result := True;</div><div>&nbsp; end;</div><div>&nbsp; function isBallinTheHole3: Boolean;</div><div>&nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; Result:=False;</div><div>&nbsp; &nbsp; if (ImgBall.Left+ImgBall.Width &gt;= ImgHole1.Left) and (ImgBall.Top &lt;= ImgHole1.Top+ImgHole1.Height) and</div><div>&nbsp; (ImgBall.Top+ImgBall.Height &gt;= ImgHole1.Top) and</div><div>&nbsp; (ImgBall.Left &lt;= ImgHole1.Left+ImgHole1.Width)&nbsp; then&nbsp;</div><div>&nbsp; &nbsp; &nbsp; Result:=True;</div><div>&nbsp; end;</div><div>Uygulamam ortadan geçtiğinde de sanki engele çarpmış gibi mesaj verip oyunu bitiriyor,kod kısmını attım acaba yükseklikle alakalı bir sorun mu var?</div><div><br></div><div><img src="uploads/118/WhatsApp_Image_2023-08-08_at_10.14.54.jpeg" height="900" width="500" border="0" /><br></div>]]>
   </description>
   <pubDate>Tue, 08 Aug 2023 10:23:39 +0000</pubDate>
   <guid isPermaLink="true">https://www.clomosy.com.tr/forum_posts.asp?TID=556&amp;PID=692#692</guid>
  </item> 
 </channel>
</rss>