powered by
Create a Pac-Man Game GIF
animate_pacman( pacman, ghosts, file = NULL, caption = iconv(" Mickal 'Coeos' Canouil", "UTF-8"), font_family = "" )
A data.frame with the coordinates of Pac-Man moves.
data.frame
A listof data.frame with the coordinates of (each) Ghost moves.
list
File name to save GIF on disk.
A caption to add below the GIF.
The font family to use for the caption.
Returns a gif_image object. See gganimate::gifski_renderer.
gif_image
gganimate::gifski_renderer
# NOT RUN { library(ggpacman) if (interactive()) { animate_pacman(pacman = pacman, ghosts = list(blinky, pinky, inky, clyde)) } # }
Run the code above in your browser using DataLab