Taking from the work I did for libcbmhires, I built another application using it: this time I decided to decode location graphic for The Last Ninja and process the overlapping of various objects in a sensible way on PC thus producing a valid C64 hires picture.

The result is not 100% what the graphic overlap routines would produce in The Last Ninja, yet its OK for the quick tests I need to do.

Here’s an example – not too far from what it really looks like in the game: