So, I figured I'd try LEDSprite.

So, I figured I’d try LEDSprite. I was hopeful that it would save me some time over doing things myself or like @Yves_BAZIN has done (which is even more work, matrix handling by hand + sprite handling by hand).

I’m not going to lie, it took me way more hours than I was planning/hoping for, but I was able to make a demo using the LEDMatrix LEDSprites code.
I think the main reason that it was such is pain is that the automatic sprite bounce handling does not handle changing directions, just bouncing back in the opposite direction, while the edge detection code in the library is a bit buggy and detects the edge a bit too far in some directions, so I had to do it by hand.
But @Yves_BAZIN I’d still love to see your code if you have the time to replace your manual tiling code with NeoMatrix, so that it can be trivially ported to any size and type tiled matrix other than your own.
Anyway, here’s the code: https://github.com/marcmerlin/LEDSprites-Pacman

Thanks @Marc_MERLIN , I’m going to try this on my hat and on my brolly :slight_smile:

Go Marc. Looking good!

@Marc_MERLIN https://gist.github.com/hpwit/e8d98c75b11872715fb8e495514891d1
Here is the code to rotate the image. and then you can use your home made function to display the resulting image

@Yves_BAZIN yeah, I know my sprites looking the wrong way, but with LEDSprites there are 2 issues

  1. If I turn around at each corner, I have to destroy the sprite, and create a new one. It’s actually a fair amount of extra code.
  2. that code has multiple frames per sprite plus a sprite mask. Turning all that around 90 degrees is just more work than I wanted to put into it.