What inspired us

Classic 90s arcade flight sims and low-poly PS1-era aerial combat games had a distinct visual charm—sharp silhouettes, tactile cockpit instruments, and stylized dusk landscapes. We wanted to bring that nostalgic 3D flight experience directly into a Reddit post using Devvit's Three.js template, turning every post into a shared archipelago sortie that subreddit members can play together.

What we learned

  • Deterministic Seeding on Reddit: Hashing each post's unique postId into a 32-bit seed lets every player on the same post experience the exact same procedural terrain and obstacle layout without needing a heavy backend state sync.
  • WebView Color Spaces & CSP: Embedded Reddit WebViews handle linear-to-sRGB gamma differently than standalone browsers, and Devvit's strict Content Security Policy requires bundling all dependencies (like Three.js) locally via Vite rather than relying on external CDNs.

How we built it

I built Pixel Jet on top of the Devvit Three.js template with zero external 3D models, textures, or audio files:

  • Retro Pixel & Dithering Pipeline: The Three.js scene renders to a downscaled 270p framebuffer with nearest-neighbor upscaling and passes through a custom GLSL fragment shader
  • Procedural World & Jet: Multi-octave fBm noise generates the coastal islands and instanced autumn trees, while a custom GLSL shader animates shoreline waves. The fighter jet is constructed from low-poly primitives with an inverted-hull dark silhouette outline.
  • Multi-View HUD & Web Audio: Players can toggle (SPACE) between Chase View, Top-Down Tactical View, and a 1st-Person Cockpit HUD drawn on HTML5 Canvas 2D, backed by a real-time Web Audio synthesizer for jet engine thrust and weapons.

Challenges we faced

  • Dark Rendering in Reddit's WebView: Raw linear output from the render target initially crushed the dusk lighting into near-black shadows; adding an explicit gamma curve ($C_{\text{out}} = C_{\text{in}}^{1/2.15}$) and contrast lift in the post-processing shader restored the warm twilight palette.
  • Desktop vs. Mobile Input Detection: Narrow desktop preview frames triggered standard CSS width breakpoints, so we switched to hardware pointer checks (pointer: coarse and navigator.maxTouchPoints) to show the touch flight pad only on mobile devices.
Share this project:

Updates

Submission history