Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

lopopolo/punchtop

Repository files navigation

punchtop

punchtop is an audio game that runs a power hour using music on the local file system and streams to a Chromecast device.

Game

A power hour is a (drinking) game. During each 60-second round, a song is played. A change in music marks each new round.

Usage

To run punchtop, you must build it from source. Punchtop depends on:

  • nightly rust, which you can install using rustup
  • node
  • yarn

After you have installed the build dependencies, you can launch punchtop with debug logging via cargo:

RUST_BACKTRACE=1 PUNCHTOP_LOG=cast-client=debug,punchtop=debug,rocket=info cargo run

or in a release build:

cargo build --release
PUNCHTOP_LOG=info caffeinate -s ./target/release/punchtop-webview

Limitations / Known Bugs

  • Media directory may only be selected by modifying the source.
  • Chromecast device may only be selected by modifying the source.
  • App does not prevent system sleep via idle timeout.
  • [macOS] App does not shut down cleanly on quit.
  • [macOS] App does not shut down cleanly on SIGINT.
  • [macOS] App does not exit on game completion until webview has user activity.

Screenshots

Punchtop player and playback controls