<?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: Hemant Kr Sajnani</title>
    <description>The latest articles on DEV Community by Hemant Kr Sajnani (@hemantsajnani).</description>
    <link>https://dev.to/hemantsajnani</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1488748%2F28e7aa28-51b8-445b-b258-e6833b71a349.jpeg</url>
      <title>DEV Community: Hemant Kr Sajnani</title>
      <link>https://dev.to/hemantsajnani</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hemantsajnani"/>
    <language>en</language>
    <item>
      <title>Solstice Quest: Keeper of the Flame</title>
      <dc:creator>Hemant Kr Sajnani</dc:creator>
      <pubDate>Sat, 13 Jun 2026 10:06:49 +0000</pubDate>
      <link>https://dev.to/hemantsajnani/solstice-quest-keeper-of-the-flame-4ljd</link>
      <guid>https://dev.to/hemantsajnani/solstice-quest-keeper-of-the-flame-4ljd</guid>
      <description>&lt;p&gt;&lt;a href="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%2Fqq1oy12pzse68u6t1kbf.png" class="article-body-image-wrapper"&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%2Fqq1oy12pzse68u6t1kbf.png" alt="Solstice Quest" width="800" height="368"&gt;&lt;/a&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/june-game-jam-2026-06-03"&gt;June Solstice Game Jam&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;Solstice Quest: Keeper of the Flame** is an atmospheric, multi-level 2D puzzle-platformer built on the theme of cosmic and cyclical balance. Players step into the shoes of the &lt;em&gt;Keeper&lt;/em&gt;, tasked with carrying the volatile &lt;strong&gt;Solstice Flame&lt;/strong&gt; through ancient, shifting ruins and delivering it to solar beacons before it gutters out. &lt;/p&gt;

&lt;h3&gt;
  
  
  Temporal Dual-World Mechanics
&lt;/h3&gt;

&lt;p&gt;The core mechanic is the &lt;strong&gt;Time Flip&lt;/strong&gt;—the ability to dynamically swap the environment between &lt;strong&gt;Day&lt;/strong&gt; and &lt;strong&gt;Night&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The Day World: Activates golden light barriers, opens solar-powered gates, and reveals sun switches that must be pressed to advance.&lt;/li&gt;
&lt;li&gt;The Night World: Coaxes luminous amethyst crystals from the ground, unlocks dark passages, and sprouts magical bouncy mushrooms that launch the Keeper to celestial heights.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every movement, jump, dash, and cosmic shift drains the flame's &lt;strong&gt;Daylight Energy&lt;/strong&gt;. Players must gather dispersed Solar Fragments to feed the flame, or interact with ancient spirits to prove their celestial wisdom.&lt;/p&gt;

&lt;h2&gt;
  
  
  Video Demo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://youtu.be/dEW3Z5aAMII" rel="noopener noreferrer"&gt;https://youtu.be/dEW3Z5aAMII&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Play here
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://ai.studio/apps/6b8723cf-2b89-4aaa-b29e-404436bff64e?fullscreenApplet=true" rel="noopener noreferrer"&gt;https://ai.studio/apps/6b8723cf-2b89-4aaa-b29e-404436bff64e?fullscreenApplet=true&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/hemanttechie/solsticegame" rel="noopener noreferrer"&gt;https://github.com/hemanttechie/solsticegame&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;Solstice Quest was engineered from scratch without heavy engine overlays to ensure lightning-fast loading, smooth frames, and absolute precision:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Hybrid 2D Physics Vector Loop
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Configured a dedicated &lt;code&gt;requestAnimationFrame&lt;/code&gt; render/physics handler over an HTML5 canvas. &lt;/li&gt;
&lt;li&gt;Implemented real-time sub-pixel collision resolution, momentum retention, double-jumping, visual target tracking cameras, and gravity decay.&lt;/li&gt;
&lt;li&gt;Built a particle-spawning engine utilising wind currents and vertical velocity to leave a tail of trailing stardust or glowing solar embers depending on the current time state.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Temporal State Machine
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Created a synchronised time-management array linking player interaction states to the active tile map. Barriers, crystal hazards, and switches instantaneously toggle collision layers on/off when the player triggers a &lt;strong&gt;Time Flip&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Integrated keyboard listeners permitting advanced players to tap &lt;code&gt;Shift&lt;/code&gt;, &lt;code&gt;C&lt;/code&gt;, or &lt;code&gt;F&lt;/code&gt; for rapid, high-speed movement flow.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Solstice Spirits Trivia Engine
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Built a comprehensive educational trivia module focusing on Earth axis tilts, light speed travel physics, pigments, and solar mechanics. &lt;/li&gt;
&lt;li&gt;Designed a non-blocking UI overlay with key-trap shortcuts (&lt;code&gt;1&lt;/code&gt;/&lt;code&gt;2&lt;/code&gt;/&lt;code&gt;3&lt;/code&gt; selections, &lt;code&gt;R&lt;/code&gt; to retry, and movement keys (&lt;code&gt;WASD&lt;/code&gt; / arrows) to seamlessly dismiss solved questions), preventing game loop freeze and allowing players to immediately resume physical movement.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Difficulty Calibration Engine
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Integrated an offline-persistent &lt;strong&gt;Difficulty Selector&lt;/strong&gt; into the main menu allowing players to choose their level of challenge (&lt;strong&gt;Easy&lt;/strong&gt;, &lt;strong&gt;Normal&lt;/strong&gt;, &lt;strong&gt;Solstice/Hard&lt;/strong&gt;).&lt;/li&gt;
&lt;li&gt;Modulates starting resource pools (e.g., 80% on Solstice Mode) and adjusts decay thresholds dynamically (up to 1.4x decay rate penalty), saved straight to &lt;code&gt;localStorage&lt;/code&gt;. &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Prize Category
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Best Google AI Usage
&lt;/h3&gt;

&lt;p&gt;The game utilizes &lt;strong&gt;Google Gemini API&lt;/strong&gt; integration through interactive, real-time-generated dialogues with local spirits and dynamic, context-appropriate ancient stone tablets (lore markers) hidden throughout the stages. This goes beyond static text, injecting personalized narrative and mystical lore into the game mechanics itself depending on the Keeper's progress and current level layout!&lt;/p&gt;

&lt;h3&gt;
  
  
  2. June Solstice Theme (Overall Game Jam)
&lt;/h3&gt;

&lt;p&gt;Built from the ground up prioritising the solstice seasonal transition. Gameplay directly hinges on the physical parameters of our solar cycle: seasonal tilts, solar hours, and the delicate equilibrium between light and dark. &lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>gamechallenge</category>
      <category>gamedev</category>
    </item>
  </channel>
</rss>
