<?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>game programming | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/game-programming/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>Tue, 10 Mar 2020 19:21:58 +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>game programming | 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>Why I like C for creating games</title>
		<link>https://learncgames.com/why-i-like-c-for-creating-games/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=why-i-like-c-for-creating-games</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Fri, 13 Mar 2020 00:00:37 +0000</pubDate>
				<category><![CDATA[SDL]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[game programming]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=113</guid>

					<description><![CDATA[<p>Part of the reason is SDL which is a wonderful library and whose potential I have barely touched. I used to be an 8-bit games developer back in the 1980s, writing games for CBM-64, ZX Spectrum, MSX and Amstrad CPC-464. I wrote those games in Z80 and 6502 assembly language. Thee were no libraries, no [&#8230;]</p>
The post <a href="https://learncgames.com/why-i-like-c-for-creating-games/">Why I like C for creating games</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;:824,&quot;href&quot;:&quot;https:\/\/www.youtube.com\/watch?v=aezrktPH4-Y&amp;t=6s&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20221105064434\/https:\/\/www.youtube.com\/watch?v=aezrktPH4-Y&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 19:37:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-17 22:45:45&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-21 09:37:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-28 07:11:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-10 15:10:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-01 17:32:33&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-01 17:32:33&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img fetchpriority="high" decoding="async" class="size-medium wp-image-117 alignleft" src="https://learncgames.com/wp-content/uploads/2020/03/darkempiregame-300x210.png" alt="Dark Empire ZX Spectrum game" width="300" height="210" srcset="https://learncgames.com/wp-content/uploads/2020/03/darkempiregame-300x210.png 300w, https://learncgames.com/wp-content/uploads/2020/03/darkempiregame.png 650w" sizes="(max-width: 300px) 100vw, 300px" />Part of the reason is SDL which is a wonderful library and whose potential I have barely touched. I used to be an 8-bit games developer back in the 1980s, writing games for CBM-64, ZX Spectrum, MSX and Amstrad CPC-464.</p>
<p>I wrote those games in Z80 and 6502 assembly language. Thee were no libraries, no frameworks, no debuggers (lots of print statements) and when I first started, I wrote the games on the machines themselves.  If you got a crash, the computer would hang or reset and everything had to be reloaded from tape usually.</p>
<p>True story, I started by learning 6502 and when I came to learn Z80 I did it by writing a 6502 cross-assembler in Z80.  6502 is a very simple CPU with just 69 instructions. I was given the Z80 source for a text editor (Zen) and built the 6502 assembler into it.</p>
<p>Things gradually improved, we got development machines so we just needed a small loader on the target machine that downloaded the machine code from the development machine. That speeded up development enormously.</p>
<p>C is a very simple language and SDL can shift pixels very rapidly. I wouldn&#8217;t necessarily choose C for 3D games but for 2D arcade games, I think C is nearly perfect. With SDL, once you learn how to initialise it, load graphics (from disk to GPU), blit shapes and flip the screen you are 90% of the way there.</p>
<p>That image was one of the games I wrote in 1987, an Empire &#8220;Conquer the shrouded world&#8221; game where you are playing against a computer player. There&#8217;s six minutes of gameplay on <a href="https://www.youtube.com/watch?v=aezrktPH4-Y&amp;t=6s" target="_blank" rel="noopener noreferrer">youtube</a>.</p>The post <a href="https://learncgames.com/why-i-like-c-for-creating-games/">Why I like C for creating games</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">113</post-id>	</item>
	</channel>
</rss>
