MacGameStore
macgamestore.comBuy, download, and play thousands of Mac games with no subscription fees.
Turn any part of your screen into a playable Super Mario level.
Screentendo is a Mac desktop app that converts a selected region of your screen into a playable level of Super Mario Bros. You place a semi-transparent Screentendo window over part of another application, click inside it, and the app generates a level based on the content beneath it. It was built as a proof-of-concept to explore Cocoa and Sprite Kit.
The app works in two main steps. First, it captures a screenshot of the window beneath Screentendo using Quartz Window Services, crops it to the target area, and applies a series of filters: motion blur, a luminance threshold that reduces the image to two colours, and pixellation. The image is then split into sub-blocks, and each block is marked as solid or empty based on whether its average colour is mostly black or white, producing a 2-dimensional array. Second, a GameScene class reads that array and generates blocks wherever the value is set, then adds background, cloud, and player sprites. Gameplay uses the Sprite Kit physics engine for player movement, collisions, and debris animation. A menu option lets you choose small, medium, or large block sizes, where smaller blocks give more detail but take longer to process.
The author notes several limitations: image processing is slow, block detection needs reasonably distinct contrast in the underlying image, and the physics has issues such as ghost vertices on vertical walls. The source code is available on GitHub.
Lead the bees, fill the hive, and make the sweetest honey in this award-winning…
A friendly, powerful, open source Game Boy emulator for macOS
Play a widescreen remaster of Sonic 3 & Knuckles