Skip to content

Repository files navigation

Glyph Shot

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.

Glyph Shot gameplay on the Glyph Matrix

How to play

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.

Build & install

  1. The Glyph Matrix SDK .aar lives in app/libs/ (any *.aar is picked up automatically).
  2. Open in Android Studio and sync, or from the CLI:
    cd GlyphShot
    ANDROID_HOME=/path/to/android-sdk ./gradlew assembleDebug
    The APK lands at app/build/outputs/apk/debug/app-debug.apk.
  3. Install it (adb install -r …, or sideload — Play Protect will warn about an unknown developer; choose "install anyway").
  4. 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.

Project layout

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.

Tuning

  • Charge speed: CHARGE_STEP in GlyphShotService.kt (≈1.4 s to full).
  • Arc height / range: gravity and the 45° launch in PowerShotGame.fire().
  • Difficulty: target distance range and tol (target half-width, shrinks with score) in PowerShotGame.newTarget().
  • Brightness: BRIGHT / MID / DIM (0–2047) in GlyphShotService.kt.

Icon

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

About

Hold-to-charge artillery game for the Nothing Phone 3 Glyph Matrix

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages