Inspiration

The idea for RogueCode came from my long-standing fascination with cyberpunk aesthetics, command-line hacking games, and the evolving capabilities of AI. I’ve always loved the immersive nature of terminal-based simulations, and I wanted to build something that not only captured that nostalgic feeling but also integrated real-time AI to make interactions more intelligent and dynamic.

I wanted to create an experience that felt like stepping into a hacker’s shoes in a dystopian future—something cinematic, atmospheric, and interactive.

What it does

RogueCode is a terminal-style hacking adventure game set in a cyberpunk world. As a rogue hacker, the player uses command-line inputs to:

  • Scan, inject, and hack targets
  • Complete AI-generated missions
  • Unlock new skills and tools
  • Explore and interact with an AI-driven world via the terminal

The game features:

  • A retro CRT-style interface with glitch animations
  • AI-generated missions with varying difficulties and rewards
  • Real-time responses powered by Groq API
  • Smart in-game search functionality via Tavily API
  • Ambient audio and typing effects for an immersive experience

How I built it

I built RogueCode using React.js as the core framework. The entire terminal interface was designed to be interactive, responsive, and realistic.

Tools and Technologies:

  • React.js – UI framework
  • GSAP – Animations and transitions
  • Custom typewriter effect – For realistic command-line typing
  • CSS – Custom animations, CRT and glitch effects
  • Groq API – For fast, character-consistent AI responses
  • Tavily API – For intelligent search and in-game target intel
  • LocalStorage – To persist game progress
  • UUID – For mission and target identification

I structured the project with reusable components for the terminal, command input, status bar, help panel, and popups like mission info, skill tree, and inventory.

Challenges I ran into

  • Command Parser Design: Creating a flexible command parser that supports flags and multi-word commands took multiple iterations.
  • Balancing AI Responses: Tuning the Groq API to respond fast while staying relevant to the context.
  • UI Complexity: Simulating a realistic terminal with CRT effects and glitch animations while keeping it performant was a challenge.
  • Game State Management: Managing the game logic and player progression through React context and local storage needed careful state planning.

Accomplishments I'm proud of

  • Built a fully functional terminal interface from scratch with animations and audio feedback.
  • Seamlessly integrated AI APIs (Groq + Tavily) to create an intelligent, dynamic game world.
  • Developed a mission generation system that creates believable tasks and rewards.
  • Designed an engaging skill and inventory system with upgrades and tools.
  • Made a terminal experience that feels both immersive and authentic.

What I learned

  • How to effectively integrate AI APIs into a game environment.
  • Advanced use of React.js, hooks, and animation libraries like GSAP.
  • How to design an interactive CLI-like experience for the web.
  • Improved my skills in asynchronous programming, API orchestration, and real-time data handling.
  • The importance of UX design even in retro-themed, text-based interfaces.

What's next for RogueCode: AI Hacker Adventure Game

  • Add AI memory to maintain context across missions and player choices.
  • Expand with more mission types and deeper storylines.
  • Introduce terminal themes and personalization options.
  • Build a progress tracker for skills, mission history, and hacking stats.
  • Possibly add mod support for custom missions and tools.
  • Explore a mobile-friendly version with adapted command input.

Built With

Share this project:

Updates