I Built a Platformer That Gaslights You β€” Coins Steal, Spikes Heal, and The Exit Door Kills You πŸ«– β€” DeepSeek Blog | Neura Market
    Neura MarketNeura Market/DeepSeek
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityTrendingGenerate
    DeepSeekBlogI Built a Platformer That Gaslights You β€” Coins Steal, Spikes Heal, and The Exit Door Kills You πŸ«–
    Back to Blog
    I Built a Platformer That Gaslights You β€” Coins Steal, Spikes Heal, and The Exit Door Kills You πŸ«–
    devchallenge

    I Built a Platformer That Gaslights You β€” Coins Steal, Spikes Heal, and The Exit Door Kills You πŸ«–

    Anik2812 April 12, 2026
    0 views

    This is a submission for the DEV April Fools Challenge What I Built DEFINITELY NOT A...

    *This is a submission for the [DEV April Fools Challenge](https://dev.to/challenges/aprilfools-2026)* ## What I Built **DEFINITELY NOT A TROLL GAMEβ„’** β€” a platformer that looks completely normal but systematically betrays every gaming instinct you've ever developed. Level 1 is honest. It teaches you the rules: collect coins, avoid spikes, reach the exit. You feel safe. You feel smart. Then Level 2 happens. Here's what you need to know: - **Trust nothing.** Every rule established in Level 1 is a lie designed to hurt you later. - **The game actively mocks you.** It features an integrated Gemini 2.0 Flash AI bot designed specifically to roast your gameplay decisions in real-time. - **The settings menu is a trap.** The volume slider fights back. The "Uninstall" button refuses to work. The "Fun" toggle turns itself back on. - **Even the quit button gaslights you.** Quitting requires multiple attempts, negotiations, and emotional manipulation. The game has 10 levels of escalating betrayal, culminating in a final boss fight against... a "Next Level" button that refuses to be clicked. **The settings menu** has a "Difficulty" selector (does nothing), a volume slider that fights back and resets itself, a "Fun" toggle that re-enables itself when you turn it off, and an "Uninstall" button with 6 escalating refusals ("Error: Cannot uninstall. The game IS your computer now.") **The quit button** requires 6 attempts. On the 6th try it says "Just kidding πŸ˜‚" and force-resumes the game. **Your browser tab title** changes as you die: - 3 deaths: `πŸ’€ 3 deaths... | TROLL GAME` - 20 deaths: `🚨 POLICE: Stop playing | TROLL GAME` - 40 deaths: `πŸ“ž Your mom called. She's worried.` - 50 deaths: `πŸ† 50 DEATHS. ARE YOU OK?` **The FPS counter** cycles through: `420.69 FPS`, `NaN FPS`, `POTATO FPS`, `FPS.exe crashed`, `√-1 FPS` **The cookie banner** reads: *"We use cookies to track your failures and share them with absolutely everyone."* ## Demo [**β–Ά Play DEFINITELY NOT A TROLL GAMEβ„’**](https://notatroll.netlify.app/) Runs entirely in the browser. HTML5 Canvas, vanilla JS, zero frameworks, zero build steps. Works on desktop and mobile (touch controls included, because suffering should be accessible). ## Code {% embed https://github.com/Anik2812/not-a-troll-game %} **5 files. No frameworks. No dependencies. Pure, artisanal disappointment:** | File | Lines | What it does | |---|---|---| | `index.html` | ~300 | Structural skeleton with all overlays and modals | | `style.css` | ~525 | Brutalist design system, glitch effects, scanlines | | `game.js` | ~1070 | Full canvas engine: physics, collision, particles | | `levels.js` | ~355 | 10 handcrafted levels of escalating betrayal | | `app.js` | ~920 | AI chatbot, Konami code, achievements, chaos | ## How I Built It ### The Stack - **HTML5 Canvas** β€” Custom 2D game engine with tile-based collision, coyote time (8-frame jump buffer), particle systems, and screen shake - **Vanilla CSS** β€” Brutalist design tokens, noise overlays, scanline effects, periodic glitch text animations via CSS `clip-path` - **Vanilla JS** β€” Zero dependencies. Everything runs inside a single IIFE - **Google Gemini 2.0 Flash** β€” Powers the in-game AI chatbot AND generates personalized victory reviews - **Web Audio API** β€” Procedurally generated sound effects (oscillator-based β€” every jump, coin, death, and level complete is synthesized in real time) - **Built with Google Antigravity** β€” The AI coding assistant that helped architect the game engine, design the troll mechanics, and debug the collision detection ### The AI Integration The game features a **"HELPFUL ASSISTANTβ„’"** β€” a chatbot powered by **Google Gemini 2.0 Flash** with deep game-state awareness. **How it works:** The system prompt tells Gemini to act like *"a bored IT support worker who secretly hates their job but drops weirdly poetic one-liners about existential suffering."* It receives your exact death count, current level, score, and recent game events (died to spikes, collected trap coin, walked into fake door) as context, then generates unique roasts. **Key design decisions:** - **Non-repeating responses:** A `Set`-based tracker ensures the AI never says the same thing twice in a session. The system prompt itself includes recently-used responses and explicitly instructs Gemini to avoid them. - **Keyword matching with fallback:** 25+ keyword categories (coins, spikes, doors, exit, coffee, teapot, etc.) each have 3-5 unique responses with their own non-repeat tracking. If the API is rate-limited, these fire as graceful fallbacks. - **Fisher-Yates shuffle bags** for death messages β€” the 26 death messages and 8 sub-messages are shuffled like a deck of cards, guaranteeing you see every message before any repeats. - **Rate-limiting aware:** 5-second cooldown between API calls with exponential backoff on 429 errors. The game never breaks if the API is down. **Gemini also generates a "Performance Review"** on the victory screen β€” a sarcastic AI-written summary of your entire playthrough: > *"Ah yes, 47 deaths. That's not a playthrough, that's a documentary about perseverance. Score: functionally irrelevant. Rating: 3/10, and 2 of those points are for not uninstalling. β€” Management"* ### Easter Eggs - **Konami Code** (↑↑↓↓←→←→BA) triggers a full-screen **HTTP 418: I'm a Teapot** experience with RFC 2324 references, HTCPCP protocol headers, and animated CSS - **Clicking the "4.9β˜… Rating"** on the menu β€” also triggers 418 - **The AI chatbot**: mention coffee, tea, latte, espresso, or brew β†’ "Error 418: I'm a teapot. Per RFC 2324." - **Death #25** displays: "πŸ«– The teapot weeps for you. Error 418." - **The favicon** is literally a teapot emoji: πŸ«– - **The FPS counter** includes `418 FPS` in its rotation ### ⚠️ SPOILER WARNING: The Mechanics (For the Judges) *If you are judging the code and don't want to suffer through 10 levels to see the joke, here's what the engine actually does under the hood:* - πŸ’° **Coins steal your points** β€” half the coins are traps that deal damage AND subtract 100 points. - πŸ”Ί **Spikes heal you** β€” the pointy death triangles restore health. The signs say "AVOID SPIKES!" They're lying. - ❀️ **Health packs damage you** β€” the heart-shaped pickups are weapons of mass betrayal. - πŸšͺ **Exit doors kill you** β€” 3 out of 4 doors are instant death. The signs explicitly point you to the wrong ones. - βœ… **"SAFE" platforms collapse** β€” ISO-9001 Certified for disappointment. - **Level 5 is "Opposite Day"** β€” literally nothing means what it says. - **Level 7 is a carbon copy of Level 1** but with everything inverted. The sign says "Relax. It's Level 1 again." It's not. ## Prize Category ### πŸ† Best Google AI Usage Google Gemini 2.0 Flash is deeply embedded in the gameplay β€” not as a gimmick, but as a core mechanic: 1. **Context-aware AI companion** that ingests real-time game state (deaths, level, score, recent events) and generates unique, non-repeating roasts 2. **AI-generated victory reviews** β€” personalized sarcastic "performance evaluations" created by Gemini at the end of each playthrough 3. **Graceful degradation** β€” the game works perfectly without the API via keyword-matched fallback responses, so judges always have a working experience 4. **Built entirely using Google Antigravity** β€” the AI coding agent that helped architect the engine, write the troll dialogue system, and debug the final button's fleeing behavior The intersection of "world-class AI" and "deliberately terrible software" is the joke. We used the best tools available to build something that provides zero value. Technology. ### πŸ«– Best Ode to Larry Masinter This game is a love letter to RFC 2324 and HTTP 418: - **The Konami Code** triggers a theatrical 418 screen with RFC citation, HTCPCP protocol headers, `X-Larry-Masinter: Legend`, and the classic nursery rhyme ("The requested entity body is short and stout / Tip me over and pour me out") - **3 discovery paths** to the teapot: Konami code, clicking the rating, and a hidden tile in Level 1 - **The AI chatbot** responds to ANY coffee/tea reference with RFC-accurate 418 errors - **Death milestone #25** references the teapot - **The credits** include a dedication: *"Larry Masinter β€” RFC 2324 (1998) β€” HTTP 418: I'm a teapot πŸ«–"* - **The favicon** is a teapot - **The FPS counter** shows `418 FPS` Larry Masinter gave the internet its most important error code. This game gives the internet its most important platformer. Neither serves any practical purpose. That's the point. ### 🎭 Community Favorite The game is designed to generate stories. The tab title changes. The AI roasts you personally. The cookie banner steals your dignity. The quit button fights you. And the "Share Your Shame" button on the victory screen copies your stats to clipboard in a pre-formatted post: > *"πŸ† I just beat DEFINITELY NOT A TROLL GAMEβ„’ with 47 deaths and a score of -200. The coins robbed me. The spikes healed me. The doors killed me. The button ran away. I have trust issues now."* Between the rotating fake reviews on the menu ("I didn't know I could be gaslit by a platformer" β€” @trust_issues_69), adaptive death messages that never repeat, and a settings menu where the Fun toggle refuses to turn off... I think this might be the game that makes people screenshot and share. --- *Built with spite, caffeine, and Google Antigravity. No teapots were harmed in the making of this software. Several keyboards were.* *Dedicated to Larry Masinter, who in 1998 wrote an April Fools RFC that became a permanent part of the internet. We should all be so lucky.*

    Tags

    devchallenge418challengeshowdev

    Comments

    More Blog

    View all
    How I'm using ASTs and Gemini to solve the "Codebase Onboarding" problem 🧠ai

    How I'm using ASTs and Gemini to solve the "Codebase Onboarding" problem 🧠

    Hi everyone! πŸ‘‹ I’m Tara, a Senior Software Engineer and Consultant. Over the years, I've jumped...

    T
    tworrell
    Local AI Will Save Us All (The Math Says So, Trust Me)ai

    Local AI Will Save Us All (The Math Says So, Trust Me)

    Every few weeks a take goes viral in tech circles making the case for ditching cloud AI and running...

    S
    Sebastian SchΓΌrmann
    Lost in the AI Hype, I Started Smallai

    Lost in the AI Hype, I Started Small

    And it helped me get back into tech without drowning TL;DR at the end Coming back to...

    R
    Rohini Gaonkar
    Building a Replay-Tested Interactive Brokers Client in Gogo

    Building a Replay-Tested Interactive Brokers Client in Go

    I wanted an IBKR library that felt like Go and had testing I could trust. So I wrote one.

    T
    Thomas Marcelis
    Playwright in Pictures: Fully Parallel Modeplaywright

    Playwright in Pictures: Fully Parallel Mode

    Playwright’s fullyParallel mode is often treated as a simple performance switch. In practice, it...

    V
    Vitaliy Potapov
    Designing a CLI for Both Humans and Agentscli

    Designing a CLI for Both Humans and Agents

    Learn how Alpic designed its CLI for both human developers and AI agents β€” covering tradeoffs like polling, context windows, interactivity, and statelessness.

    J
    Julien Vallini

    Stay up to date

    Get the latest DeepSeek prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for DeepSeek and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    Β© 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.