Skip to content

codester007/glyph-pong

Repository files navigation

Glyph Pong

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.

Glyph Pong running on a Nothing Phone (4a) Pro

 ┌─────────────────────────────┐
 │  . . . . . . . . . . . . . │
 │  . . . . . . . . . . . . . │
 │  . . . . . . . . . . . . . │
 │  . . . . . . . . . . . . . │
 │  # . . . . . o . . . . . . │
 │  # . . . . . . . . . . . # │
 │  # . . . . . . . . . . . # │
 │  . . . . . . . . . . . . # │
 │  . . . . . . . . . . . . . │
 │  . . . . . . . . . . . . . │
 │  . . . . . . . . . . . . . │
 │  . . . . . . . . . . . . . │
 │  . . . . . . . . . . . . . │
 └─────────────────────────────┘
       #  paddle  o  ball

How to Play

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.

Difficulty

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.

Requirements

  • Nothing Phone (4a) Pro (Glyph Matrix hardware)
  • Android 14+

Build & Install

git clone https://github.com/codester007/glyph-pong.git
cd glyph-pong
./gradlew assembleDebug
adb install app/build/outputs/apk/debug/app-debug.apk

How It Works

The 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.

Tech

  • Kotlin
  • Nothing GlyphMatrix SDK 2.0
  • Min SDK 34 / Target SDK 35
  • Zero third-party dependencies (just androidx.core)

License

MIT

About

Pong on the Nothing Phone (4a) Pro Glyph Matrix -- play with your volume buttons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages