Nothing
Puzzle game for the R console. Restore the pixel art by shifting rows!
CRAN
install.packages("pixelpuzzle")
Github
# install from github
if (!require(devtools)) install.packages("devtools")
devtools::install_github("rolkra/pixelpuzzle")
library(pixelpuzzle)
pixelpuzzle()
{pixelpuzzle} comes with predefined pixel art you can play with. Just start the game with pixelpuzzle()
to select one.
In case you want to define your own pixel art you can use the following color codes for each pixel:
library(pixelpuzzle)
sprite <- c(
"RRRRRRRRR",
"MMMMMMMMR",
"BBBBBBBMR",
"CCCCCCBMR",
"GGGGGCBMR",
"YYYYGCBMR",
"WWWYGCBMR",
"SSWYGCBMR",
"XSWYGCBMR"
)
show_sprite(sprite)
You can use this pixel art by passing it as parameter to pixelpuzzle()
pixelpuzzle(sprite)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.