I decided to try continuous user input in the R language - thanks to Shiny it is possible. Here is the result.
To play pong
use this commands:
library(shiny)
runGitHub(repo = 'r-cade-games', username = 'JacekPardyak', subdir = 'pong')
In the app, you should see a bouncing ball resembling this:
This App is an Shiny wrapper around tictactoe
R package of Kota Mori. To play tictactoe
use this commands:
library(shiny)
runGitHub(repo = 'r-cade-games', username = 'JacekPardyak', subdir = 'tictactoe')
On your screen you should see:
tidy
version is available here:
library(shiny)
runGitHub(repo = 'r-cade-games', username = 'JacekPardyak', subdir = 'tic-tac-toe-tidy')
This R notebook can help you to understand the animations behind: https://github.com/JacekPardyak/r-cade-games/blob/master/Pong-animation.ipynb
Files wav
come from beepr
package and workaround from https://stackoverflow.com/questions/62369511/how-to-make-a-shiny-app-beep-play-a-sound-after-a-reactive-event
I can think of improving UX but my goal is achieved.