<?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: Android Game Programming by Example</title>
	<atom:link href="https://gamecodeschool.com/books/android-game-programming-by-example/feed/" rel="self" type="application/rss+xml" />
	<link>https://gamecodeschool.com/books/android-game-programming-by-example/</link>
	<description>Game Coding for Beginners</description>
	<lastBuildDate>Fri, 06 Jun 2025 18:08:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>By: Yuriy</title>
		<link>https://gamecodeschool.com/books/android-game-programming-by-example/#comment-17347</link>
		<dc:creator><![CDATA[Yuriy]]></dc:creator>
		<pubDate>Thu, 14 Jan 2021 17:33:46 +0000</pubDate>
		<guid isPermaLink="false">http://gamecodeschool.com/?p=11705#comment-17347</guid>
		<description><![CDATA[Hey, John. I&#039;m reading your book. I really like. I can&#039;t understand one thing on page 120
The method clipObjects() determines whether the object is on the screen or not.

if (objectX - objectWidth 
    currentViewportWorldCentre.x - (metresToShowX / 2)) {
        ......................


I understand the second &quot; if (objectX + objectWidth .....&quot;, because the object can be located on the left outside the screen, but it is long and therefore will fall on the screen.
But I don&#039;t understand the first &quot;if (objectX - objectWidth.....&quot;.  
If the object is located to the right of the screen, then its width does not matter.

It seems to me that it is more correct to write like this:

if (objectX &lt;  currentViewportWorldCentre.x + (metresToShowX / 2)) {

And on the Y axis as well.
Or am I wrong?]]></description>
		<content:encoded><![CDATA[<p>Hey, John. I&#8217;m reading your book. I really like. I can&#8217;t understand one thing on page 120<br />
The method clipObjects() determines whether the object is on the screen or not.</p>
<p>if (objectX &#8211; objectWidth<br />
    currentViewportWorldCentre.x &#8211; (metresToShowX / 2)) {<br />
        &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.</p>
<p>I understand the second &#8221; if (objectX + objectWidth &#8230;..&#8221;, because the object can be located on the left outside the screen, but it is long and therefore will fall on the screen.<br />
But I don&#8217;t understand the first &#8220;if (objectX &#8211; objectWidth&#8230;..&#8221;.<br />
If the object is located to the right of the screen, then its width does not matter.</p>
<p>It seems to me that it is more correct to write like this:</p>
<p>if (objectX &lt;  currentViewportWorldCentre.x + (metresToShowX / 2)) {</p>
<p>And on the Y axis as well.<br />
Or am I wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Horton</title>
		<link>https://gamecodeschool.com/books/android-game-programming-by-example/#comment-13053</link>
		<dc:creator><![CDATA[John Horton]]></dc:creator>
		<pubDate>Thu, 04 Apr 2019 15:27:27 +0000</pubDate>
		<guid isPermaLink="false">http://gamecodeschool.com/?p=11705#comment-13053</guid>
		<description><![CDATA[That is a brilliant effect!]]></description>
		<content:encoded><![CDATA[<p>That is a brilliant effect!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Warr</title>
		<link>https://gamecodeschool.com/books/android-game-programming-by-example/#comment-13045</link>
		<dc:creator><![CDATA[Matt Warr]]></dc:creator>
		<pubDate>Wed, 03 Apr 2019 20:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://gamecodeschool.com/?p=11705#comment-13045</guid>
		<description><![CDATA[Well. I think I have taken the asteroids game to the place I wanted to see it. 

Short YouTube video :

https://youtu.be/5lgSzrkiwrQ

Would love to share my code and especially would love your feedback on better ways to do it Mr Horton. 
But the changes are quite extensive so feel free to drop me an email and I will gladly send it to you.

Thanks for a truly inspiring book.
Matt]]></description>
		<content:encoded><![CDATA[<p>Well. I think I have taken the asteroids game to the place I wanted to see it. </p>
<p>Short YouTube video :</p>
<p><a href="https://youtu.be/5lgSzrkiwrQ" rel="nofollow">https://youtu.be/5lgSzrkiwrQ</a></p>
<p>Would love to share my code and especially would love your feedback on better ways to do it Mr Horton.<br />
But the changes are quite extensive so feel free to drop me an email and I will gladly send it to you.</p>
<p>Thanks for a truly inspiring book.<br />
Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Horton</title>
		<link>https://gamecodeschool.com/books/android-game-programming-by-example/#comment-12793</link>
		<dc:creator><![CDATA[John Horton]]></dc:creator>
		<pubDate>Fri, 22 Mar 2019 15:41:17 +0000</pubDate>
		<guid isPermaLink="false">http://gamecodeschool.com/?p=11705#comment-12793</guid>
		<description><![CDATA[Thanks for the comment Matt I appreciate it. I don&#039;t have any good references for those things specifically but it sounds like you are taking your development seriously and will perhaps be building bigger and more complex games soon. As such I can reccomend http://gameprogrammingpatterns.com/

The website is superb for learning how to manage complexity as our projects evolve. The examples are in C++ but it might still be useful.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the comment Matt I appreciate it. I don&#8217;t have any good references for those things specifically but it sounds like you are taking your development seriously and will perhaps be building bigger and more complex games soon. As such I can reccomend <a href="http://gameprogrammingpatterns.com/" rel="nofollow">http://gameprogrammingpatterns.com/</a></p>
<p>The website is superb for learning how to manage complexity as our projects evolve. The examples are in C++ but it might still be useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt warr</title>
		<link>https://gamecodeschool.com/books/android-game-programming-by-example/#comment-12788</link>
		<dc:creator><![CDATA[Matt warr]]></dc:creator>
		<pubDate>Thu, 21 Mar 2019 21:23:06 +0000</pubDate>
		<guid isPermaLink="false">http://gamecodeschool.com/?p=11705#comment-12788</guid>
		<description><![CDATA[John, thanks for your replies. I have made OpenGL games in the past when I was learning LWJGL. This project for me was to improve my understanding of Java and to get into Android. so far everything has been great. I also wanted to look into ways of doing powerups and weapons upgrades so I am hoping to enjoy those coming parts. 

My ultimate aim is to work out whatever is the next step up for an android device to replace spritesheets and to get a handle on monetization.. do you have any recommendation where I should read ? 

thanks again for these amazing books. I highly recommend them for anyone looking to code games for android.]]></description>
		<content:encoded><![CDATA[<p>John, thanks for your replies. I have made OpenGL games in the past when I was learning LWJGL. This project for me was to improve my understanding of Java and to get into Android. so far everything has been great. I also wanted to look into ways of doing powerups and weapons upgrades so I am hoping to enjoy those coming parts. </p>
<p>My ultimate aim is to work out whatever is the next step up for an android device to replace spritesheets and to get a handle on monetization.. do you have any recommendation where I should read ? </p>
<p>thanks again for these amazing books. I highly recommend them for anyone looking to code games for android.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
