An API to build and control 2D games using the 'Phaser' 'JavaScript' engine. It enables integration with 'shiny' applications, allowing to create interactive games and simulations.

This package provides an R Shiny interface to selected features of the Phaser 3 game framework.
With the current API, you can build small-to-medium 2D game-like interactions in Shiny, including:
Install the stable release from CRAN:
install.packages("shinyphaser")
Install the development version from GitHub:
# install.packages("pak")
pak::pak("maciekbanas/shinyphaser")
You can run the built-in sample app:
shinyphaser::run_sample_app()
For a full walkthrough (from static background to movement, animation, overlap, and collision), see Build your first shinyphaser game
shinyphaser