Inspiration

We wanted to bring back the nostalgic rush of classic 8-bit arcade gameplay while combining it with modern web standards and seamless cross-platform monetization. ThreadMan: Pixel Swing & Dodge was born from the idea of high-stakes, fast-paced momentum: shooting high-tension threads between skyscraper walls, dodging hazards at escalating speeds, and collecting rewards. Integrating RevenueCat allowed us to offer a native-grade purchase and entitlement experience seamlessly across web, iOS, and Android.

What it does

  • Physics-driven Retro Arcade: High-tension thread swinging, dynamic wall-bounding, and hazard dodging powered by a custom HTML5 Canvas 2D engine.
  • Progress & Unlockables: Persistent high scores, unique thread suits, pets, and missions stored locally.
  • Super Hero Pass (VIP Entitlement): A single lifetime purchase (super_hero_pass) that permanently unlocks all suits, companion pets, and premium gameplay features.
  • Cross-Platform & Offline-Ready: Packaged as a lightweight PWA with Capacitor support for native iOS/Android deployment.

How we built it

  • Frontend & Game Engine: Built with React 18, TypeScript, and Vite. The game loop runs on a custom 60fps HTML5 Canvas renderer (PixelGameCanvas.tsx) managed through React hooks (useGameState, useAudio).
  • Styling: Tailwind CSS for responsive layout and retro-styled UI overlays.
  • Monetization & In-App Purchases: Integrated via @revenuecat/purchases-capacitor and Web Billing SDK:
    • Fetches the current offering dynamically via purchases.getOfferings() to present localized pricing.
    • Native & Web paywall support using purchases.presentPaywall().
    • Authoritative entitlement checking via customerInfo.entitlements.active.super_hero_pass?.isActive.
    • Handles anonymous ID sync, profile linking, restore access, and Customer Center management URLs.

Challenges we ran into

  • Synchronous Canvas Loop vs React State: Managing high-speed frame updates on the canvas while syncing state changes with React UI modals and purchase states required fine-tuned memoization and decoupled event dispatchers.
  • Cross-Platform Entitlement State: Ensuring a consistent source of truth across browser refreshes, PWA mode, and native builds without relying on unsafe local flags. We strictly anchored authorization to RevenueCat's CustomerInfo.
  • Web Billing / SDK Parity: Gracefully handling flows like restorePurchases and customer management on the web where native StoreKit/Play Billing methods differ.

Accomplishments that we're proud of

  • Delivering smooth, responsive pixel physics with zero external game engine bloat.
  • Implementing an end-to-end, resilient RevenueCat monetization pipeline from offering retrieval to lifetime entitlement checks and paywall presentation.
  • Designing an addictive retro gameplay loop with rich 8-bit audio and vibrant visuals.

What we learned

  • How to deeply customize and configure RevenueCat offerings, packages, and paywalls across hybrid environments.
  • Architectural patterns for syncing real-time canvas animation states with transactional SDKs.

What's next for ThreadMan

  • Real-time global leaderboards and asynchronous ghost runs.
  • Additional worlds, weather conditions, and seasonal pass offerings.

Built With

Share this project:

Updates

Submission history