How brskkkk/rythmn-games-auto-play works
Rhythm Autoplayer is an offline Android app that watches a downscroll rhythm game and can send lane taps through Android Accessibility. The main flow is: configure lane guides and input targets, capture frames, detect and track falling notes, then schedule taps or holds. Calibration, editable overlays, and named profiles support that workflow. Edges use the excerpts, SOURCE INDEX references, and README statements; unsampled implementation details are not assumed.
Main entry points: CaptureService.kt Capture service · MainActivity.kt Setup screen · AccessibilityInputService.kt Gesture service · ProfileRepository.kt Profile storage
Components 14
Setup & profiles
- Setup screen
app/src/main/java/dev/rhythm/autoplayer/MainActivity.kt - Profile selector
app/src/main/java/dev/rhythm/autoplayer/SimpleItemSelectedListener.kt - Calibration profile
app/src/main/java/dev/rhythm/autoplayer/core/CalibrationProfile.kt - Profile storage
app/src/main/java/dev/rhythm/autoplayer/config/ProfileRepository.kt
Capture & overlays
- Capture service
app/src/main/java/dev/rhythm/autoplayer/capture/CaptureService.kt - Screen capture
- Lane overlay
app/src/main/java/dev/rhythm/autoplayer/capture/ReceptorOverlayView.kt - Floating controls
app/src/main/java/dev/rhythm/autoplayer/capture/ControlPanel.kt
Detection & timing
- Note detector
app/src/main/java/dev/rhythm/autoplayer/core/FullScreenNoteDetector.kt - Note tracker
app/src/main/java/dev/rhythm/autoplayer/core/NoteTracker.kt - Line calibration
app/src/main/java/dev/rhythm/autoplayer/core/JudgementLineCalibrator.kt
Gesture input
- Gesture service
app/src/main/java/dev/rhythm/autoplayer/input/AccessibilityInputService.kt
Other components
- Player
- Rhythm game
Connections 18
- Player → Setup screen: configures
README.md - Setup screen → Profile storage: loads profiles
app/src/main/java/dev/rhythm/autoplayer/MainActivity.kt - Setup screen → Profile selector: uses selector
app/src/main/java/dev/rhythm/autoplayer/MainActivity.kt - Profile storage → Calibration profile: stores settings
app/src/main/java/dev/rhythm/autoplayer/config/ProfileRepository.kt - Setup screen → Capture service: starts capture
app/src/main/java/dev/rhythm/autoplayer/MainActivity.kt - Capture service → Profile storage: loads settings
app/src/main/java/dev/rhythm/autoplayer/capture/CaptureService.kt - Capture service → Screen capture: captures frames
README.md - Capture service → Lane overlay: updates overlay
app/src/main/java/dev/rhythm/autoplayer/capture/CaptureService.kt - Capture service → Floating controls: creates controls
app/src/main/java/dev/rhythm/autoplayer/capture/CaptureService.kt - Player → Floating controls: edits guides
README.md - Screen capture → Capture service: provides frames
README.md - Capture service → Note detector: scans frames
app/src/main/java/dev/rhythm/autoplayer/capture/CaptureService.kt - Capture service → Line calibration: calibrates frame
app/src/main/java/dev/rhythm/autoplayer/capture/CaptureService.kt - Capture service → Note tracker: tracks detections
app/src/main/java/dev/rhythm/autoplayer/capture/CaptureService.kt - Capture service → Gesture service: schedules gestures
app/src/main/java/dev/rhythm/autoplayer/capture/CaptureService.kt - Gesture service → Rhythm game: dispatches taps
README.md - Lane overlay → Player: shows markers
README.md - Gesture service → Calibration profile: uses targets
app/src/main/java/dev/rhythm/autoplayer/input/AccessibilityInputService.kt