<?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: Ageng Putra Pratama</title>
    <description>The latest articles on DEV Community by Ageng Putra Pratama (@agengputrapratama).</description>
    <link>https://dev.to/agengputrapratama</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%2F2644811%2Fab6ce867-f573-4223-a2bc-ef766d7d0f45.png</url>
      <title>DEV Community: Ageng Putra Pratama</title>
      <link>https://dev.to/agengputrapratama</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/agengputrapratama"/>
    <language>en</language>
    <item>
      <title>Carbon Calculator: Turning AI-Powered Carbon Tracking into Real-World Climate Action 🌱</title>
      <dc:creator>Ageng Putra Pratama</dc:creator>
      <pubDate>Sun, 11 Oct 2026 05:33:20 +0000</pubDate>
      <link>https://dev.to/agengputrapratama/carbon-calculator-turning-ai-powered-carbon-tracking-into-real-world-climate-action-lom</link>
      <guid>https://dev.to/agengputrapratama/carbon-calculator-turning-ai-powered-carbon-tracking-into-real-world-climate-action-lom</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week1-2026-10-05"&gt;Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;🌱 &lt;strong&gt;Carbon Calculator App&lt;/strong&gt; is a carbon footprint tracking application designed to help people understand their environmental impact and turn that awareness into meaningful action.&lt;/p&gt;

&lt;p&gt;The idea behind the project is simple: understanding our carbon footprint should be the beginning of change, not the end of a calculation.&lt;/p&gt;

&lt;p&gt;Carbon Calculator helps users estimate emissions from everyday activities, including transportation, household energy consumption, food choices, and waste management. It then presents visual insights and personalized recommendations to help users identify practical opportunities to reduce their environmental impact.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key Features
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;🧮 Carbon Footprint Calculator&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Users can track their daily activities across four categories:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Transportation: cars, public transportation, flights, walking, and cycling.&lt;/li&gt;
&lt;li&gt;Energy: electricity, heating, and cooling.&lt;/li&gt;
&lt;li&gt;Food: meat, dairy, vegetables, and processed food.&lt;/li&gt;
&lt;li&gt;Waste: recycling, landfill, and composting.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;📊 Environmental Insights and Analytics&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Interactive charts help users understand their emissions by category and track daily, weekly, and monthly trends. The application also supports PDF and CSV report generation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🤖 AI-Powered Recommendations&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The application uses AI to generate personalized suggestions based on users' activities and carbon footprint data. Recommendations are organized by difficulty and include estimated carbon reduction potential.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;✅ Action Plans and Progress Tracking&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Users can turn recommendations into actionable tasks, organize them by priority, and track their progress over time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🏆 Gamification and Social Sharing&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Eco points, achievements, badges, and shareable environmental infographics encourage users to reflect on their progress and inspire others to adopt more sustainable habits.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Connects to Touch Grass 🌿
&lt;/h2&gt;

&lt;p&gt;The Touch Grass theme is about using AI to encourage people to experience more of the real world.&lt;/p&gt;

&lt;p&gt;Carbon Calculator approaches this through everyday environmental decisions.&lt;/p&gt;

&lt;p&gt;Instead of simply displaying a carbon footprint score, the application can help users identify concrete actions they can take outside their screens:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Walk or cycle for suitable short-distance trips.&lt;/li&gt;
&lt;li&gt;Choose public transportation when practical.&lt;/li&gt;
&lt;li&gt;Spend time walking in a park or exploring a nearby green space.&lt;/li&gt;
&lt;li&gt;Reduce food waste and make more thoughtful food choices.&lt;/li&gt;
&lt;li&gt;Practice recycling and responsible waste disposal.&lt;/li&gt;
&lt;li&gt;Track completed actions and reflect on their environmental impact.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is to make the digital experience short and purposeful: understand the impact, choose an action, and go do it.&lt;/p&gt;

