Let's make a slide puzzle in p5.js together! We'll be using images, nested loops, and arrays, and by the end of our journey, we'll have a fully playable game!
The Fisher-Yates shuffle is an algorithm for generating a random permutation of a finite sequence
The full details about copy() are on the p5.js reference.
This video demonstrates how to use copy() for slitscan and time displacement.
by Mathieu Blanchette
by Jason Heglund