<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Book two | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/book-two/feed/" rel="self" type="application/rss+xml" />
	<link>https://learncgames.com</link>
	<description>A blog about C, programming games and my ebook(s).</description>
	<lastBuildDate>Sun, 12 Jul 2020 21:15:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://learncgames.com/wp-content/uploads/2020/03/cropped-favicon-32x32.png</url>
	<title>Book two | Learn C Games Programming Blog</title>
	<link>https://learncgames.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">181446779</site>	<item>
		<title>Back writing book two</title>
		<link>https://learncgames.com/back-writing-book-two/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=back-writing-book-two</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Wed, 15 Jul 2020 23:00:33 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[Ebook]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Book two]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=989</guid>

					<description><![CDATA[<p>This time it&#8217;s about Learning to program games in C on the Raspberry Pi. Most of the books I&#8217;ve seen are about programming in Python, but C combined with SDL2 gives you an edge. I already know that I can get 150 frames per second in Asteroids on a Raspberry Pi 4B. The three games [&#8230;]</p>
The post <a href="https://learncgames.com/back-writing-book-two/">Back writing book two</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:623,&quot;href&quot;:&quot;https:\/\/pixabay.com\/users\/Clker-Free-Vector-Images-3736\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=37436&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260115073407\/https:\/\/pixabay.com\/users\/clker-free-vector-images-3736\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 16:49:49&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-19 13:05:07&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-23 12:26:03&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-10 02:15:06&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-03-10 02:15:06&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:624,&quot;href&quot;:&quot;https:\/\/pixabay.com\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=37436&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260205102120\/https:\/\/pixabay.com\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 16:49:59&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-19 13:05:07&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-23 12:26:03&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-10 02:15:06&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-03-10 02:15:06&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;}]'></div>
<figure id="attachment_991" aria-describedby="caption-attachment-991" style="width: 300px" class="wp-caption alignleft"><img fetchpriority="high" decoding="async" class="size-medium wp-image-991" src="https://learncgames.com/wp-content/uploads/2020/07/hexagon-37436_640-300x208.png" alt="Hexagons" width="300" height="208" srcset="https://learncgames.com/wp-content/uploads/2020/07/hexagon-37436_640-300x208.png 300w, https://learncgames.com/wp-content/uploads/2020/07/hexagon-37436_640.png 640w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-991" class="wp-caption-text">Image by <a href="https://pixabay.com/users/Clker-Free-Vector-Images-3736/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=37436">Clker-Free-Vector-Images</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=37436">Pixabay</a></figcaption></figure>
<p>This time it&#8217;s about <strong><em>Learning to program games in C on the Raspberry P</em></strong>i. Most of the books I&#8217;ve seen are about programming in Python, but C combined with SDL2 gives you an edge. I already know that I can get 150 frames per second in Asteroids on a Raspberry Pi 4B.</p>
<p>The three games for the book are</p>
<ol>
<li>Asteroids. Fully developed</li>
<li>MatchThree. About 1/2 developed.</li>
<li>Empire type game. Map generator plus large scrolling hexagon map with fog-of-war shrouding and computer AI opponents. This will be based on the <a title="Link to blog entry about Empire" href="https://learncgames.com/about-that-empire-map-generator/" target="_blank" rel="noopener noreferrer">existing Empire code</a>.</li>
</ol>
<p>The third game is one I originally wrote thirty-three years ago (<em>Dark Empire</em>) in Z80 assembler for the Zx Spectrum. I then converted all 5000 lines of code into CBM-64 6502 assembly in one month working seven all-nighters, with the last three on three successive days. That one wasn&#8217;t in hexagons but squares and of course there was no mouse.</p>
<p>On the morning after the last all-nighter I drove across Manchester to deliver the tape master copy to a railway station to be sent to the publisher in London and when I got home, I slept for 24 hours solid. I doubt I could do an all-nighter now, but 33 years ago &#8230;</p>
<p>&nbsp;</p>The post <a href="https://learncgames.com/back-writing-book-two/">Back writing book two</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">989</post-id>	</item>
	</channel>
</rss>
