A one-handed skill game for the Nothing Phone (3) Glyph Matrix (the 25×25 LED display on the back). Built on Nothing's official Glyph Matrix Developer Kit. The toy is called Power Shot.
A cannon sits bottom-left; a target sits out on the right. Using the Glyph Button on the back:
- Hold — charge power (a meter fills up the left edge).
- Release — fire a projectile in an arc toward the target.
- Land on the target → score++, and the next target moves and gets narrower.
- Miss → the matrix shows your score. Just hold again to start a new round.
The whole game is hold-to-charge / release-to-fire — no short taps (a short press is reserved by the OS to switch toys), so it never accidentally navigates away. Judge the power, land the shot.
- The Glyph Matrix SDK
.aarlives inapp/libs/(any*.aaris picked up automatically). - Open in Android Studio and sync, or from the CLI:
The APK lands at
cd GlyphShot ANDROID_HOME=/path/to/android-sdk ./gradlew assembleDebugapp/build/outputs/apk/debug/app-debug.apk. - Install it (
adb install -r …, or sideload — Play Protect will warn about an unknown developer; choose "install anyway"). - On the phone, enable it: Settings → Glyph Interface → Glyph Toys → Power Shot, drag it into Active toys, then cycle to it with the Glyph Button.
| File | Role |
|---|---|
PowerShotGame.kt |
Pure game logic (charge → projectile physics → hit test → scoring). No Android deps, unit-testable. |
GlyphShotService.kt |
Glyph Toy service: charge loop, shot animation, rendering, button handling. |
GlyphMatrixService.kt |
Nothing's base toy service (binds GlyphMatrixManager, routes button events). |
MainActivity.kt |
Minimal info screen, styled in Nothing's black / monochrome / red-accent language. |
- Charge speed:
CHARGE_STEPinGlyphShotService.kt(≈1.4 s to full). - Arc height / range:
gravityand the 45° launch inPowerShotGame.fire(). - Difficulty: target distance range and
tol(target half-width, shrinks with score) inPowerShotGame.newTarget(). - Brightness:
BRIGHT/MID/DIM(0–2047) inGlyphShotService.kt.
Generated dot-matrix vector assets in Nothing's style (black field, white dots, single red accent) — see app/src/main/res/drawable/ic_launcher_*.xml and the adaptive icon in mipmap-anydpi-v26/.