&lt;p&gt;The application is intended to help users connect environmental awareness with practical changes in their daily lives.&lt;/p&gt;

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

&lt;p&gt;🌐 &lt;strong&gt;Live Application:&lt;/strong&gt; &lt;a href="https://carbcalc.vercel.app/" rel="noopener noreferrer"&gt;Carbon Calculator App&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🎥 &lt;strong&gt;Video Demonstration:&lt;/strong&gt; &lt;a href="https://www.youtube.com/watch?v=hn-K5dFLEpI" rel="noopener noreferrer"&gt;Watch the demo on YouTube&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;GitHub Repository:&lt;/strong&gt; [Add your public GitHub repository URL here]&lt;/p&gt;

&lt;p&gt;The repository contains the source code, application architecture, and setup instructions needed to explore the project.&lt;/p&gt;

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

&lt;p&gt;Carbon Calculator is built with Next.js and includes interactive data visualizations, carbon footprint calculations, AI-powered recommendations, task management, and social sharing features.&lt;/p&gt;

&lt;p&gt;The main components include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Next.js:&lt;/strong&gt; Application structure and user interface.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chart.js:&lt;/strong&gt; Carbon footprint visualizations and historical trends.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Canvas API:&lt;/strong&gt; Generation of shareable environmental infographics.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI integration:&lt;/strong&gt; Personalized sustainability recommendations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reporting tools:&lt;/strong&gt; Exportable PDF and CSV reports.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The existing AI integration uses Google Gemini. To align the project with the open-source AI challenge, I am focusing on incorporating an open-weight model into the core recommendation workflow.&lt;/p&gt;

&lt;p&gt;An open-weight model such as Gemma can provide an alternative for generating practical sustainability recommendations. The model can be evaluated against the existing approach for relevance, response quality, latency, and deployment flexibility.&lt;/p&gt;

&lt;p&gt;The objective is to make the AI component more adaptable rather than tying the application's entire recommendation experience to a single proprietary provider.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;Climate action is a shared challenge, and the tools we build to support it should be accessible, adaptable, and transparent.&lt;/p&gt;

&lt;p&gt;Open innovation offers several important opportunities for Carbon Calculator.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. More control over AI&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Using an open-weight model makes it possible to experiment with different models, customize prompts, and adapt recommendation behavior to specific sustainability use cases.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Greater flexibility in deployment&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Depending on the model and runtime, recommendations can potentially run locally or on infrastructure selected by the developer. This creates opportunities to reduce dependence on a single external AI provider.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Privacy-conscious design&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Carbon footprint tracking can reveal aspects of a person's daily routine, including transportation choices, food consumption, and household energy use. An architecture that supports local inference can help minimize the need to send personal activity data to an external AI service.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Opportunities for experimentation&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An open AI stack allows developers and contributors to compare model performance, improve recommendation quality, and experiment with new ways to encourage sustainable behavior.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Technology with a real-world purpose&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The most important part of this project is not the model itself. It is what the model helps people do.&lt;/p&gt;

&lt;p&gt;AI should help users understand their environmental impact and identify practical next steps. The ultimate goal is to turn insights into real-world habits, not simply generate more content for people to consume on their screens.&lt;/p&gt;

&lt;p&gt;Open innovation makes it easier to explore different ways to achieve that goal and share improvements with the wider developer community.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Carbon Calculator started with a simple question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if understanding our carbon footprint became the first step toward changing it?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;By combining carbon tracking, AI-powered recommendations, and actionable goals, the project aims to make sustainability easier to understand and practice.&lt;/p&gt;

&lt;p&gt;Technology can help us make better decisions, but meaningful environmental progress happens when we take those decisions into the real world.&lt;/p&gt;

&lt;p&gt;Sometimes, the best thing an AI application can do is help us put our phones away and take the next step outside. 🌍🌱&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>opensource</category>
      <category>sustainability</category>
    </item>
    <item>
      <title>OfficeHub: Crafting a Digital Workspace with Soul</title>
      <dc:creator>Ageng Putra Pratama</dc:creator>
      <pubDate>Mon, 07 Jul 2025 15:53:56 +0000</pubDate>
      <link>https://dev.to/agengputrapratama/officehub-crafting-a-digital-workspace-with-soul-2pfm</link>
      <guid>https://dev.to/agengputrapratama/officehub-crafting-a-digital-workspace-with-soul-2pfm</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for &lt;a href="https://dev.to/challenges/frontend/axero"&gt;Frontend Challenge: Office Edition sponsored by Axero, CSS Art: Office Culture&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Inspiration
&lt;/h2&gt;

&lt;p&gt;For this challenge, I wanted to move beyond a simple design and tackle a common problem: corporate intranets are often dull, lifeless, and purely utilitarian. My goal was to create something that was not only visually appealing but also production-worthy and, most importantly, human-centric. This led to the birth of &lt;strong&gt;OfficeHub&lt;/strong&gt;, a comprehensive intranet homepage designed to be the true digital heart of a company.&lt;/p&gt;

&lt;p&gt;This project directly addresses both the &lt;em&gt;Holistic Webdev: Office Space&lt;/em&gt; and &lt;em&gt;CSS Art: Office Culture&lt;/em&gt; prompts. The idea was to build a central hub that feels alive and genuinely useful. It’s a place where employees can seamlessly access essential tools, stay informed about company news, and feel tangibly connected to their colleagues and the wider office culture. I wanted to replace the static, uninspired portal with a dynamic, engaging experience, using real-time interactive elements and subtle CSS art to celebrate the small, everyday moments that define life in the workplace.&lt;/p&gt;

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

&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%2Fj1fghdi5a9n9iy88raw8.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%2Fj1fghdi5a9n9iy88raw8.png" alt=" " width="800" height="558"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Experience OfficeHub live! You can interact with the various widgets, explore the different dashboard sections, and see the design and animations in action.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live Site:&lt;/strong&gt; &lt;a href="https://lambent-rabanadas-7a867e.netlify.app/" rel="noopener noreferrer"&gt;https://lambent-rabanadas-7a867e.netlify.app/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/pratama404/officehub" rel="noopener noreferrer"&gt;https://github.com/pratama404/officehub&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Journey
&lt;/h2&gt;

&lt;p&gt;The development of OfficeHub was an exciting, iterative process. It began with a clear vision and a foundational set of features, which were then progressively layered with advanced functionality and creative polish to bring the full concept to life.&lt;/p&gt;

&lt;h3&gt;
  
  
  Phase 1: The Initial Concept &amp;amp; Core Features
&lt;/h3&gt;

