shuffle_sprite {pixelpuzzle}R Documentation

Shuffle a sprite randomly

Description

Shuffle a sprite randomly

Usage

shuffle_sprite(img, difficulty = 1)

Arguments

img

Sprite

difficulty

Difficulty (intensity of shuffeling)

Value

List of sprites

Examples

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

[Package pixelpuzzle version 1.0.1 Index]