shuffle_sprite: Shuffle a sprite randomly

Description Usage Arguments Value Examples

View source: R/pixelpuzzle.R

Description

Shuffle a sprite randomly

Usage

1
shuffle_sprite(img, difficulty = 1)

Arguments

img

Sprite

difficulty

Difficulty (intensity of shuffeling)

Value

List of sprites

Examples

1
2
3
sprites <- define_sprite()
sprite <- sprites[["sword"]]
show_sprite(shuffle_sprite(sprite))

pixelpuzzle documentation built on Feb. 1, 2021, 9:05 a.m.