&lt;p&gt;My first priority was to establish a solid and intuitive foundation for a modern intranet. I focused on creating a user experience that felt clean, professional, and welcoming.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Design Philosophy:&lt;/strong&gt; I opted for a clean, card-based layout that promotes clarity and organization. The professional color palette—with a primary blue (#2563EB), a secondary teal (#0D9488), and an accent orange (#EA580C)—was chosen to be energetic yet trustworthy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Core Functionality:&lt;/strong&gt; The initial build included:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A modern, intuitive homepage with clear navigation.&lt;/li&gt;
&lt;li&gt;Interactive dashboard widgets for upcoming events and team spotlights.&lt;/li&gt;
&lt;li&gt;Fun, culture-driven elements like a real-time coffee counter and a team mood tracker.&lt;/li&gt;
&lt;li&gt;A fully responsive design optimized for desktops, tablets, and mobile devices.&lt;/li&gt;
&lt;li&gt;Subtle CSS art and smooth hover animations to make the interface feel alive and responsive to user actions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Phase 2: Evolving into a Production-Ready Application
&lt;/h3&gt;

&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%2F6g7nhi8381en244yk12j.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%2F6g7nhi8381en244yk12j.png" alt=" " width="800" height="827"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After building the core, I focused on significantly expanding the feature set to transform OfficeHub into a comprehensive solution worthy of a real-world office environment. This is where the project truly matured.&lt;/p&gt;

&lt;p&gt;🏠 &lt;strong&gt;Enhanced Dashboard:&lt;/strong&gt; The dashboard became the central nervous system. I introduced real-time announcements with priority levels (e.g., critical, warning, info) and engagement metrics (likes, comments, views). I also expanded the office amenities tracking to include real-time status for parking, cafeteria capacity, and game room availability. Interactive polls with live voting functionality and a dedicated section for active projects with progress tracking were added to boost engagement and transparency.&lt;/p&gt;

&lt;p&gt;👥 &lt;strong&gt;Employee Directory:&lt;/strong&gt; To foster connection, a complete employee directory was built. It features detailed profiles with status indicators (online, away, busy, offline), advanced search by name, role, or department, and direct contact actions (email, chat) for seamless communication.&lt;/p&gt;

&lt;p&gt;📁 &lt;strong&gt;Document Library:&lt;/strong&gt; A robust document library was implemented to serve as a single source of truth. It includes full document management with metadata for file types, sizes, and categories, along with download tracking and sharing capabilities. Advanced filtering and search make finding information effortless.&lt;/p&gt;

&lt;p&gt;📊 &lt;strong&gt;Analytics Dashboard:&lt;/strong&gt; To provide actionable insights for leadership, I designed an analytics dashboard. It showcases key performance metrics with trend indicators, usage analytics, and overall productivity scores. While the charts are currently placeholders, they are designed for easy integration with a data visualization library.&lt;/p&gt;

&lt;h3&gt;
  
  
  Phase 3: Polishing the CSS Art and Interactivity
&lt;/h3&gt;

&lt;p&gt;With the core functionality in place, I dedicated significant time to refining the "Office Culture" aspect through creative CSS and interactive flourishes.&lt;/p&gt;

&lt;p&gt;🎨 &lt;strong&gt;Animated CSS Art:&lt;/strong&gt; I created a series of animated, floating elements that represent office culture motifs—coffee cups, plants, lightbulbs. These elements respond to user interaction with subtle hover states and micro-interactions, adding a layer of delight to the user experience.&lt;/p&gt;

&lt;p&gt;💫 &lt;strong&gt;Deeply Interactive Elements:&lt;/strong&gt; The user experience was enhanced with features like tabbed navigation for different dashboard sections, a real-time updating clock and notification badges, and a fully interactive voting system for the polls.&lt;/p&gt;

&lt;p&gt;🎯 &lt;strong&gt;Production-Ready Polish:&lt;/strong&gt; Finally, I focused on the small but critical details that elevate a project to production quality. This included implementing a sticky navigation header for persistent access, a well-designed mobile hamburger menu, custom scrollbars for a consistent look, and thoughtful loading states. Crucially, I integrated accessibility considerations, such as clear focus states for keyboard navigation and support for prefers-reduced-motion to ensure an inclusive experience.&lt;/p&gt;

&lt;p&gt;This journey taught me a tremendous amount about structuring a scalable frontend application and the powerful synergy between robust functionality and engaging design. I'm particularly proud of how the enhanced CSS art brings the digital workspace to life, transforming the intranet from a simple tool into a vibrant, integral part of the office culture. The next logical step is to connect the frontend to a backend service to power all the interactive features with real data, making OfficeHub fully operational.&lt;/p&gt;

</description>
      <category>frontendchallenge</category>
      <category>devchallenge</category>
      <category>css</category>
    </item>
    <item>
      <title>🦠 Avoid the Virus – Survive, Power Up, Repeat (Built with Amazon Q + Pygame)</title>
      <dc:creator>Ageng Putra Pratama</dc:creator>
      <pubDate>Sun, 01 Jun 2025 12:43:58 +0000</pubDate>
      <link>https://dev.to/agengputrapratama/avoid-the-virus-survive-power-up-repeat-built-with-amazon-q-pygame-eed</link>
      <guid>https://dev.to/agengputrapratama/avoid-the-virus-survive-power-up-repeat-built-with-amazon-q-pygame-eed</guid>
      <description>&lt;h2&gt;
  
  
  🎮 Introduction
&lt;/h2&gt;

&lt;p&gt;It started with a simple idea: what if we built a survival arcade game where a small character dodges waves of incoming viruses? Powered by curiosity and the newly released &lt;strong&gt;Amazon Q Developer CLI&lt;/strong&gt;, we created &lt;em&gt;"Avoid the Virus"&lt;/em&gt;, a &lt;strong&gt;Python-based Pygame survival game&lt;/strong&gt; that tests reflexes, timing, and a bit of luck.&lt;/p&gt;

&lt;p&gt;Using Amazon Q's &lt;strong&gt;generative AI capabilities&lt;/strong&gt;, we iteratively built the game, starting from a single prompt and evolving it into a fully playable experience — complete with power-ups, sound effects, and a city-themed backdrop.&lt;/p&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%2Fvfj1tznloq2c1eixvlcn.png" alt="Image description" width="800" height="365"&gt;
&lt;/h2&gt;

&lt;h2&gt;
  
  
  ⚙️ Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Python 3.11
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.pygame.org/" rel="noopener noreferrer"&gt;Pygame&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/094459/aqd-cli-workshop?tab=readme-ov-file" rel="noopener noreferrer"&gt;Amazon Q Developer CLI&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🧠 Starting with AI-Powered Game Generation
&lt;/h2&gt;

&lt;p&gt;We kicked things off using this prompt in Amazon Q Developer CLI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Create a &lt;span class="nb"&gt;complete &lt;/span&gt;game using Python and Pygame called &lt;span class="s2"&gt;"Avoid the Virus"&lt;/span&gt;&lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&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%2F66in71yux46j6pw1xo0s.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%2F66in71yux46j6pw1xo0s.png" alt="Image description" width="800" height="434"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That alone set up the foundation — a main game loop, a player-controlled character, and virus-like enemies that home in on the player. With a few refinements and additional prompts, the AI helped scaffold out features like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Virus enemy generation
&lt;/li&gt;
&lt;li&gt;Player movement using arrow keys
&lt;/li&gt;
&lt;li&gt;Collision detection and game-over logic
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🛡️ Adding Power-Ups and Gameplay Depth
&lt;/h2&gt;

&lt;p&gt;To make the gameplay more exciting and strategic, we added two types of power-ups:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🟦 &lt;strong&gt;Mask&lt;/strong&gt; – Grants 5 seconds of immunity.
&lt;/li&gt;
&lt;li&gt;🟨 &lt;strong&gt;Hand Sanitizer&lt;/strong&gt; – Instantly destroys all viruses on screen.
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Prompts used:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Add a power-up &lt;span class="k"&gt;in &lt;/span&gt;the shape of a blue mask that makes the player immune &lt;span class="k"&gt;for &lt;/span&gt;5 seconds.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Add another power-up: a yellow hand sanitizer that removes all viruses on screen when picked up.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These additions were surprisingly easy to integrate using Amazon Q’s step-by-step output and Pygame classes.&lt;/p&gt;




&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%2Fy06wvp1ncnfw1b4ov670.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%2Fy06wvp1ncnfw1b4ov670.png" alt="Image description" width="654" height="411"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  ⏱️ Score &amp;amp; Survival Mechanics
&lt;/h2&gt;

&lt;p&gt;Every second counts! The game tracks how long you can survive, with the score tied directly to time. You’ll find yourself dodging, grabbing power-ups, and getting better with each run.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prompt used:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Add a survival timer and display the score &lt;span class="k"&gt;in &lt;/span&gt;the top-left corner.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&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%2Fxzgfz28qff7af33oc212.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%2Fxzgfz28qff7af33oc212.png" alt="Image description" width="678" height="366"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And voilà — a sleek timer and live score appeared on the screen, updating in real-time.&lt;/p&gt;




&lt;h2&gt;
  
  
  🏙️ Game Feel &amp;amp; Visuals
&lt;/h2&gt;

&lt;p&gt;To boost immersion, we incorporated:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;City street/hospital-themed background
&lt;/li&gt;
&lt;li&gt;Simple sprite-based visuals using placeholder rectangles (for now)
&lt;/li&gt;
&lt;li&gt;Sound effects for picking up power-ups and the dreaded game over
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Folder Structure
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;avoid_the_virus_game/
├── main.py
├── assets/
│   ├── player.png
│   ├── virus.png
│   ├── mask.png
│   ├── sanitizer.png
│   ├── background.jpg
│   └── sounds/
│       ├── powerup.wav
│       ├── gameover.wav
│       └── bgm.mp3
└── README.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔁 Our Prompt Workflow (Simplified)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;Prompt&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;🧱 Basic Setup&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Create a Pygame arcade game called "Avoid the Virus".&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;⚡ Add Power-Ups&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Add a blue mask power-up that gives 5 seconds of immunity.&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🧟 Enemy Behavior&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Make virus enemies move from all directions toward the player.&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🕓 Score/Timer&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Display the player's survival time as a score.&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🔊 Sounds&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Play a sound when the player picks up a power-up and another when the game ends.&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  💡 What We Learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🧰 Amazon Q CLI is an incredibly efficient way to bootstrap and iterate game mechanics.&lt;/li&gt;
&lt;li&gt;✏️ Prompt-driven development helps you stay in creative flow — you focus on ideas, not syntax.&lt;/li&gt;
&lt;li&gt;🎮 Even simple games benefit from thoughtful power-up mechanics and sound design.&lt;/li&gt;
&lt;li&gt;🐍 Pygame remains a fun, beginner-friendly tool for building 2D games fast.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📁 Repo
&lt;/h2&gt;

&lt;p&gt;🔗 &lt;a href="https://github.com/pratama404/avoid_the_virus_game" rel="noopener noreferrer"&gt;GitHub Repository – Avoid the Virus&lt;/a&gt;&lt;br&gt;&lt;br&gt;
🖼️ &lt;a href="https://youtu.be/gY02DcGbUhU" rel="noopener noreferrer"&gt;YouTube – Avoid the Virus&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🚀 What’s Next?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🖼️ Custom sprite art (replacing placeholder rectangles)
&lt;/li&gt;
&lt;li&gt;🎚️ Difficulty scaling (faster virus spawns over time)
&lt;/li&gt;
&lt;li&gt;🏆 Leaderboard for high scores
&lt;/li&gt;
&lt;li&gt;📱 Mobile adaptation using Kivy or Unity
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🙌 Conclusion
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;"Avoid the Virus"&lt;/em&gt; was born from a simple idea and supercharged by Amazon Q CLI. The fusion of AI-assisted coding and an intuitive Python game engine like Pygame enabled &lt;strong&gt;rapid prototyping&lt;/strong&gt;, &lt;strong&gt;fast iterations&lt;/strong&gt;, and &lt;strong&gt;fun development&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;We hope this inspires you to try building your own games.&lt;br&gt;&lt;br&gt;
With the right prompts, even beginners can make something amazing. 🕹️&lt;/p&gt;




&lt;h2&gt;
  
  
  ✅ Want to Try It Yourself?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Install Pygame:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;pygame
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Start your own AI-prompted dev session:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;q chat
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Happy coding and game building!&lt;/p&gt;

</description>
      <category>pygame</category>
      <category>awschallenge</category>
      <category>ai</category>
      <category>python</category>
    </item>
    <item>
      <title>🚀 Debugging 2024: From Code to Impact, One Milestone at a Time</title>
      <dc:creator>Ageng Putra Pratama</dc:creator>
      <pubDate>Thu, 02 Jan 2025 08:06:29 +0000</pubDate>
      <link>https://dev.to/agengputrapratama/debugging-2024-from-code-to-impact-one-milestone-at-a-time-9ag</link>
      <guid>https://dev.to/agengputrapratama/debugging-2024-from-code-to-impact-one-milestone-at-a-time-9ag</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/newyear"&gt;2025 New Year Writing challenge&lt;/a&gt;: Retro’ing and Debugging 2024.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;2024 was my year of breaking barriers and building dreams. From mastering AI to crafting solutions that matter, it was a journey defined by growth, grit, and game-changing lessons. 🌟&lt;/p&gt;

&lt;p&gt;🌍 From Learning to Leading Change&lt;br&gt;
In 2024, I took a deep dive into the world of artificial intelligence by completing a comprehensive AI course. It wasn’t just about algorithms and data—it was about unlocking the potential of technology to address real-world challenges.&lt;/p&gt;

&lt;p&gt;Bangkit added another dimension to my growth. Immersing myself in cloud computing taught me how to scale solutions, work collaboratively, and design systems that deliver value. Bangkit wasn’t just a program—it was a launchpad for my ambitions. 🚀&lt;/p&gt;

&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%2F8y5f60afywmk8qo4haq1.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%2F8y5f60afywmk8qo4haq1.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;✨ Turning Vision into Reality: Awair AI Quality App&lt;br&gt;
One of my standout achievements in 2024 was building the Awair AI Quality App. This wasn’t just another tech project; it was my way of addressing a critical global issue: air quality.&lt;/p&gt;

&lt;p&gt;Designing an app that utilized AI for real-time monitoring required not just technical skills but also a relentless commitment to excellence. The process of refining algorithms, enhancing user interfaces, and ensuring data accuracy challenged me to grow beyond my limits.&lt;/p&gt;

&lt;p&gt;The result? An app that empowers individuals and communities to make informed decisions about their environment. Awair AI became my proof that innovation begins where passion meets persistence. 🌱&lt;/p&gt;

&lt;p&gt;💡 Lessons That Lit the Way&lt;br&gt;
Curiosity is the Best Teacher: Diving into AI and cloud computing reaffirmed that curiosity opens doors to endless possibilities.&lt;br&gt;
Teamwork Makes the Dream Work: Collaborating with peers during Bangkit showed me the power of diverse perspectives in achieving shared goals.&lt;br&gt;
Resilience is the Ultimate Superpower: Facing setbacks during development taught me to embrace failures as stepping stones to success.&lt;br&gt;
⚡ Turning Challenges Into Stepping Stones&lt;br&gt;
Every journey has its hurdles. For me, grappling with AI’s technical intricacies and cloud computing’s scalability challenges tested my patience and perseverance.&lt;/p&gt;

&lt;p&gt;But instead of deterring me, these challenges fueled my determination. I learned to pivot, adapt, and keep moving forward—a mindset that became my most valuable asset.&lt;/p&gt;

&lt;p&gt;2024: The Year That Built Me&lt;br&gt;
As I look back, I realize that 2024 was more than a year of achievements—it was a foundation for the future. It taught me that growth lies in stepping out of comfort zones, collaboration creates magic, and technology is most powerful when it’s used to solve meaningful problems.&lt;/p&gt;

&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%2Fmklod73huxvz7er16k01.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%2Fmklod73huxvz7er16k01.png" alt="Image description" width="800" height="762"&gt;&lt;/a&gt;&lt;br&gt;
Here’s to carrying these lessons into 2025 and beyond, with a heart full of gratitude and a mind ready for innovation. Let’s build something extraordinary. 💡💪&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>newyearchallenge</category>
      <category>career</category>
    </item>
  </channel>
</rss>
