<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Naman Chhabra</title>
    <description>The latest articles on DEV Community by Naman Chhabra (@namanchhabra21).</description>
    <link>https://dev.to/namanchhabra21</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3967223%2F8f1992ad-43ba-4495-a3f7-eb77ceba25a3.jpeg</url>
      <title>DEV Community: Naman Chhabra</title>
      <link>https://dev.to/namanchhabra21</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/namanchhabra21"/>
    <language>en</language>
    <item>
      <title>A basic pygame game which is not basic - Starfall Protocol</title>
      <dc:creator>Naman Chhabra</dc:creator>
      <pubDate>Thu, 04 Jun 2026 00:19:41 +0000</pubDate>
      <link>https://dev.to/namanchhabra21/a-basic-pygame-game-which-is-not-basic-starfall-protocol-51je</link>
      <guid>https://dev.to/namanchhabra21/a-basic-pygame-game-which-is-not-basic-starfall-protocol-51je</guid>
      <description>&lt;h2&gt;
  
  
  This is a simple pygame game built by an intermediate level 16yrs old coder
&lt;/h2&gt;




&lt;h4&gt;
  
  
  Here is the download link without so much boring talks:
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://gamejolt.com/games/starfall-protocol/1074404" rel="noopener noreferrer"&gt;https://gamejolt.com/games/starfall-protocol/1074404&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Please note that Windows is currently supported and I have never tested my game on other platforms like MacOs/Linux&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi34t5a3d5xh0boxi6sp8.png" alt="Starting Screen" width="702" height="591"&gt;
&lt;/h2&gt;

&lt;h2&gt;
  
  
  How I Made this?
&lt;/h2&gt;

&lt;p&gt;Like many beginners learning Pygame, I started with a simple idea:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Move a green colored square and avoid red colored squares as obstacles.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;At first, the game was extremely basic:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Black Color Background&lt;/li&gt;
&lt;li&gt;Simple Obstacle movement&lt;/li&gt;
&lt;li&gt;Basic collision system&lt;/li&gt;
&lt;li&gt;Plain gameplay loop&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But over time, I kept adding more features into the project.&lt;/p&gt;

&lt;p&gt;Eventually, the project evolved into &lt;strong&gt;Starfall Protocol&lt;/strong&gt; — a cinematic 2D space game built using &lt;strong&gt;Python&lt;/strong&gt; and &lt;strong&gt;Pygame&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Makes It Different from other 2d games?
&lt;/h2&gt;

&lt;p&gt;Instead of keeping the project as a simple beginner game, I tried adding strange features usually not seen in beginner Python projects.&lt;/p&gt;

&lt;h3&gt;
  
  
  Video Scenes
&lt;/h3&gt;

&lt;p&gt;The game now contains:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Intro Scene (Rocket Boosts) &lt;/li&gt;
&lt;li&gt;Ending scene (Rocket Crash) &lt;/li&gt;
&lt;li&gt;Press &lt;code&gt;Space&lt;/code&gt; to skip&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Background
&lt;/h3&gt;

&lt;p&gt;I added:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Infinite scrolling backgrounds&lt;/li&gt;
&lt;li&gt;Dynamic resizing support&lt;/li&gt;
&lt;li&gt;Full screen support&lt;/li&gt;
&lt;li&gt;Randomized background images&lt;/li&gt;
&lt;li&gt;Changes after every few minutes&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Gameplay Improvements
&lt;/h3&gt;

&lt;p&gt;The gameplay includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Asteroid spawning&lt;/li&gt;
&lt;li&gt;Comets (High speed) &lt;/li&gt;
&lt;li&gt;Difficulty progression&lt;/li&gt;
&lt;li&gt;Life system&lt;/li&gt;
&lt;li&gt;Score system&lt;/li&gt;
&lt;li&gt;Detects Collision at pixel level&lt;/li&gt;
&lt;li&gt;Sound effects and music&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Additional Systems
&lt;/h3&gt;

&lt;p&gt;I also experimented with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Firebase integration&lt;/li&gt;
&lt;li&gt;Customtkinter Screen for Rate us and Feedback support&lt;/li&gt;
&lt;li&gt;Splash screen module&lt;/li&gt;
&lt;li&gt;Window resizing logic&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Challenges I faced
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Full screen resizing&lt;/li&gt;
&lt;li&gt;scrolling backgrounds&lt;/li&gt;
&lt;li&gt;First time using Firebase&lt;/li&gt;
&lt;li&gt;OpenCv to Pygame surface conversion&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Module Used
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;OpenCv-python&lt;/li&gt;
&lt;li&gt;Pygame&lt;/li&gt;
&lt;li&gt;CustomTkinter&lt;/li&gt;
&lt;li&gt;Requests&lt;/li&gt;
&lt;li&gt;Splashscreen-engine&lt;/li&gt;
&lt;li&gt;Some built-in modules&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;I think its enough description, I am tired now 😅&lt;/p&gt;




&lt;h2&gt;
  
  
  Download &amp;amp; Play the Game
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Game Jolt
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://gamejolt.com/games/starfall-protocol/1074404" rel="noopener noreferrer"&gt;https://gamejolt.com/games/starfall-protocol/1074404&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  itch.io
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://namanchhabra21.itch.io/starfall-protocol" rel="noopener noreferrer"&gt;https://namanchhabra21.itch.io/starfall-protocol&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  GitHub Repository
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://github.com/NamanChhabra21/Starfall-Protocol" rel="noopener noreferrer"&gt;https://github.com/NamanChhabra21/Starfall-Protocol&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Just like the universe… this journey never ends.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>python</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
