<?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>arcade | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/arcade/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>Mon, 08 Feb 2021 19:50:57 +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>arcade | 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>DungeonRush &#8211; open source C + SDL 2 game</title>
		<link>https://learncgames.com/dungeonrush-open-source-c-sdl-2-game/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dungeonrush-open-source-c-sdl-2-game</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Wed, 10 Feb 2021 00:00:15 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Source code]]></category>
		<category><![CDATA[arcade]]></category>
		<category><![CDATA[game]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=2642</guid>

					<description><![CDATA[<p>I continue my quest, looking around for open source games in C that use SDL 2. The latest one is DungeonRush by developer Rapiz1 (does no one ever use their real names these days?) who hails from Wuhan. It is not a rogue-like, but more a Snake-like game.   You move your hero around the playing [&#8230;]</p>
The post <a href="https://learncgames.com/dungeonrush-open-source-c-sdl-2-game/">DungeonRush – open source C + SDL 2 game</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;:188,&quot;href&quot;:&quot;https:\/\/github.com\/Rapiz1\/DungeonRush&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20250214145114\/https:\/\/github.com\/rapiz1\/DungeonRush&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 12:31:59&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-09 20:55:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-12 22:35:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-17 13:54:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-22 05:50:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-25 06:51:21&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-28 11:07:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-04 05:32:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-08 05:20:27&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-12 08:10:37&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-16 02:10:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-22 10:00:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-27 03:35:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-31 15:59:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-05 00:44:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-10 18:58:18&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-13 20:30:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-17 01:56:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-20 09:51:17&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-20 09:51:17&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img fetchpriority="high" decoding="async" class="alignleft wp-image-2644 size-medium" src="https://learncgames.com/wp-content/uploads/2021/02/dungeonrush-1-300x207.png" alt="DungeonRush game" width="300" height="207" srcset="https://learncgames.com/wp-content/uploads/2021/02/dungeonrush-1-300x207.png 300w, https://learncgames.com/wp-content/uploads/2021/02/dungeonrush-1.png 544w" sizes="(max-width: 300px) 100vw, 300px" />I continue my quest, looking around for open source games in C that use SDL 2. The latest one is <a title="Link to DungeonRush on GitHub" href="https://github.com/Rapiz1/DungeonRush" target="_blank" rel="nofollow noopener">DungeonRush</a> by developer Rapiz1 (<em>does no one ever use their real names these days?</em>) who hails from Wuhan.</p>
<p>It is not a rogue-like, but more a Snake-like game.   You move your hero around the playing area avoiding monsters and things fired at you while picking up stuff and people to give you extra lives.  As well as the difficulty levels it includes multiplayer mode as well though I haven&#8217;t tried that.</p>
<p>If you are learning C or games programming, it&#8217;s worth studying to see how others do things; this includes its own text drawing and high scoring and saving high scores.  It&#8217;s quite fun to play though I am rubbish playing it, even at the normal level. I&#8217;ve added this to the C Code links page. (<em>Accessed on the top menu</em>),</p>
<p>Snake games are interesting because if you use a circular buffer, no matter how big the snake grows, you can move it by just moving the head and tail elements. An O(1) operation!</p>The post <a href="https://learncgames.com/dungeonrush-open-source-c-sdl-2-game/">DungeonRush – open source C + SDL 2 game</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">2642</post-id>	</item>
		<item>
		<title>Raspberry Pi 4 &#8211; Perfect for arcade quality games and development</title>
		<link>https://learncgames.com/raspberry-pi-4-perfect-for-arcade-quality-games-and-development/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=raspberry-pi-4-perfect-for-arcade-quality-games-and-development</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Sat, 25 Apr 2020 23:00:24 +0000</pubDate>
				<category><![CDATA[Clang]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[raspberry-pi]]></category>
		<category><![CDATA[Visual Studio Code]]></category>
		<category><![CDATA[arcade]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=460</guid>

					<description><![CDATA[<p>I got my Pi 4 a week ago and have been doing experiments on it with my Asteroids game. If I disable the line of code that kills the player ship in the DestroyObject() function and just add a return after case tPlayer: and uncomment the code that adds Asteroids when you press A then [&#8230;]</p>
The post <a href="https://learncgames.com/raspberry-pi-4-perfect-for-arcade-quality-games-and-development/">Raspberry Pi 4 – Perfect for arcade quality games and development</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignleft size-medium wp-image-461" src="https://learncgames.com/wp-content/uploads/2020/04/lots-of-asteroids-300x236.png" alt="lot s of asteroids" width="300" height="236" srcset="https://learncgames.com/wp-content/uploads/2020/04/lots-of-asteroids-300x236.png 300w, https://learncgames.com/wp-content/uploads/2020/04/lots-of-asteroids-768x604.png 768w, https://learncgames.com/wp-content/uploads/2020/04/lots-of-asteroids.png 1023w" sizes="(max-width: 300px) 100vw, 300px" />I got my Pi 4 a week ago and have been doing experiments on it with my Asteroids game. If I disable the line of code that kills the player ship in the <em>DestroyObject()</em> function and just add a return after <em>case tPlayer:</em> and uncomment the code that adds Asteroids when you press A then I can have lots of asteroids on screen. Also set the MAXASTEROIDS #define to 128.</p>
<p>Then you get the likes of this screenshot which is a 1024 x 768 size window. It&#8217;s still running at 40 fps, there are 116 asteroids on screen, around 60-70 explosions and the Pi&#8217;s temperature is still a balmy 44.79 C. I&#8217;ve never got the Pi&#8217;s temperature (and it does have an internal 3.3V fan) to rise above 51 C.</p>
<p>But what&#8217;s also impressive is that with Visual Studio Code and Clang on the PI, I can compile the whole 2,200 lines of C on the PI in about a second. This makes the Pi very usable for developing games. And I say this as someone who is used to powerful Windows PCs for compiling code.</p>
<p>This is it running in debug mode; that&#8217;s all the numbers and wire frame bounding boxes around every moving object.</p>
<p>Further experimenting and removing the limitations (I used a While loop to limit it to 60 fps back before I had enabled the hardware video flyback). With that while removed and the hardware video flyback disabled, I was getting over 100 fps with 100 asteroids on screen at once.  I pushed it up to 6,000 asteroids and the frame rate dropped to 10 fps. Given the amount of stuff that was colliding and blowing up, that&#8217;s still very good.</p>The post <a href="https://learncgames.com/raspberry-pi-4-perfect-for-arcade-quality-games-and-development/">Raspberry Pi 4 – Perfect for arcade quality games and development</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">460</post-id>	</item>
	</channel>
</rss>
