Skip to content

Adamgdwn/high_low_game

Repository files navigation

Zen-Mode High/Low

Live Demo Next.js TypeScript Supabase Android

A calm card-flip game for short mental resets.

Built for people whose brains are running a little too hot.

Play the live app | Launch copy

Zen-Mode High/Low preview

Why People Might Star This

  • It has a clear product angle instead of feeling like another generic starter repo
  • The game loop is tiny, tactile, and easy to understand in seconds
  • Zen mode changes pacing, motion, and audio rather than acting like a cosmetic toggle
  • It works as both a playable product and a readable full-stack sample

What It Does

  • Standard 52-card deck with simple HIGH / LOW decisions
  • Score-only gameplay with no payouts or redeemable prizes
  • Softened visual mode for calmer play sessions
  • Ambient loop support with synth fallback
  • Local persistence plus optional Supabase auth and cloud sync
  • Shared billing scaffold and Android companion app

Quick Look

  • Open the app, look at the current card, and choose HIGH or LOW
  • Ties are Push, so score stays flat
  • Fair, Demo: Always Win, and Chaos: Always Lose modes make it useful for both play and testing
  • Mini goals and streak tracking give light structure without turning it into grindy progression

Stack

  • Next.js App Router
  • TypeScript
  • Tailwind CSS
  • Supabase for auth, cloud save, and leaderboard data
  • Stripe billing scaffold
  • Native Android companion in android-native/

Run Locally

npm install
npm run dev

Open http://localhost:3000

Production Build

npm run build
npm start

Tests

npm test

Cloud Save Setup

This repo includes magic-link auth and cloud sync for the web app.

  1. Copy .env.example to .env.local.
  2. Add:
    • NEXT_PUBLIC_SUPABASE_URL
    • NEXT_PUBLIC_SUPABASE_ANON_KEY
  3. Run the SQL in supabase/migrations/0001_game_profiles.sql.
  4. Enable email magic-link auth in Supabase.
  5. Allow these auth URLs:
    • http://localhost:3000
    • https://highlowgame.vercel.app

Do not expose the service role key in the browser.

Billing Scaffold

Shared billing and entitlement support is included for:

  • web_only
  • all_access for web + Android

See supabase/migrations/0003_billing.sql and docs/BILLING_SETUP.md.

Promotion Notes

  • Launch copy is in docs/LAUNCH_COPY.md
  • Third-party audio tracking lives in THIRD_PARTY_AUDIO.md
  • Replace the promo image with a real gameplay GIF when you capture one

Important Product Note

This is a score-only game experience. No cash value, no payouts, and no redeemable prizes.

About

Zen High/Low Card Game

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors