Nodes/CrasH Utils/Snake Game 🐍
ComfyUI Node

Snake Game 🐍

The joke node that got 450+ upvotes and spawned four more games

By chrish-slingshotΒ·Created 3 years agoΒ·Updated about a month agoΒ· 15
Snake Game 🐍

      Every long Wan render or big batch job comes with the same dead time: staring at a progress bar, doing nothing useful. Snake Game is CrasH Utils's answer - drop the node on your canvas and play classic Nokia-style Snake right there while ComfyUI does its work in the background.

      What it is, and how it happened

      This node has an origin story worth knowing, because it explains why this pack suddenly has a Games category at all. In October 2025, the author posted it to r/StableDiffusion with the caption "Are you tired of waiting for image/video generations? Now you can play Snake directly in ComfyUI while you wait!" It hit 450+ upvotes and 60 comments - way past "cute side project" territory - and in the comments people started asking for more: Tetris, Dino, DOOM. The author agreed on the spot, and Tetris, Dino Game, Space Invaders and a full working copy of DOOM all landed within about 48 hours of that one post. Snake is the node that started it.

      How it works

      There's nothing to wire. SnakeGame has no inputs and no outputs - it's a pure UI widget that renders a playable canvas game directly inside the node itself. Add it anywhere on your graph, click into it, and play. It doesn't touch your image pipeline in any way, doesn't read your prompt, doesn't affect your output - it's genuinely just there to keep you occupied.

      Controls are arrow keys or WASD to steer, Space to pause or restart.

      Installing it

      ComfyUI Manager: search "CrasH Utils" and install. Manual:

      cd ComfyUI/custom_nodes/
      git clone https://github.com/chrish-slingshot/CrasHUtils.git
      

      Restart ComfyUI, then add the "Snake Game" node from the CrasH Utils/Games category. No dependencies, nothing to download - it's plain JavaScript running in your browser tab.

      Common issues

      Arrow keys are scrolling the page or panning the ComfyUI canvas instead of moving the snake. You need to click directly on the game canvas first to give it keyboard focus - same rule applies to every game node in this pack. Until you click it, your keypresses go to whatever ComfyUI itself is listening for.

      Snake keeps grabbing my keystrokes when I'm trying to type a prompt elsewhere. Click outside the node to release focus. It only captures your keyboard while actively focused, but it's easy to forget you left it focused after a match.

      Does this slow down my actual generation? No - it's a client-side canvas game running in your browser, not competing with your GPU or your Python process for anything. Your render queue keeps working at full speed whether you're playing or not.

      Score doesn't persist after I reload the page. Game state lives in your browser tab, not on the server, so refreshing ComfyUI's page resets it - same as any browser-rendered widget in this pack.

      CategoryCrasH Utils/Games

      Inputs (0)

      No inputs

      Outputs (0)

      No outputs