<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>CodeWarriors Pattern Library on CodeWarriors</title><link>https://codecamps.codewarriors.com.au/patterns/</link><description>Recent content in CodeWarriors Pattern Library on CodeWarriors</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 15 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://codecamps.codewarriors.com.au/patterns/index.xml" rel="self" type="application/rss+xml"/><item><title>CWG-001 Enemy Follows Player</title><link>https://codecamps.codewarriors.com.au/patterns/cwg-001-enemy-follows-player/</link><pubDate>Wed, 15 Jul 2026 00:00:00 +0000</pubDate><guid>https://codecamps.codewarriors.com.au/patterns/cwg-001-enemy-follows-player/</guid><description>&lt;p&gt;&lt;strong&gt;Difficulty:&lt;/strong&gt; ⭐ Beginner&lt;br&gt;
&lt;strong&gt;Platform:&lt;/strong&gt; Godot 4.7&lt;/p&gt;
&lt;h2 id="-what-youll-build"&gt;👷🏽‍♀️ What you&amp;rsquo;ll build&lt;/h2&gt;
&lt;p&gt;This pattern makes an enemy automatically move towards the player.&lt;/p&gt;
&lt;p&gt;It works well for simple games where an enemy should chase the player around the level. The enemy does not need to know anything about your player scene, and you do not need to change your player script. Even if you have many enemy instances, they will all target the player.&lt;/p&gt;</description></item><item><title>CWG-002 Goal Loads Next Level</title><link>https://codecamps.codewarriors.com.au/patterns/cwg-002-goal-scene/</link><pubDate>Wed, 15 Jul 2026 00:00:00 +0000</pubDate><guid>https://codecamps.codewarriors.com.au/patterns/cwg-002-goal-scene/</guid><description>&lt;p&gt;&lt;strong&gt;Difficulty:&lt;/strong&gt; ⭐ Beginner&lt;br&gt;
&lt;strong&gt;Platform:&lt;/strong&gt; Godot 4.7&lt;/p&gt;
&lt;h2 id="-what-youll-build"&gt;👷🏽‍♀️ What you&amp;rsquo;ll build&lt;/h2&gt;
&lt;p&gt;This pattern creates a reusable goal scene for the end of a level.&lt;/p&gt;
&lt;p&gt;When the player reaches the goal, the game changes to another scene. You can place the same goal scene into different levels and choose a different destination scene for each one.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="-before-you-start"&gt;📢 Before you start&lt;/h2&gt;
&lt;p&gt;This pattern assumes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You have a 2D game with a player that can move around.&lt;/li&gt;
&lt;li&gt;You have a level scene, where you have instantiated your player.&lt;/li&gt;
&lt;li&gt;Your player has a &lt;code&gt;CollisionShape2D&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Your player is in the &lt;code&gt;&amp;quot;player&amp;quot;&lt;/code&gt; group.&lt;/li&gt;
&lt;li&gt;You have created another level or scene that you want to open.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To add your player to the &lt;code&gt;&amp;quot;player&amp;quot;&lt;/code&gt; group:&lt;/p&gt;</description></item></channel></rss>