Expanding a bit on my SNES background mode 7 video to see exactly how a game might implement simple scaling and rotation!
Way back when, I made a video on the Super Nintendo's background mode 7, the feature that allows for tiles to be stretched, squished and rotated. It goes over all of the math behind the affine transformations and everything, so you may want to go watch that one if you haven't already (here's a link [https://www.youtube.com/watch?v=3FVN_Ze7bzw]).