Based on this well known tutorial from 2014, I created a Swift version of Superkoalio. I added support for macOS and tvOS so it has basically become a nice example Mario game.
I won’t explain how it works, read the original tutorial by Jake Gundersen to see how the map is loaded, player is added and how collision detection works.
Keyboard and mouse control for macOS was added by me, as is support for the Apple TV Remote.
Download the PEMSuperKoalio project on GitHub
Get the PEMSuperKoalio example project for free here.