Arduino Engine Runs Many Video games


A couple of years in the past, [Smashcat] ported a ZX Spectrum recreation referred to as Manic Miner to the Arduino Uno. The Arduino has much less reminiscence than the unique Spectrum did, so doing all this on an 8-bit microcontroller was no simple elevate. Since then, elements of this unique port have been tailored to supply a recreation engine, allowing [Smashcat] to port several other games to the Arduino Uno as well.

The engine is ready to host a 2D map with the power to scroll, at a decision of 256×256, in addition to as much as 9 sprites on the identical time. The graphics are locked to 50 FPS, however solely with an actual Arduino Uno that has a crystal oscillator. Some reproduction boards wouldn’t have a timekeeping chip correct sufficient to duplicate the video sign, which is completed with out a framebuffer. That sign, in addition to two PWM audio channels, are nonetheless generated immediately as nicely, with just a few resistors wanted to hook every thing as much as a monitor and a controller, together with the choice of utilizing an NES controller.

With all of that working on the Arduino and it hooked as much as the daughterboard that gives the controller interface in addition to the resistors for the video sign to operate and a driver for a speaker, the system now runs the unique Manic Miner in addition to three different video games: Scramble, Space Invaders, and Pac Man.

The engine and the rest of the code are available on a GitHub page as well, and there’s even a WebAssembly model accessible to run varied items of the software program with out the particular {hardware}. The unique ZX Spectrum was an attention-grabbing machine too that also evokes builds like this, despite it being well over 40 years old now.



Source link