<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Building Browsergames: Healing your players (PHP)</title>
	<atom:link href="http://buildingbrowsergames.com/2008/06/17/building-browsergames-healing-your-players-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://buildingbrowsergames.com/2008/06/17/building-browsergames-healing-your-players-php/</link>
	<description>Ever wanted to build a browsergame?</description>
	<lastBuildDate>Wed, 30 Nov 2011 19:42:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Luke</title>
		<link>http://buildingbrowsergames.com/2008/06/17/building-browsergames-healing-your-players-php/comment-page-1/#comment-621</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Tue, 21 Apr 2009 20:14:01 +0000</pubDate>
		<guid isPermaLink="false">http://buildingbrowsergames.com/?p=65#comment-621</guid>
		<description>That&#039;d definitely be better for the sake of minimizing database hits - while&lt;br&gt;I was building these scripts, I&#039;m afraid they sort of grew organically, so&lt;br&gt;optimizations that should have been made sometimes didn&#039;t.</description>
		<content:encoded><![CDATA[<p>That&#39;d definitely be better for the sake of minimizing database hits &#8211; while<br />I was building these scripts, I&#39;m afraid they sort of grew organically, so<br />optimizations that should have been made sometimes didn&#39;t.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://buildingbrowsergames.com/2008/06/17/building-browsergames-healing-your-players-php/comment-page-1/#comment-398</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Tue, 21 Apr 2009 15:14:01 +0000</pubDate>
		<guid isPermaLink="false">http://buildingbrowsergames.com/?p=65#comment-398</guid>
		<description>That&#039;d definitely be better for the sake of minimizing database hits - while&lt;br&gt;I was building these scripts, I&#039;m afraid they sort of grew organically, so&lt;br&gt;optimizations that should have been made sometimes didn&#039;t.</description>
		<content:encoded><![CDATA[<p>That&#39;d definitely be better for the sake of minimizing database hits &#8211; while<br />I was building these scripts, I&#39;m afraid they sort of grew organically, so<br />optimizations that should have been made sometimes didn&#39;t.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://buildingbrowsergames.com/2008/06/17/building-browsergames-healing-your-players-php/comment-page-1/#comment-397</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Tue, 21 Apr 2009 09:07:41 +0000</pubDate>
		<guid isPermaLink="false">http://buildingbrowsergames.com/?p=65#comment-397</guid>
		<description>Hi! Firstly, I&#039;d just like to say thank you for putting this site together. Its truly awesome and has given me a bit of a kick to actually stop thinking about doing something, and actually doing something!&lt;br&gt;&lt;br&gt;Secondly, on line 28, you poll the database to get the current gold count, yet on line 20 you&#039;ve already done this and not changed it. Wouldn&#039;t it be more efficient to insert a line above 28 such as:&lt;br&gt;$gold = $gold - $amount;&lt;br&gt;and then change the setStat to:&lt;br&gt;setStat( &#039;gc&#039;, $userID, $gold);&lt;br&gt;&lt;br&gt;You could do the same with the actual healing value as well. Avoid two calls to getStat(&#039;curhp&#039;,$userID) as you&#039;ve already got that value.&lt;br&gt;&lt;br&gt;From a performance point of view wouldn&#039;t this be better?</description>
		<content:encoded><![CDATA[<p>Hi! Firstly, I&#39;d just like to say thank you for putting this site together. Its truly awesome and has given me a bit of a kick to actually stop thinking about doing something, and actually doing something!</p>
<p>Secondly, on line 28, you poll the database to get the current gold count, yet on line 20 you&#39;ve already done this and not changed it. Wouldn&#39;t it be more efficient to insert a line above 28 such as:<br />$gold = $gold &#8211; $amount;<br />and then change the setStat to:<br />setStat( &#39;gc&#39;, $userID, $gold);</p>
<p>You could do the same with the actual healing value as well. Avoid two calls to getStat(&#39;curhp&#39;,$userID) as you&#39;ve already got that value.</p>
<p>From a performance point of view wouldn&#39;t this be better?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: obat jerawat</title>
		<link>http://buildingbrowsergames.com/2008/06/17/building-browsergames-healing-your-players-php/comment-page-1/#comment-384</link>
		<dc:creator>obat jerawat</dc:creator>
		<pubDate>Tue, 24 Mar 2009 01:10:42 +0000</pubDate>
		<guid isPermaLink="false">http://buildingbrowsergames.com/?p=65#comment-384</guid>
		<description>thanks for the info, I will try it now ...:D</description>
		<content:encoded><![CDATA[<p>thanks for the info, I will try it now &#8230;:D</p>
]]></content:encoded>
	</item>
</channel>
</rss>

