<?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 : Arayüzde kayma var</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Clomosy ile de&#287;i&#351;ken kullan&#305;m&#305; : Arayüzde kayma var]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 04:36:05 +0000</pubDate>
  <lastBuildDate>Wed, 24 Dec 2025 18:03:14 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=1249</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Clomosy | Forum]]></title>
   <url>https://forum.clomosy.com.tr/forum_images/logo.png</url>
   <link>https://forum.clomosy.com.tr/</link>
  </image>
  <item>
   <title><![CDATA[Arayüzde kayma var : Merhaba G&#252;ney,BtnPlayerName,BtnQueue,BtnPlayerScore...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1249&amp;PID=2781#2781</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=257">Emr.Erkmn</a><br /><strong>Konu:</strong> 1249<br /><strong>Gönderim Zamanı:</strong> 24&nbsp;Aralık&nbsp;2025 Saat 18:03<br /><br />Merhaba Güney,<br><code -path-to-node="1" -index-in-node="19">BtnPlayerName,&nbsp;BtnQueue,&nbsp;BtnPlayerScore da hizalamaları birbirinde çok farklı&nbsp;<br></code>sırasıyla AlLeft verip margins de vererek düzeltebilirsin.&nbsp;<br>Ayrıca mobil taraf da sepette kullanıcı adı altta olabilir ve puntosu küçültülebilir. Uzun kullanıcı adların da yarım gözüküyor.&nbsp;<br>Yie aynı şekil de oyun içerisinde toplanan puan yüksek skorlar da yarım gözüküyor yine aynı şekil de puntosu düşürülebilir&nbsp;<a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous">]]>
   </description>
   <pubDate>Wed, 24 Dec 2025 18:03:14 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1249&amp;PID=2781#2781</guid>
  </item> 
  <item>
   <title><![CDATA[Arayüzde kayma var : https://static.cloudflareinsig...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1249&amp;PID=2780#2780</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=344">M-Guney</a><br /><strong>Konu:</strong> 1249<br /><strong>Gönderim Zamanı:</strong> 24&nbsp;Aralık&nbsp;2025 Saat 17:19<br /><br /><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous"><div>Puanların gösterildiği dashboard da kayma var. üst üste biniyorlar çözemedim.</div><div><br></div><div>//Maincode</div><div><div>var</div><div>&nbsp;Form : TclGameForm;</div><div>&nbsp;ImageFullBasket , ImageBack : TClProImage;</div><div>&nbsp;LabelGameName : TClProLabel;</div><div>&nbsp;ButtonPlay : TClProButton;</div><div>&nbsp;UnitGame : TclUnit;</div><div>void Play;</div><div>{</div><div>&nbsp; &nbsp; ButtonPlay.Enabled = false;</div><div>&nbsp; &nbsp; UnitGame.UnitName = 'uFruitCollect';</div><div>&nbsp; &nbsp; UnitGame.CallerForm = Form;</div><div>&nbsp; &nbsp; UnitGame.Run;</div><div>}</div><div>void CloseForm;</div><div>{</div><div>&nbsp; TClProButton(Form.clFindComponent('BtnGoBack')).Click;</div><div>}</div><div>{</div><div>&nbsp; Form = TclGameForm.Create(Self);</div><div>&nbsp; Form.SetFormBGImage('<a href="https://clomosy.com/demos/FooodBg.png" target="_blank" rel="nofollow">https://clomosy.com/demos/FooodBg.png</a>');</div><div><br></div><div>&nbsp; UnitGame = TclUnit.Create;</div><div>&nbsp;</div><div>&nbsp; ImageFullBasket = Form.AddNewProImage(Form , 'ImageFullBasket');</div><div>&nbsp; ImageFullBasket.Align = alCenter;</div><div>&nbsp; Form.SetImage(ImageFullBasket , '<a href="https://clomosy.com/demos/FoodBasket4.png" target="_blank" rel="nofollow">https://clomosy.com/demos/FoodBasket4.png</a>');</div><div>&nbsp; ImageFullBasket.Width = Form.clWidth / 2.5;</div><div>&nbsp; ImageFullBasket.Height = Form.clHeight / 2.5;</div><div>&nbsp; ImageFullBasket.Margins.Top = 25;</div><div>&nbsp; clrtMethod(ImageFullBasket , 'SendToBack');</div><div><br></div><div>&nbsp; ImageBack = Form.AddNewProImage(Form , 'ImageBack');</div><div>&nbsp; ImageBack.Align = alNone;</div><div>&nbsp; Form.SetImage(ImageBack , '<a href="https://clomosy.com/demos/XoXback.png" target="_blank" rel="nofollow">https://clomosy.com/demos/XoXback.png</a>');</div><div>&nbsp; ImageBack.Width = (Form.clWidth / 6);</div><div>&nbsp; ImageBack.Height = (Form.clHeight / 12);</div><div>&nbsp; Form.AddNewEvent(ImageBack,tbeOnClick,'CloseForm');</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (Form.clWidth &gt; Form.clHeight)</div><div>&nbsp; {</div><div>&nbsp; &nbsp;ImageBack.Position.X = 10;</div><div>&nbsp; &nbsp;ImageBack.Position.Y = 10;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp;ImageBack.Position.X = 10;</div><div>&nbsp; &nbsp;ImageBack.Position.Y = 10;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; LabelGameName = Form.AddNewProLabel(Form , 'LabelGameName' , 'FRUIT COLLECT');</div><div>&nbsp; LabelGameName.Align = alTop;</div><div>&nbsp; LabelGameName.Height = Form.clHeight / 4.5;</div><div>&nbsp; LabelGameName.Margins.Top = 50;</div><div>&nbsp; LabelGameName.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; LabelGameName.clProSettings.FontSize = 40;</div><div>&nbsp; LabelGameName.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; LabelGameName.clProSettings.FontVertAlign = palcenter;&nbsp;</div><div>&nbsp; LabelGameName.clProSettings.FontHorzAlign = palcenter;&nbsp;</div><div>&nbsp; LabelGameName.SetclProSettings(LabelGameName.clProSettings);</div><div><br></div><div>&nbsp; ButtonPlay = Form.AddNewProButton(Form , 'ButtonPlay' , '');</div><div>&nbsp; ButtonPlay.Align = alBottom;</div><div>&nbsp; ButtonPlay.clProSettings.FontSize = 25;</div><div>&nbsp; ButtonPlay.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; ButtonPlay.caption = 'OYNA';</div><div>&nbsp; ButtonPlay.clProSettings.PictureSource = '<a href="https://clomosy.com/demos/foodIn&#102;ormati&#111;nBox.png" target="_blank" rel="nofollow">https://clomosy.com/demos/foodInformationBox.png</a>';</div><div>&nbsp; ButtonPlay.clProSettings.PictureAutoFit = True;</div><div>&nbsp; ButtonPlay.SetClProSettings(ButtonPlay.clProSettings);</div><div><br></div><div>&nbsp; ButtonPlay.Text = 'OYNA';</div><div>&nbsp; ButtonPlay.Height = Form.clHeight / 6;</div><div>&nbsp; ButtonPlay.Margins.Right = Form.clWidth / 6;</div><div>&nbsp; ButtonPlay.Margins.Left = Form.clWidth / 6;</div><div>&nbsp; ButtonPlay.Enabled = true;</div><div>&nbsp; Form.AddNewEvent(ButtonPlay , tbeOnClick , 'Play');</div><div>&nbsp;&nbsp;</div><div>&nbsp; Form.Run;</div><div>}<br><br><br>//uFruitCollect<br><div>var</div><div>&nbsp;GameForm : TclGameForm;</div><div>&nbsp;PanelTop,PanelCenter : TclProPanel;</div><div>&nbsp;</div><div>&nbsp;ImageBack,ImageTime,ImageScore,ImageNutrients,ImageBesinTikla,</div><div>&nbsp;ImageBasket,ImageLeft,ImageRight,ImageY1,ImageY2,ImageAnm: TClProImage;</div><div>&nbsp;</div><div>&nbsp;LblPlayerName,LblTime,LblScore,LblImageY1,LblImageY2,LblConnection,LblEndScore : TClProLabel;</div><div>&nbsp;</div><div>&nbsp;Score,Time,RandomHealthyIndex,RandomUnHealthyIndex,Distance1,Distance2,</div><div>&nbsp;PlayerDirection,ImageY1Speed,ImageY2Speed,PlayerSpeed: Integer;</div><div>&nbsp;</div><div>&nbsp;TimerGame , TimerClock,sendTimer : TCLTimer;</div><div>&nbsp;MqttGame : TclMQTT;</div><div>&nbsp;AnimationStart : Boolean;</div><div>&nbsp;Vibrate : TclDeviceManager;</div><div>&nbsp;FormExe : TclGameForm;</div><div>&nbsp;UsersList : TClProListView;</div><div>&nbsp;DesignerListPanel : TClProListViewDesignerPanel;</div><div>&nbsp;LabelConnection : TClProLabel;</div><div>&nbsp;BtnQueue,BtnPlayerScore,BtnPlayerName: TClProButton;</div><div>&nbsp;MqttScreen : TclMQTT;</div><div>&nbsp;Qry : TCLJSONQuery;</div><div>&nbsp;NameArray,GuidArray,ScoreArray,ListFoods : TclArrayString;</div><div>&nbsp;ImgBack : TClProImage;</div><div>&nbsp;JsonStr , GelenIsim , GelenGUID : String;</div><div>&nbsp;CapturedScore: String;</div><div>&nbsp;ListContainer : TclStringList;</div><div><br></div><div>void CloseForm;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; CallerForm.clShow;</div><div>&nbsp; &nbsp; ButtonPlay.Enabled = True;</div><div>&nbsp; &nbsp; TClProButton(GameForm.clFindComponent('BtnGoBack')).Click;</div><div>&nbsp; }</div><div><br></div><div>void OpenFoodImage;</div><div>&nbsp; {</div><div>&nbsp; &nbsp;if(ImageNutrients.Visible == False)</div><div>&nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp;ImageNutrients.Visible = true;</div><div>&nbsp; &nbsp;}</div><div>&nbsp; &nbsp;else</div><div>&nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp;ImageNutrients.Visible = False;</div><div>&nbsp; &nbsp;}</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>void MqttGameChanged;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if not (MqttGame.Connected)&nbsp;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; MqttGame.Connect;</div><div>&nbsp; &nbsp; &nbsp; LblConnection.Text = 'Not Connected';</div><div>&nbsp; &nbsp; &nbsp; LblConnection.clProSettings.FontColor = clAlphaColor.clHexToColor('#DA1212');</div><div>&nbsp; &nbsp; &nbsp; LblConnection.SetclProSettings(LblConnection.clProSettings);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; LblConnection.Text = 'Connected';</div><div>&nbsp; &nbsp; &nbsp; LblConnection.clProSettings.FontColor = clAlphaColor.clHexToColor('#00A9FF');</div><div>&nbsp; &nbsp; &nbsp; LblConnection.SetclProSettings(LblConnection.clProSettings);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div><br></div><div>void FoodPoint;</div><div>&nbsp;&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Case RandomHealthyIndex Of</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp;0:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY1.Text = '2';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;1:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY1.Text = '4';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;2:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY1.Text = '6';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;3:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY1.Text = '8';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;4:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY1.Text = '10';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;5:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY1.Text = '12';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;6:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY1.Text = '14';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;7:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY1.Text = '16';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;8:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY1.Text = '18';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;9:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY1.Caption = '20';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; Case RandomUnHealthyIndex Of</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp;10:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY2.Caption = '-2';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;11:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY2.Caption = '-4';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;12:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY2.Caption = '-6';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;13:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY2.Caption = '-8';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;14:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY2.Caption = '-10';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;15:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY2.Caption = '-12';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;16:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY2.Caption = '-14';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;17:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY2.Text = '-16';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;18:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY2.Text = '-18';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;19:</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; LblImageY2.Text = '-20';</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>void FillBasket;</div><div>&nbsp;&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp;if(TimerClock.Enabled == true)</div><div>&nbsp; &nbsp;{</div><div>&nbsp; &nbsp; if ((Score &gt; 0) &amp;&amp; (Score &lt; 150))</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; GameForm.setImage(ImageBasket , '<a href="https://clomosy.com/demos/foodBasket.png" target="_blank" rel="nofollow">https://clomosy.com/demos/foodBasket.png</a>');</div><div>&nbsp; &nbsp; &nbsp; TimerGame.Interval = 5;</div><div>&nbsp; &nbsp; &nbsp; LblScore.clProSettings.FontSize = 20;</div><div>&nbsp; &nbsp; &nbsp; LblScore.SetclProSettings(LblScore.clProSettings);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; if ((Score &gt; 150) &amp;&amp;(Score &lt; 300))</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; GameForm.SetImage(ImageBasket , '<a href="https://clomosy.com/demos/foodBasket2.png" target="_blank" rel="nofollow">https://clomosy.com/demos/foodBasket2.png</a>');</div><div>&nbsp; &nbsp; &nbsp; TimerGame.Interval = 3;</div><div>&nbsp; &nbsp; &nbsp; ImageY1Speed = 7;</div><div>&nbsp; &nbsp; &nbsp; ImageY2Speed = 6;</div><div>&nbsp; &nbsp; &nbsp; PlayerSpeed = 7;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; if(Score &gt; 300)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; TimerGame.Interval = 1;</div><div>&nbsp; &nbsp; &nbsp; GameForm.SetImage(ImageBasket , '<a href="https://clomosy.com/demos/foodBasket3.png" target="_blank" rel="nofollow">https://clomosy.com/demos/foodBasket3.png</a>');</div><div>&nbsp; &nbsp; &nbsp; if ((Score &gt; 300) &amp;&amp; (Score &lt; 450))</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageY1Speed = 8;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageY2Speed = 7;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PlayerSpeed = 8;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageY1.Width = TForm(GameForm).ClientWidth / 6;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageY1.Height = TForm(GameForm).ClientHeight / 12;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageY2.Width = TForm(GameForm).ClientWidth / 5;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageY2.Height = TForm(GameForm).ClientHeight / 10;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; if ((Score &gt; 450) &amp;&amp; (Score &lt; 600))</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageY1Speed = 8;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageY2Speed = 9;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PlayerSpeed = 9;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageBasket.Width = TForm(GameForm).ClientWidth / 3;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; if ((Score &gt; 600) &amp;&amp; (Score &lt; 750))</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageY1Speed = 9;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageY2Speed = 7;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PlayerSpeed = 9</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; if ((Score &gt; 750) &amp;&amp; (Score &lt; 1000))</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageY1Speed = 10;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageY2Speed = 8;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PlayerSpeed = 10;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; if(Score &gt; 1000)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageY1Speed = 11;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageY2Speed = 9;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PlayerSpeed = 10;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.clProSettings.FontSize = 18;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if ((Score &gt; 1000)&amp;&amp;(Score &lt; 10000))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblScore.clProSettings.FontSize = 16;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; else if ((Score &gt; 10000)&amp;&amp;(Score &lt; 100000))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblScore.clProSettings.FontSize = 14;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.SetclProSettings(LblScore.clProSettings);</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;}</div><div>&nbsp; }</div><div><br></div><div>void ScoreAnimation;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if(AnimationStart == true)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ImageAnm.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; if(ImageAnm.Position.Y &lt; 50)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageAnm.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageAnm.Position.Y = 250;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; AnimationStart = False;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp;ImageAnm.Visible = true;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;ImageAnm.Position.Y = ImageAnm.Position.Y - 5;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>void FoodCollection;</div><div>&nbsp;&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Distance1 = Sqrt(Sqr(ImageBasket.Position.X - ImageY1.Position.X) + Sqr(ImageBasket.Position.Y - ImageY1.Position.Y));</div><div>&nbsp; &nbsp; Distance2 = Sqrt(Sqr(ImageBasket.Position.X - ImageY2.Position.X) + Sqr(ImageBasket.Position.Y - ImageY2.Position.Y));</div><div>&nbsp; &nbsp; if ((Distance1 &gt; 0) &amp;&amp; (Distance1 &lt;= 45))</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; AnimationStart = true;</div><div>&nbsp; &nbsp; &nbsp; Case RandomHealthyIndex Of</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp;0:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score + 2;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.setImage(ImageAnm , '<a href="https://clomosy.com/demos/cheese.png" target="_blank" rel="nofollow">https://clomosy.com/demos/cheese.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;1:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score + 4;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp;GameForm.setImage(ImageAnm , '<a href="https://clomosy.com/demos/meat.png" target="_blank" rel="nofollow">https://clomosy.com/demos/meat.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;2:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score + 6;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.setImage(ImageAnm , '<a href="https://clomosy.com/demos/milk.png" target="_blank" rel="nofollow">https://clomosy.com/demos/milk.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;3:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score + 8;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.setImage(ImageAnm , '<a href="https://clomosy.com/demos/fish.png" target="_blank" rel="nofollow">https://clomosy.com/demos/fish.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;4:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score + 10;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.setImage(ImageAnm , '<a href="https://clomosy.com/demos/sweetcorn.png" target="_blank" rel="nofollow">https://clomosy.com/demos/sweetcorn.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;5:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score + 12;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.setImage(ImageAnm , '<a href="https://clomosy.com/demos/watermel&#111;n.png" target="_blank" rel="nofollow">https://clomosy.com/demos/watermelon.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;6:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score + 14;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.setImage(ImageAnm , '<a href="https://clomosy.com/demos/apple.png" target="_blank" rel="nofollow">https://clomosy.com/demos/apple.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;7:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score + 16;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.setImage(ImageAnm , '<a href="https://clomosy.com/demos/carrot.png" target="_blank" rel="nofollow">https://clomosy.com/demos/carrot.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;8:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score + 18;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.setImage(ImageAnm , '<a href="https://clomosy.com/demos/strawberry.png" target="_blank" rel="nofollow">https://clomosy.com/demos/strawberry.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;9:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score + 20;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.setImage(ImageAnm , '<a href="https://clomosy.com/demos/aubergine.png" target="_blank" rel="nofollow">https://clomosy.com/demos/aubergine.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; ImageY1.Position.Y = 50;</div><div>&nbsp; &nbsp; &nbsp; ImageY1.Position.X = clMath.GenerateRandom(60 , TForm(GameForm).ClientWidth - 60);</div><div>&nbsp; &nbsp; &nbsp; RandomHealthyIndex = clMath.GenerateRandom(0,9);</div><div>&nbsp; &nbsp; &nbsp; GameForm.SetImage(ImageY1 ,ListFoods.GetItem(RandomHealthyIndex));</div><div>&nbsp; &nbsp; &nbsp; FillBasket;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; if ((Distance2 &gt; -10) &amp;&amp; (Distance2 &lt;= 45))</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; AnimationStart = true;</div><div>&nbsp; &nbsp; &nbsp; Case RandomUnHealthyIndex Of</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp;10:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score - 2;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.SetImage(ImageAnm , '<a href="https://clomosy.com/demos/noddle.png" target="_blank" rel="nofollow">https://clomosy.com/demos/noddle.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;11:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score - 4;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.SetImage(ImageAnm , '<a href="https://clomosy.com/demos/toast.png" target="_blank" rel="nofollow">https://clomosy.com/demos/toast.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;12:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score - 6;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.SetImage(ImageAnm , '<a href="https://clomosy.com/demos/hamburger.png" target="_blank" rel="nofollow">https://clomosy.com/demos/hamburger.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;13:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score - 8;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.SetImage(ImageAnm , '<a href="https://clomosy.com/demos/chips.png" target="_blank" rel="nofollow">https://clomosy.com/demos/chips.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;14:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score - 10;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.SetImage(ImageAnm , '<a href="https://clomosy.com/demos/fruitJuice.png" target="_blank" rel="nofollow">https://clomosy.com/demos/fruitJuice.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;15:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score - 12;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.SetImage(ImageAnm , '<a href="https://clomosy.com/demos/iceCream.png" target="_blank" rel="nofollow">https://clomosy.com/demos/iceCream.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;16:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score - 14;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.SetImage(ImageAnm , '<a href="https://clomosy.com/demos/chocolate.png" target="_blank" rel="nofollow">https://clomosy.com/demos/chocolate.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;17:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score - 16;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.SetImage(ImageAnm , '<a href="https://clomosy.com/demos/pie.png" target="_blank" rel="nofollow">https://clomosy.com/demos/pie.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;18:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score - 18;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.SetImage(ImageAnm , '<a href="https://clomosy.com/demos/cake.png" target="_blank" rel="nofollow">https://clomosy.com/demos/cake.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;19:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Score = Score - 20;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GameForm.SetImage(ImageAnm , '<a href="https://clomosy.com/demos/topitop.png" target="_blank" rel="nofollow">https://clomosy.com/demos/topitop.png</a>');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; if(Score &lt; 0)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp;Score = 0;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; ImageY2.Position.Y = 50;</div><div>&nbsp; &nbsp; &nbsp; ImageY2.Position.X = clMath.GenerateRandom(60 , TForm(GameForm).ClientWidth - 60);</div><div>&nbsp; &nbsp; &nbsp; RandomUnHealthyIndex = clMath.GenerateRandom(10,20);</div><div>&nbsp; &nbsp; &nbsp; GameForm.SetImage(ImageY2 ,ListFoods.GetItem(RandomUnHealthyIndex));</div><div>&nbsp; &nbsp; &nbsp; FillBasket;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div><br></div><div>void CreateGameForm</div><div>&nbsp; {</div><div>&nbsp; &nbsp; GameForm = TclGameForm.Create(Self);</div><div>&nbsp; &nbsp; GameForm.SetFormBGImage('<a href="https://clomosy.com/demos/FooodBg.png" target="_blank" rel="nofollow">https://clomosy.com/demos/fooodBg.png</a>');</div><div>&nbsp; &nbsp; GameForm.AddNewEvent(GameForm,tbeOnFormCloseQuery,'CloseForm');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Vibrate = TclDeviceManager.Create;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Time = 60;</div><div>&nbsp; &nbsp; Score = 0;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; ImageY1Speed = 6;</div><div>&nbsp; &nbsp; ImageY2Speed = 5;</div><div>&nbsp; &nbsp; PlayerSpeed = 6;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ListFoods = TclArrayString.Create;</div><div>&nbsp; &nbsp; //Sağlıklılar</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/cheese.png" target="_blank" rel="nofollow">https://clomosy.com/demos/cheese.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/meat.png" target="_blank" rel="nofollow">https://clomosy.com/demos/meat.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/milk.png" target="_blank" rel="nofollow">https://clomosy.com/demos/milk.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/fish.png" target="_blank" rel="nofollow">https://clomosy.com/demos/fish.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/sweetcorn.png" target="_blank" rel="nofollow">https://clomosy.com/demos/sweetcorn.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/watermel&#111;n.png" target="_blank" rel="nofollow">https://clomosy.com/demos/watermelon.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/apple.png" target="_blank" rel="nofollow">https://clomosy.com/demos/apple.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/carrot.png" target="_blank" rel="nofollow">https://clomosy.com/demos/carrot.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/strawberry.png" target="_blank" rel="nofollow">https://clomosy.com/demos/strawberry.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/aubergine.png" target="_blank" rel="nofollow">https://clomosy.com/demos/aubergine.png</a>');</div><div>&nbsp; &nbsp; //Sağlıksızlar :&nbsp;</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/noddle.png" target="_blank" rel="nofollow">https://clomosy.com/demos/noddle.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/toast.png" target="_blank" rel="nofollow">https://clomosy.com/demos/toast.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/hamburger.png" target="_blank" rel="nofollow">https://clomosy.com/demos/hamburger.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/chips.png" target="_blank" rel="nofollow">https://clomosy.com/demos/chips.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/fruitJuice.png" target="_blank" rel="nofollow">https://clomosy.com/demos/fruitJuice.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/iceCream.png" target="_blank" rel="nofollow">https://clomosy.com/demos/iceCream.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/chocolate.png" target="_blank" rel="nofollow">https://clomosy.com/demos/chocolate.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/pie.png" target="_blank" rel="nofollow">https://clomosy.com/demos/pie.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/cake.png" target="_blank" rel="nofollow">https://clomosy.com/demos/cake.png</a>');</div><div>&nbsp; &nbsp; ListFoods.Add('<a href="https://clomosy.com/demos/topitop.png" target="_blank" rel="nofollow">https://clomosy.com/demos/topitop.png</a>');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; RandomHealthyIndex = clMath.GenerateRandom(0 , 9);</div><div>&nbsp; &nbsp; RandomUnHealthyIndex = clMath.GenerateRandom(10,20);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; PanelTop = GameForm.AddNewProPanel(GameForm , 'PanelTop');</div><div>&nbsp; &nbsp; PanelTop.Align = alMostTop;</div><div>&nbsp; &nbsp; PanelTop.Margins.Left = 10;</div><div>&nbsp; &nbsp; PanelTop.Margins.Right = 10;</div><div>&nbsp; &nbsp; PanelTop.Margins.top = -10;</div><div>&nbsp; &nbsp; PanelTop.Height = TForm(GameForm).ClientHeight / 6;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; PanelCenter = GameForm.AddNewProPanel(GameForm , 'PanelCenter');</div><div>&nbsp; &nbsp; PanelCenter.Align = alCenter;</div><div>&nbsp; &nbsp; PanelCenter.Margins.Left = 10;</div><div>&nbsp; &nbsp; PanelCenter.Margins.Right = 10;</div><div>&nbsp; &nbsp; PanelCenter.Margins.Top = 250;</div><div>&nbsp; &nbsp; PanelCenter.Height = TForm(GameForm).ClientHeight / 8;</div><div>&nbsp; &nbsp; PanelCenter.Width = TForm(GameForm).ClientWidth;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ImageBack = GameForm.AddNewProImage(PanelTop, 'ImageBack');</div><div>&nbsp; &nbsp; ImageBack.Align = alMostLeft;</div><div>&nbsp; &nbsp; ImageBack.Width = TForm(GameForm).ClientWidth / 7;</div><div>&nbsp; &nbsp; ImageBack.Height = TForm(GameForm).ClientHeight / 7;</div><div>&nbsp; &nbsp; ImageBack.Margins.Left = 5;</div><div>&nbsp; &nbsp; GameForm.SetImage(ImageBack , '<a href="https://clomosy.com/demos/XoXback.png" target="_blank" rel="nofollow">https://clomosy.com/demos/XoXback.png</a>');</div><div>&nbsp; &nbsp; GameForm.AddNewEvent(ImageBack , tbeOnClick , 'CloseForm');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ImageNutrients = GameForm.AddNewProImage(GameForm , 'ImageNutrients');</div><div>&nbsp; &nbsp; ImageNutrients.Align = alClient;</div><div>&nbsp; &nbsp; GameForm.SetImage(ImageNutrients , '<a href="https://clomosy.com/demos/FoodPointsTable.png" target="_blank" rel="nofollow">https://clomosy.com/demos/FoodPointsTable.png</a>');</div><div>&nbsp; &nbsp; ImageNutrients.Margins.Left = 20;</div><div>&nbsp; &nbsp; ImageNutrients.Margins.Right = 20;</div><div>&nbsp; &nbsp; ImageNutrients.Visible = False;</div><div>&nbsp; &nbsp; ImageNutrients.clProSettings.IsFill = True;</div><div>&nbsp; &nbsp; ImageNutrients.clProSettings.IsRound = True;</div><div>&nbsp; &nbsp; ImageNutrients.clProSettings.RoundHeight = 10;</div><div>&nbsp; &nbsp; ImageNutrients.clProSettings.RoundWidth = 10;</div><div>&nbsp; &nbsp; ImageNutrients.SetclProSettings(ImageNutrients.clProSettings);</div><div>&nbsp; &nbsp; GameForm.AddNewEvent(ImageNutrients , tbeOnClick , 'OpenFoodImage');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ImageBesinTikla = GameForm.AddNewProImage(PanelTop , 'ImageBesinTikla');</div><div>&nbsp; &nbsp; ImageBesinTikla.Align = alMostRight;</div><div>&nbsp; &nbsp; GameForm.SetImage(ImageBesinTikla , '<a href="https://clomosy.com/demos/RopeQuesti&#111;nMark.png" target="_blank" rel="nofollow">https://clomosy.com/demos/RopeQuestionMark.png</a>');</div><div>&nbsp; &nbsp; ImageBesinTikla.Width = PanelTop.Width / 8;</div><div>&nbsp; &nbsp; ImageBesinTikla.Height = PanelTop.Height / 4;</div><div>&nbsp; &nbsp; GameForm.AddNewEvent(ImageBesinTikla , tbeOnClick , 'OpenFoodImage');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ImageBasket = GameForm.AddNewProImage(GameForm , 'ImageBasket');</div><div>&nbsp; &nbsp; ImageBasket.Align = alNone;</div><div>&nbsp; &nbsp; ImageBasket.Position.Y = TForm(GameForm).ClientHeight - 100;</div><div>&nbsp; &nbsp; ImageBasket.Position.X = TForm(GameForm).ClientWidth / 3;</div><div>&nbsp; &nbsp; ImageBasket.Width = TForm(GameForm).ClientWidth / 4;</div><div>&nbsp; &nbsp; ImageBasket.Height = TForm(GameForm).ClientHeight / 8;</div><div>&nbsp; &nbsp; GameForm.SetImage(ImageBasket , '<a href="https://clomosy.com/demos/foodBasket.png" target="_blank" rel="nofollow">https://clomosy.com/demos/foodBasket.png</a>');</div><div>&nbsp; &nbsp; clRTMethod(ImageBasket, 'BringToFront');</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; ImageTime = GameForm.AddNewProImage(PanelTop , 'ImageTime');</div><div>&nbsp; &nbsp; GameForm.SetImage(ImageTime , '<a href="https://clomosy.com/demos/foodIn&#102;ormati&#111;nBox.png" target="_blank" rel="nofollow">https://clomosy.com/demos/foodInformationBox.png</a>');</div><div>&nbsp; &nbsp; ImageTime.Align = alCenter;</div><div>&nbsp; &nbsp; ImageTime.Width = PanelTop.Width / 3.25;</div><div>&nbsp; &nbsp; ImageTime.Height = PanelTop.Height;</div><div>&nbsp; &nbsp; ImageTime.Margins.Right = 25;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; ImageScore = GameForm.AddNewProImage(PanelTop , 'ImageScore');</div><div>&nbsp; &nbsp; GameForm.SetImage(ImageScore , '<a href="https://clomosy.com/demos/foodIn&#102;ormati&#111;nPointBox.png" target="_blank" rel="nofollow">https://clomosy.com/demos/foodInformationPointBox.png</a>');</div><div>&nbsp; &nbsp; ImageScore.Align = alMostRight;</div><div>&nbsp; &nbsp; ImageScore.Width = PanelTop.Width / 6;</div><div>&nbsp; &nbsp; ImageScore.Height = PanelTop.Height;</div><div>&nbsp; &nbsp; ImageScore.Margins.Right = 25;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; ImageLeft = GameForm.AddNewProImage(PanelCenter , 'ImageLeft');</div><div>&nbsp; &nbsp; ImageLeft.Align = alLeft;</div><div>&nbsp; &nbsp; ImageLeft.Margins.Left = 10;</div><div>&nbsp; &nbsp; GameForm.SetImage(ImageLeft , '<a href="https://clomosy.com/demos/RopeLeft.png" target="_blank" rel="nofollow">https://clomosy.com/demos/RopeLeft.png</a>');</div><div>&nbsp; &nbsp; GameForm.AddNewEvent(ImageLeft , tbeOnClick , 'PlayerMoveLeft');</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; ImageRight = GameForm.AddNewProImage(PanelCenter , 'ImageRight');</div><div>&nbsp; &nbsp; ImageRight.Align = alRight;</div><div>&nbsp; &nbsp; ImageRight.Margins.Right = 10;</div><div>&nbsp; &nbsp; GameForm.SetImage(ImageRight , '<a href="https://clomosy.com/demos/RopeRight.png" target="_blank" rel="nofollow">https://clomosy.com/demos/RopeRight.png</a>');</div><div>&nbsp; &nbsp; GameForm.AddNewEvent(ImageRight , tbeOnClick , 'PlayerMoveRight');</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; ImageY1 = GameForm.AddNewProImage(GameForm , 'ImageY1');</div><div>&nbsp; &nbsp; ImageY1.Align = alNone;</div><div>&nbsp; &nbsp; ImageY1.Width = TForm(GameForm).ClientWidth / 6;</div><div>&nbsp; &nbsp; ImageY1.Height = TForm(GameForm).ClientHeight / 12;&nbsp;</div><div>&nbsp; &nbsp; ImageY1.Position.Y = 50;</div><div>&nbsp; &nbsp; clRTMethod(ImageY1, 'SendToBack');</div><div>&nbsp; &nbsp; RandomHealthyIndex = clMath.GenerateRandom(0,9);</div><div>&nbsp; &nbsp; GameForm.SetImage(ImageY1 , ListFoods.GetItem(RandomHealthyIndex));</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; ImageY2 = GameForm.AddNewProImage(GameForm , 'ImageY2');</div><div>&nbsp; &nbsp; ImageY2.Align = alNone;</div><div>&nbsp; &nbsp; ImageY2.Width = TForm(GameForm).ClientWidth / 6;</div><div>&nbsp; &nbsp; ImageY2.Height = TForm(GameForm).ClientHeight / 12;&nbsp;</div><div>&nbsp; &nbsp; ImageY2.Position.Y = 50;</div><div>&nbsp; &nbsp; clRTMethod(ImageY2, 'SendToBack');</div><div>&nbsp; &nbsp; RandomUnHealthyIndex = clMath.GenerateRandom(10,20);</div><div>&nbsp; &nbsp; GameForm.SetImage(ImageY2, ListFoods.GetItem(RandomUnHealthyIndex));</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; LblTime = GameForm.AddNewProLabel(ImageTime , 'LblTime' , ''+IntToStr(Time)+'');</div><div>&nbsp; &nbsp; LblTime.Align = alCenter;</div><div>&nbsp; &nbsp; LblTime.clProSettings.TextSettings.Font.Style =&nbsp; &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; LblTime.clProSettings.FontSize = 25;</div><div>&nbsp; &nbsp; LblTime.clProSettings.FontHorzAlign = palcenter;</div><div>&nbsp; &nbsp; LblTime.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; &nbsp; LblTime.SetclProSettings(LblTime.clProSettings);</div><div><br></div><div>&nbsp; &nbsp; LblScore = GameForm.AddNewProLabel(ImageScore , 'LblScore' , ''+IntToStr(Score)+'');</div><div>&nbsp; &nbsp; LblScore.Align = alCenter;</div><div>&nbsp; &nbsp; LblScore.Properties.AutoSize = True;</div><div>&nbsp; &nbsp; LblScore.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; LblScore.clProSettings.FontSize = 20;</div><div>&nbsp; &nbsp; LblScore.SetclProSettings(LblScore.clProSettings);</div><div><br></div><div>&nbsp; &nbsp; TimerGame = GameForm.AddNewTimer(GameForm , 'TimerGame' , 4);</div><div>&nbsp; &nbsp; TimerGame.Interval = 5;</div><div>&nbsp; &nbsp; TimerGame.Enabled = True;</div><div>&nbsp; &nbsp; GameForm.AddNewEvent(TimerGame , tbeOnTimer , 'GameOperations');</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; TimerClock = GameForm.AddNewTimer(GameForm , 'TimerClock' , 1000);</div><div>&nbsp; &nbsp; GameForm.AddNewEvent(TimerClock , tbeOnTimer , 'TimePass');</div><div>&nbsp; &nbsp; TimerClock.Enabled = True;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; LblConnection = GameForm.AddNewProLabel(GameForm , 'LblConnection' , 'NOT CONNECTED');</div><div>&nbsp; &nbsp; LblConnection.Align = alMostTop;</div><div>&nbsp; &nbsp; LblConnection.clProSettings.FontSize = 20;</div><div>&nbsp; &nbsp; LblConnection.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; LblConnection.clProSettings.FontColor = clAlphaColor.clHexToColor('#FFFFFF');</div><div>&nbsp; &nbsp; LblConnection.clProSettings.FontHorzAlign = palcenter;</div><div>&nbsp; &nbsp; LblConnection.SetclProSettings(LblConnection.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; LblPlayerName = GameForm.AddNewProLabel(ImageBasket , 'LblPlayerName' , Clomosy.AppUserDisplayName);</div><div>&nbsp; &nbsp; LblPlayerName.Align = alCenter;</div><div>&nbsp; &nbsp; LblPlayerName.Margins.Bottom = 100;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; LblPlayerName.clProSettings.FontSize = 20;</div><div>&nbsp; &nbsp; LblPlayerName.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; LblPlayerName.clProSettings.FontColor = clAlphaColor.clHexToColor('#FFFFFF');</div><div>&nbsp; &nbsp; LblPlayerName.clProSettings.FontHorzAlign = palcenter;</div><div>&nbsp; &nbsp; LblPlayerName.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; &nbsp; LblPlayerName.SetclProSettings(LblPlayerName.clProSettings);</div><div>&nbsp; &nbsp; LblImageY1 = GameForm.AddNewProLabel(ImageY1 , 'LblImageY1' , '');</div><div>&nbsp; &nbsp; LblImageY1.Align = alCenter;</div><div>&nbsp; &nbsp; LblImageY1.Margins.Bottom = 90;</div><div>&nbsp; &nbsp; LblImageY1.Height = 200;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; LblImageY1.clProSettings.FontSize = 35;</div><div>&nbsp; &nbsp; LblImageY1.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; LblImageY1.clProSettings.FontColor = clAlphaColor.clHexToColor('#539165');</div><div>&nbsp; &nbsp; LblImageY1.clProSettings.FontHorzAlign = palcenter;</div><div>&nbsp; &nbsp; LblImageY1.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; &nbsp; LblImageY1.SetclProSettings(LblImageY1.clProSettings)</div><div><br></div><div>&nbsp; &nbsp; LblImageY2 = GameForm.AddNewProLabel(ImageY2 , 'LblImageY2' , '');</div><div>&nbsp; &nbsp; LblImageY2.Align = alCenter;</div><div>&nbsp; &nbsp; LblImageY2.Margins.Bottom = 90;</div><div>&nbsp; &nbsp; LblImageY2.Height = 200;</div><div>&nbsp; &nbsp; //HEREM</div><div>&nbsp; &nbsp; /*</div><div>&nbsp; &nbsp; LblImageY2.clProSettings = LblImageY1.clProSettings;</div><div>&nbsp; &nbsp; LblImageY2&nbsp;</div><div>&nbsp; &nbsp; */</div><div>&nbsp; &nbsp; LblImageY2.clProSettings.FontSize = 35;</div><div>&nbsp; &nbsp; LblImageY2.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; LblImageY2.clProSettings.FontColor = clAlphaColor.clHexToColor('#C51605');</div><div>&nbsp; &nbsp; LblImageY2.clProSettings.FontHorzAlign = palcenter;</div><div>&nbsp; &nbsp; LblImageY2.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; &nbsp; LblImageY2.SetclProSettings(LblImageY2.clProSettings)</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ImageAnm = GameForm.AddNewProImage(GameForm , 'ImageAnm');</div><div>&nbsp; &nbsp; ImageAnm.Align = alNone;</div><div>&nbsp; &nbsp; ImageAnm.Visible = False;</div><div>&nbsp; &nbsp; ImageAnm.Position.Y = 250;</div><div>&nbsp; &nbsp; ImageAnm.Position.X = 250;</div><div>&nbsp; &nbsp; ImageAnm.Width = TForm(GameForm).ClientWidth / 10;</div><div>&nbsp; &nbsp; ImageAnm.Height = TForm(GameForm).ClientHeight / 20;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; MqttGame = GameForm.AddNewMQTTConnection(GameForm , 'MqttGame');</div><div>&nbsp; &nbsp; GameForm.AddNewEvent(MqttGame , tbeOnMQTTStatusChanged , 'MqttGameChanged');</div><div>&nbsp; &nbsp; MqttGame.Channel = 'Room';</div><div>&nbsp; &nbsp; MqttGame.Connect;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; LblEndScore = GameForm.AddNewProLabel(GameForm , 'LblEndScore' , 'DENEME');</div><div>&nbsp; &nbsp; LblEndScore.clProSettings.FontSize = 30;</div><div>&nbsp; &nbsp; LblEndScore.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; LblEndScore.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp; LblEndScore.clProSettings.FontHorzAlign = palcenter;</div><div>&nbsp; &nbsp; LblEndScore.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; &nbsp; LblEndScore.SetclProSettings(LblEndScore.clProSettings)</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; LblEndScore.Align = alCenter;</div><div>&nbsp; &nbsp; LblEndScore.Visible = False;</div><div>&nbsp; &nbsp; LblEndScore.Width = TForm(GameForm).ClientWidth;</div><div>&nbsp; &nbsp; LblEndScore.Height = TForm(GameForm).ClientHeight / 6;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; GameForm.Run;</div><div>&nbsp; }</div><div><br></div><div>void FoodPosition;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if (ImageY1.Position.Y &gt; TForm(GameForm).ClientHeight)&nbsp;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ImageY1.Position.Y = 50;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; ImageY1.Position.X = clMath.GenerateRandom(80 , TForm(GameForm).ClientWidth - 80);</div><div>&nbsp; &nbsp; &nbsp; RandomHealthyIndex = clMath.GenerateRandom(0,9);</div><div>&nbsp; &nbsp; &nbsp; GameForm.SetImage(ImageY1 ,ListFoods.GetItem(RandomHealthyIndex));</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ImageY1.Position.Y = ImageY1.Position.Y + ImageY1Speed;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; if (ImageY2.Position.Y &gt; TForm(GameForm).ClientHeight)&nbsp;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ImageY2.Position.Y = 50;</div><div>&nbsp; &nbsp; &nbsp; ImageY2.Position.X = clMath.GenerateRandom(80 , TForm(GameForm).ClientWidth - 80);</div><div>&nbsp; &nbsp; &nbsp; RandomUnHealthyIndex = clMath.GenerateRandom(10,20);</div><div>&nbsp; &nbsp; &nbsp; GameForm.SetImage(ImageY2 ,ListFoods.GetItem(RandomUnHealthyIndex));</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ImageY2.Position.Y = ImageY2.Position.Y + ImageY2Speed;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>void PlayerMoveLeft;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; PlayerDirection = -1;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>void PlayerMoveRight;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; PlayerDirection = 1;</div><div>&nbsp; }</div><div><br></div><div>void PlayerMove;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if(TimerGame.Enabled == true)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; if(PlayerDirection == -1)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageBasket.Position.X = ImageBasket.Position.X - PlayerSpeed;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if(ImageBasket.Position.X &lt; 0)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ImageBasket.Position.X = 0;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; else if(PlayerDirection == 1)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ImageBasket.Position.X = ImageBasket.Position.X + PlayerSpeed;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if((ImageBasket.Position.X + ImageBasket.Width) &gt; TForm(GameForm).ClientWidth)&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ImageBasket.Position.X = TForm(GameForm).ClientWidth - ImageBasket.Width;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div><br></div><div>void TimePass;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if(Time &gt; 0)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Time = Time - 1;</div><div>&nbsp; &nbsp; &nbsp; LblTime.Text = IntToStr(Time);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; //MqttGame.Send(Clomosy.AppUserDisplayName + '+' + IntToStr(Score) + '+' + Clomosy.AppUserGUID);&nbsp;</div><div>&nbsp; &nbsp; &nbsp; TimerGame.Enabled = False;</div><div>&nbsp; &nbsp; &nbsp; TimerClock.Enabled = False;</div><div>&nbsp; &nbsp; &nbsp; ImageY1.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; ImageY2.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; ImageAnm.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; //ShowMessage('Süreniz Doldu !&nbsp; ');&nbsp;</div><div>&nbsp; &nbsp; &nbsp; Vibrate.Vibrate(300);</div><div>&nbsp; &nbsp; &nbsp; ImageBasket.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; PanelCenter.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; LblEndScore.Visible = True;</div><div>&nbsp; &nbsp; &nbsp; LblEndScore.Text = 'Skorunuz : ' + IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; //Score = 0;</div><div>&nbsp; &nbsp; &nbsp; LblScore.Text = IntToStr(Score);</div><div>&nbsp; &nbsp; &nbsp; ImageNutrients.Visible = False;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; sendTimer = GameForm.AddNewTimer(GameForm,'sendTimer',1000);</div><div>&nbsp; &nbsp; &nbsp; sendTimer.Enabled = True;</div><div>&nbsp; &nbsp; &nbsp; GameForm.AddNewEvent(sendTimer,tbeOnTimer,'SendMsj');</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div><br></div><div>void SendMsj;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if MqttGame.ReceivedMessage == Clomosy.AppUserGUID&nbsp;</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Gönderen:PC ----- Skorunuz Alındı');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; sendTimer.Enabled = False;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MqttGame.Send(Clomosy.AppUserDisplayName + '+' + IntToStr(Score) + '+' + Clomosy.AppUserGUID);</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; }</div><div><br></div><div>void GameOperations;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; PlayerMove;</div><div>&nbsp; &nbsp; FoodPosition;</div><div>&nbsp; &nbsp; FoodCollection;</div><div>&nbsp; &nbsp; FoodPoint;</div><div>&nbsp; &nbsp; ScoreAnimation;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>void MqttScreenChanged;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if(not MqttScreen.Connected)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MqttScreen.Connect;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LabelConnection.Text = 'Not Connected';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LabelConnection.clProSettings.FontColor = clAlphaColor.clHexToColor('#DA1212');</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LabelConnection.Text = 'Connected';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LabelConnection.clProSettings.FontColor = clAlphaColor.clHexToColor('#0079FF');</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; LabelConnection.SetclProSettings(LabelConnection.clProSettings);</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>void SortArr;</div><div>&nbsp; var</div><div>&nbsp; &nbsp; X, Y: Integer;</div><div>&nbsp; &nbsp; TempName,TempScore,TempGuid: string;</div><div>&nbsp;&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; for (X = 0 to&nbsp; ScoreArray.Count - 1)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; for (Y = X + 1 to ScoreArray.Count - 1)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // sıralama: Büyükten küçüğe doğru sıralama yapacak&nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if StrToInt(ScoreArray.GetItem(X)) &lt; StrToInt(ScoreArray.GetItem(Y))&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Swap scores</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempScore = ScoreArray.GetItem(X);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScoreArray.SetItem(X, ScoreArray.GetItem(Y));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScoreArray.SetItem(Y, TempScore);</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Swap names</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempName = NameArray.GetItem(X);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NameArray.SetItem(X, NameArray.GetItem(Y));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NameArray.SetItem(Y, TempName);</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Swap GUIDs</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempGuid = GuidArray.GetItem(X);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GuidArray.SetItem(X, GuidArray.GetItem(Y));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GuidArray.SetItem(Y, TempGuid);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; }</div><div><br></div><div>void Dnm;</div><div>&nbsp; var</div><div>&nbsp; &nbsp;J : Integer;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage(IntToStr(NameArray.Count));</div><div>&nbsp; &nbsp; For (J = 0 to NameArray.Count - 1)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp;ShowMessage(NameArray.GetItem(J));</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>void MqttScreenPublish;</div><div>&nbsp; var</div><div>&nbsp; &nbsp;J , X: Integer;</div><div>&nbsp; &nbsp;OldScore : String;</div><div>&nbsp; &nbsp;ScoreState : Boolean;</div><div>&nbsp; {&nbsp;</div><div>&nbsp; &nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if(MqttScreen.ReceivedAlRight)&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListContainer.Delimiter = '+';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListContainer.StrictDelimiter = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListContainer.DelimitedText = MqttScreen.ReceivedMessage;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GelenIsim = ListContainer&#091;0&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CapturedScore = ListContainer&#091;1&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GelenGUID = ListContainer&#091;2&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MqttScreen.Send(GelenGUID);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//ShowMessage('GelenIsim :'+ GelenIsim);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //ShowMessage('CapturedScore :'+ CapturedScore);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//ShowMessage('GelenGUID :'+ GelenGUID);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScoreState = True; //oyuncu kontrolü</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //ShowMessage(ScoreState);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For (X = 0 to ScoreArray.Count - 1)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(GuidArray.GetItem(X) == GelenGUID)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OldScore = ScoreArray.GetItem(X);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// ShowMessage('OldScore: '+ OldScore);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// ShowMessage('eşitler girdi');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScoreState = False;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if StrToInt(CapturedScore) &gt; StrToInt(OldScore)&nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //ShowMessage('CapturedScore &gt; OldScore');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScoreArray.SetItem(X,CapturedScore);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ScoreState&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NameArray.Add(GelenIsim);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GuidArray.Add(GelenGUID);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScoreArray.Add(CapturedScore);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; JsonStr = '';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; JsonStr = '&#091;';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SortArr;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For (J = 0 to NameArray.Count - 1)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; JsonStr = JsonStr + '{"BtnQueue":'+IntToStr(J + 1)+'';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; JsonStr = JsonStr + ',"BtnPlayerName":"'+NameArray.GetItem(J)+'"';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (J == NameArray.Count - 1)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; JsonStr = JsonStr + ',"BtnPlayerScore":'+ScoreArray.GetItem(J)+'}';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; JsonStr = JsonStr + ',"BtnPlayerScore":'+ ScoreArray.GetItem(J)+'},';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; JsonStr = JsonStr + '&#093;';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Qry = Clomosy.ClDataSetFromJSON(JsonStr);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UsersList.clLoadProListViewDataFromDataset(Qry);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; }</div><div><br></div><div>void CloseForm2;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; CallerForm.clShow;</div><div>&nbsp; &nbsp; ButtonPlay.Enabled = True;</div><div>&nbsp; &nbsp; TClProButton(FormExe.clFindComponent('BtnGoBack')).Click;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>void CreateExeForm;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; FormExe = TclGameForm.Create(Self);</div><div>&nbsp; &nbsp; FormExe.SetFormBGImage('<a href="https://clomosy.com/demos/FooodBg.png" target="_blank" rel="nofollow">https://clomosy.com/demos/fooodBg.png</a>');</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; LabelConnection = FormExe.AddNewProLabel(FormExe , 'LabelConnection' , 'NOT CONNECTED');</div><div>&nbsp; &nbsp; LabelConnection.clProSettings.FontSize = 20;</div><div>&nbsp; &nbsp; LabelConnection.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; LabelConnection.clProSettings.FontColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; &nbsp; LabelConnection.clProSettings.FontHorzAlign = palTrailing;</div><div>&nbsp; &nbsp; LabelConnection.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; &nbsp; LabelConnection.SetclProSettings(LabelConnection.clProSettings);</div><div><br></div><div>&nbsp; &nbsp; LabelConnection.Align = alTop;</div><div>&nbsp; &nbsp; LabelConnection.Margins.Top = 25;</div><div>&nbsp; &nbsp; LabelConnection.Margins.right = 20;</div><div>&nbsp; &nbsp; FormExe.AddNewEvent(LabelConnection , tbeOnClick , '');</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; UsersList = FormExe.AddNewProListView(FormExe , 'UsersList');</div><div>&nbsp; &nbsp; UsersList.Align = alTop;</div><div>&nbsp; &nbsp; UsersList.Height = TForm(FormExe).ClientHeight / 1.25;</div><div>&nbsp; &nbsp; UsersList.Properties.ItemSpace = 10;</div><div>&nbsp; &nbsp; UsersList.Margins.Bottom = 20;</div><div>&nbsp; &nbsp; UsersList.Margins.Top = 20;</div><div>&nbsp; &nbsp; UsersList.Margins.Left = 20;</div><div>&nbsp; &nbsp; UsersList.Margins.Right = 20;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; UsersList.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#557C55');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; UsersList.clProSettings.IsFill = True;</div><div>&nbsp; &nbsp; UsersList.clProSettings.IsRound = True;</div><div>&nbsp; &nbsp; UsersList.clProSettings.RoundWidth = 15;</div><div>&nbsp; &nbsp; UsersList.clProSettings.RoundHeight = 15;</div><div>&nbsp; &nbsp; UsersList.clProSettings.ItemHeight&nbsp; = 75;</div><div>&nbsp; &nbsp; UsersList.clProSettings.ItemWidth&nbsp; = 75;</div><div>&nbsp; &nbsp; UsersList.SetclProSettings(UsersList.clProSettings);</div><div><br></div><div>&nbsp; &nbsp; DesignerListPanel = FormExe.AddNewProListViewDesignerPanel(UsersList , 'DesignerListPanel');</div><div>&nbsp; &nbsp; DesignerListPanel.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#A6CF98');</div><div>&nbsp; &nbsp; DesignerListPanel.clProSettings.IsFill = True;</div><div>&nbsp; &nbsp; DesignerListPanel.clProSettings.IsRound = True;</div><div>&nbsp; &nbsp; DesignerListPanel.clProSettings.RoundHeight = 10;</div><div>&nbsp; &nbsp; DesignerListPanel.clProSettings.RoundWidth = 10;</div><div>&nbsp; &nbsp; DesignerListPanel.SetclProSettings(DesignerListPanel.clProSettings);</div><div>&nbsp; &nbsp; UsersList.SetDesignerPanel(DesignerListPanel);</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; Qry = TCLJSONQuery.Create(nil);</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; BtnPlayerName = FormExe.AddNewProButton(DesignerListPanel , 'BtnPlayerName' , '');</div><div>&nbsp; &nbsp; BtnPlayerName.Align = alCenter;</div><div>&nbsp; &nbsp; BtnPlayerName.Width = 200;</div><div>&nbsp; &nbsp; BtnPlayerName.Height = 65;</div><div>&nbsp; &nbsp; BtnPlayerName.clProSettings.FontSize = 20;</div><div>&nbsp; &nbsp; BtnPlayerName.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; BtnPlayerName.clProSettings.PictureSource = '<a href="https://clomosy.com/demos/foodIn&#102;ormati&#111;nBox.png" target="_blank" rel="nofollow">https://clomosy.com/demos/foodInformationBox.png</a>';</div><div>&nbsp; &nbsp; BtnPlayerName.SetclProSettings(BtnPlayerName.clProSettings);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; DesignerListPanel.AddPanelObject(BtnPlayerName , clText1);</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; BtnQueue = FormExe.AddNewProButton(DesignerListPanel , 'BtnQueue' , '');</div><div>&nbsp; &nbsp; BtnQueue.Margins.Top = 3;</div><div>&nbsp; &nbsp; BtnQueue.Margins.Bottom = 3;</div><div>&nbsp; &nbsp; BtnQueue.Margins.Left = 10;</div><div>&nbsp; &nbsp; BtnQueue.Margins.Right = 10;</div><div>&nbsp; &nbsp; BtnQueue.Align = alLeft;</div><div>&nbsp; &nbsp; BtnQueue.clProSettings.PictureSource = '<a href="https://clomosy.com/demos/foodIn&#102;ormati&#111;nPointBox.png" target="_blank" rel="nofollow">https://clomosy.com/demos/foodInformationPointBox.png</a>';</div><div>&nbsp; &nbsp; BtnQueue.clProSettings.FontSize = 30;</div><div>&nbsp; &nbsp; BtnQueue.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; BtnQueue.SetclProSettings(BtnQueue.clProSettings);</div><div><br></div><div>&nbsp; &nbsp; DesignerListPanel.AddPanelObject(BtnQueue , clText3);</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; BtnPlayerScore = FormExe.AddNewProButton(DesignerListPanel , 'BtnPlayerScore' , '');</div><div>&nbsp; &nbsp; BtnPlayerScore.Align = alRight;</div><div>&nbsp; &nbsp; BtnPlayerScore.Margins.Right = 10;</div><div>&nbsp; &nbsp; BtnPlayerScore.Margins.Left = 10;</div><div>&nbsp; &nbsp; BtnPlayerScore.Margins.Top = 3;</div><div>&nbsp; &nbsp; BtnPlayerScore.Margins.Bottom = 3;</div><div>&nbsp; &nbsp; BtnPlayerScore.clProSettings.FontSize = 30;</div><div>&nbsp; &nbsp; BtnPlayerScore.clProSettings.PictureSource = '<a href="https://clomosy.com/demos/foodIn&#102;ormati&#111;nBox.png" target="_blank" rel="nofollow">https://clomosy.com/demos/foodInformationBox.png</a>';</div><div>&nbsp; &nbsp; BtnPlayerScore.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; BtnPlayerScore.SetclProSettings(BtnPlayerScore.clProSettings);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; DesignerListPanel.AddPanelObject(BtnPlayerScore , clText2);</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; NameArray = TclArrayString.Create;</div><div>&nbsp; &nbsp; ScoreArray = TclArrayString.Create;</div><div>&nbsp; &nbsp; GuidArray = TclArrayString.Create;</div><div>&nbsp; &nbsp; ListContainer = Clomosy.StringListNew;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; MqttScreen = FormExe.AddNewMQTTConnection(FormExe , 'MqttScreen');</div><div>&nbsp; &nbsp; FormExe.AddNewEvent(MqttScreen , tbeOnMQTTStatusChanged , 'MqttScreenChanged');</div><div>&nbsp; &nbsp; FormExe.AddNewEvent(MqttScreen , tbeOnMQTTPublishReceived , 'MqttScreenPublish');</div><div>&nbsp; &nbsp; MqttScreen.Channel = 'Room';</div><div>&nbsp; &nbsp; MqttScreen.Connect;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; ImgBack = FormExe.AddNewProImage(FormExe , 'ImgBack');</div><div>&nbsp; &nbsp; ImgBack.Align = alNone;</div><div>&nbsp; &nbsp; FormExe.SetImage(ImgBack , '<a href="https://clomosy.com/demos/XoXback.png" target="_blank" rel="nofollow">https://clomosy.com/demos/XoXback.png</a>');</div><div>&nbsp; &nbsp; ImgBack.Width = TForm(FormExe).ClientWidth / 6;</div><div>&nbsp; &nbsp; ImgBack.Height = TForm(FormExe).ClientHeight / 12;</div><div>&nbsp; &nbsp; FormExe.AddNewEvent(ImgBack , tbeOnClick , 'CloseForm2');</div><div>&nbsp; &nbsp; ImgBack.Position.X = -10;</div><div>&nbsp; &nbsp; ImgBack.Position.Y = 10;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; FormExe.Run;</div><div>&nbsp; }</div><div><br></div><div>// ---------------------MAIN CODE BLOCK------------------------------------------------------------</div><div>{</div><div>&nbsp; if(Clomosy.PlatformIsMobile)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; CreateGameForm;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; CreateExeForm;</div><div>&nbsp; &nbsp; //CreateGameForm</div><div>&nbsp; }</div><div>}</div><div>// ---------------------------------------------------------------------------------------------------</div></div></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 24 Dec 2025 17:19:22 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1249&amp;PID=2780#2780</guid>
  </item> 
 </channel>
</rss>