This site may earn affiliate commissions from the links on this page. Terms of use.

Arguably the most-ported game in the universe, id Software'southward Doom was written in C in 1993 back at a time when this wasn't always the example; just a small-scale portion of the lawmaking was assembly to speed upwards the most necessary graphics routines. John Carmack and John Romero wrote the game in C specifically to enable this kind of wanton platform transfer. Since so, we've seen just about everything in the tech globe run a copy of Doom, but this latest port has to be the virtually ridiculous: the Apple Sentry.

Yep, imagine firing your BFG9000 and rocket launcher on a 1.5-inch (or one.seven-inch, if yous splurged for the 42mm version) capacitive bear on screen. Think about that for a minute: That screen has toinclude the controls for the game, since there isn't a separate keyboard you can use to strafe while shooting.

The political party responsible for this glorious nonsense is the team at Facebook's Tel-Aviv role. In a Facebook postal service, the group said that since Apple tree recently released beta versions for watchOS 2 that allow y'all run native apps on the device, they "thought it would exist fun to port Doom over to it," especially since John Carmack is currently a colleague of theirs. They started with nDoom, a simpler version of the game, fired up Xcode -> File -> New Project, fixed a few things, and got a version that compiled (but that didn't run). They spent the next few hours troubleshooting it and tuning its functioning, and to overcome the lack of UI real estate, they overlaid a 3×3 grid of invisible buttons to account for the lack of hardware controls.

There are plenty of details in the post, such as how they handled rendering frames:

"We institute Doom'southward buffer that holds the actual pixel information for each frame. Every time there's a new frame to display, we use CoreGraphics to plow the buffer into a UIImage. This initially gave us grayscale images, but after figuring out Doom's color palettes and applying them nosotros've got color! Nosotros now gear up this image as the background image for the meridian about container."

Drawing the images to the screen seems to take been the biggest challenge:

"Past far the most intensive task was drawing images to the screen. Trying to draw them too fast resulted in an abrasive unresponsiveness. Tweaking UIImage'south properties and only updating the image if anything has changed immune us to squeeze some more than juice."

Given that the finish result is sort-of-kind-of animating properly, and seems sort-of-kind-of-playable, we'll tip our hats to the grouping. We also salute the video's soundtrack: E1M1's "At Doom's Gate," played every bit it should be through a Roland SCC-i Sound Canvas carte and recorded to audio, complete with a heavy dose of early 90's reverb. Given that the Apple tree Watch may not exist selling equally well as Apple had hoped, dare we suggest more projects like this become the light-green light?