Pong on the back of your phone.
Play Pong on the Nothing Phone (4a) Pro Glyph Matrix -- a 13x13 LED grid on the rear of the device. Control your paddle with the volume buttons. First to 11 wins.
┌─────────────────────────────┐
│ . . . . . . . . . . . . . │
│ . . . . . . . . . . . . . │
│ . . . . . . . . . . . . . │
│ . . . . . . . . . . . . . │
│ # . . . . . o . . . . . . │
│ # . . . . . . . . . . . # │
│ # . . . . . . . . . . . # │
│ . . . . . . . . . . . . # │
│ . . . . . . . . . . . . . │
│ . . . . . . . . . . . . . │
│ . . . . . . . . . . . . . │
│ . . . . . . . . . . . . . │
│ . . . . . . . . . . . . . │
└─────────────────────────────┘
# paddle o ball
| Button | Action |
|---|---|
| Volume Up | Move paddle up |
| Volume Down | Move paddle down |
You control the left paddle. The AI controls the right. First to 11 points wins the set. After each point the score is displayed on the LED matrix and the ball resets.
Slide the Opponent slider before starting a game:
| Level | Description |
|---|---|
| Easy | Slow reactions, easy to beat |
| Medium | Default -- a fair match |
| Hard | Fast tracking, tough to score on |
| Brutal | Near-perfect -- good luck |
The slider is locked while a game is running.
- Nothing Phone (4a) Pro (Glyph Matrix hardware)
- Android 14+
git clone https://github.com/codester007/glyph-pong.git
cd glyph-pong
./gradlew assembleDebug
adb install app/build/outputs/apk/debug/app-debug.apkThe app uses the Nothing GlyphMatrix SDK to drive the 13x13 LED matrix on the back of the phone. Each LED has 4096 brightness levels. The game runs at ~7 fps, rendering each frame as a 169-element array of brightness values.
The on-screen preview mirrors exactly what's shown on the Glyph Matrix, with each LED drawn as a small dot.
- Kotlin
- Nothing GlyphMatrix SDK 2.0
- Min SDK 34 / Target SDK 35
- Zero third-party dependencies (just
androidx.core)
MIT
