Skip to content

Instantly share code, notes, and snippets.

@layomia
Created March 19, 2026 19:58
Show Gist options
  • Select an option

  • Save layomia/6b8527d68fe54d5f2cdbf1879c40dedb to your computer and use it in GitHub Desktop.

Select an option

Save layomia/6b8527d68fe54d5f2cdbf1879c40dedb to your computer and use it in GitHub Desktop.
Me:
I want to build a simple p5.js game where Harry Potter villains approach Harry in three lanes (like Beat Saber). Harry can move left/right, and if he’s in the right lane when a villain reaches him, he slays them; otherwise they pass. Track slayed vs passed, and end the game when the difference reaches ±5. Later, I asked for photorealism, then said I don’t have images—so just approximate in code. Finally, I asked to make the game feel more alive, with more depth and closer to my artistic style.
AI:
Provided a full p5.js implementation of the 3-lane game with movement, spawning enemies, hit detection, scoring, and game-over logic . Then upgraded it to support photorealistic sprites using PNG assets (with prompts for generating them), while keeping a fallback if images are missing . After that, created a fully code-based stylized version (no images) with recognizable character silhouettes . Finally, enhanced the game with richer visuals and “life”: beat-synced spawning, parallax corridor, particles (dust/sparks), camera shake, glitch effects, fog, lighting pulses, and poetic overlays to match a more expressive, artistic aesthetic .
Me:
This direction is much closer to what I was aiming for. The added depth (particles, camera motion, and glitch layers) makes the game feel less like a mechanic demo and more like an expressive system. I’m especially interested in how the corruption/glitch effects can communicate state and emotion rather than just feedback. If I continue this, I’d want to push the aesthetic further toward my “corrupted file” visual language and explore how interaction and atmosphere co-evolve.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment