To install, run the following lines:
install.packages("devtools")
devtools::install_github("openanalytics/poissontris")
library(poissontris)
runPoissontris()
Once the app is running, you can click on the 'Show PC Controls' button for keyboard commands. Optionally, use a program (e.g. reWASD in Windows) to map a controller to those commands.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.