You are browsing as a guest. Sign up (or log in) to start making projects!

Reflex Machine

  • 1 Devlogs
  • 0 Total hours

A fast-paced, browser-based reaction game inspired by the classic "Bop-It" toy. The screen rapidly flashes a random instruction (e.g., "Click", "Double Click", "Press Spacebar", "Press Enter"), and the player has exactly two seconds to perform the correct action before the timer runs out.

Open comments for this post

22m 59s logged

Why use state machines for a reaction game?

Finite State Machines (FSM) model apps as explicit, predictable states (Idle -> Playing -> GameOver) triggered by events. No more boolean state spaghetti….

We chose XState for Reflex Machine to get:

  • ⏱️ Declarative game timers (delays as state transitions)
  • 🔒 Input integrity (clicks ignored if round is over)
  • ❌ Zero impossible states
0

Loading discussion…

0
1

Followers

Loading…