This guy’s Super Mario breakdowns are the best way to learn the basics of computer science

In 1982, a 20-something programmer named Shigeru Miyamoto designed his very first game. Called Donkey Kong, its most significant contribution to gaming history was the introduction of central character of Jumpman. Later renamed Mario, Jumpman became the star of a series of astonishingly successful video games.

With titles like Super Mario World and Super Mario Bros. 3 among them, no-one disputes that these games are classics of their kind; able to transform even the dullest of rainy days into magical experiences.

But could they teach you computer science?

mariocode

Leap forward to the present day, and 22-year-old Alex Losego is convinced they can. Losego has been hard at work on a series of YouTube videos in which he breaks down the aforementioned Super Mario games under the title “Retro Game Mechanics Explained.”

In doing so, he’s shedding light on the obscure minutiae of titles many gamers know like the back of their hands, but which have rarely (if ever) been the subject of computer coding classes.

It’s oddly fascinating stuff, even if you’re a non-programmer or not planning on a career in games development — and will give you a new appreciation for “null sprite glitches” and the importance of random number generation, Super Nintendo style.

“I like sharing this information with other people,” Losego told Digital Trends. “That’s why I started making YouTube videos. People are fascinated by seeing what’s going on behind these games. If you’re playing Super Mario, and you see a glitch, you wonder how it happened. That’s what I want to help people understand.”

In his early twenties, Losego shouldn’t — strictly speaking — have grown up with the 16-bit Super Nintendo. Sony shipped its first-gen PlayStation the year he was born, and by the time he was in kindergarten, the Nintendo 64 and ill-fated Sega Dreamcast had joined the gaming fray. However, as he told us, “I had a Super Nintendo at home. It was during the later stages of its life, but our family wasn’t the quickest at getting the new machines.”

Like a lot of kids, Losego wanted to develop his own games, or at least to create new levels for existing favorites. Unlike a lot of kids, he decided to delve into 65c816 assembly code, the programming language of the Super Nintendo, to do so.

Now in college, Losego no longer wants to work in gaming, but enjoys taking these games apart to explain how they work on a code-based level.

“Nintendo doesn’t release its source code for games, but some titles have previously been disassembled, or reverse-engineered, by fans,” he continued. “With others, I’ve had to disassemble them myself. Using an emulator, you can look at the memory in these games in real-time. That along with the disassembly lets me together what is going on. Sometimes it’s really difficult, though.”

He said that learning a decades-year-old assembly language has helped his own programming skills, much as learning a dead language like Latin helps you understand the root of many modern languages. With his YouTube videos taking off, he’s now using the games to give out computer science lessons online. (If you want to support him, consider contributing to his Patreon account.)

“I have a lot of ideas for expanding this series,” he said. “I want to focus on the programming side of things, but use the video games as an example. I hope that this will help people who want to get into computer science, but aren’t super confident about it. When they see that I’m using video games [to explore the subject], I think some people may be swayed because they think it’s cool.”

Hey, if you can learn some of the intricacies of programming while playing old Super Mario games, we’re all for it!

Gaming

New ‘Battlefield V’ patch gives Nvidia’s ray tracing support a chance to shine

‘Battlefield V’ is the first game to use Nvidia’s ray tracing support, now available with the RTX 2080 and 2080 Ti graphics cards. The feature can, in an ideal scenario, make the game look better, but the performance hit may not be…
Gaming

This list of PlayStation 4 exclusives puts its competitors to shame

The PlayStation 4's game library and incredible selection of exclusive games could make anyone with an Xbox One or Nintendo Switch think twice. Here's our list of the latest and greatest PS4 exclusives.
Computing

Changing file associations in Windows 10 is quick and easy with these steps

Learning how to change file associations can make editing certain file types much quicker than manually selecting your preferred application every time you open them. Just follow these short steps and you'll be on your way in no time.
Computing

Intel's dedicated GPU is not far off -- here's what we know

Did you hear? Intel is working on a dedicated graphics card. It's called Arctic Sound and though we don't know a lot about it, we know that Intel has some ex-AMD Radeon graphics engineers developing it.
Computing

Edit, sign, append, and save with six of the best PDF editors

There are plenty of PDF editors to be had online, and though the selection is robust, finding a solid solution with the tools you need can be tough. Here, we've rounded up best PDF editors, so you can edit no matter your budget or OS.
Computing

How to easily record your laptop screen with apps you already have

Learning how to record your computer screen shouldn't be a challenge. Lucky for you, our comprehensive guide lays out how to do so using a host of methods, including both free and premium utilities, in both MacOS and Windows 10.
Product Review

It's not the sharpest tool, but the Surface Go does it all for $400

Microsoft has launched the $400 Surface Go to take on both the iPad and Chromebooks, all without compromising its core focus on productivity. Does it work as both a tablet and a PC?
Computing

From beautiful to downright weird, check out these great dual monitor wallpapers

Multitasking with two monitors doesn't necessarily mean you need to split your screens with two separate wallpapers. From beautiful to downright weird, here are our top sites for finding the best dual monitor wallpapers for you.
Computing

Capture screenshots with print screen and a few alternative methods

Capturing a screenshot of your desktop is easier than you might think, and it's the kind of thing you'll probably need to know. Here's how to perform the important function in just a few, easy steps.
Computing

These cheap laptops will make you wonder why anyone spends more

Looking for a budget notebook for school, work, or play? The best budget laptops, including our top pick -- the Asus ZenBook UX331UA -- will get the job done without digging too deeply into your pockets.
Mobile

Vanquish lag for good with the best routers for gaming

Finding the best routers for gaming is no easy task. With so many out there, how do you know which to pick? We've looked at the many options available and put together a list of our lag-free favorites.
Computing

Stop your PC's vow of silence with these tips on how to fix audio problems

Sound problems got you down? Don't worry, with a few tweaks and tricks we'll get your sound card functioning as it should, and you listening to your favorite tunes and in-game audio in no time.
Deals

These Raspberry Pi 3 bundles will cover everyone, from coders to gamers

The Raspberry Pi 3 is a low-budget computing platform capable of doing just about anything. We rounded up a handful of the best Raspberry Pi 3 bundles to get you started on a variety of DIY projects.
Emerging Tech

Awesome Tech You Can’t Buy Yet: Folding canoes and ultra-fast water filters

Check out our roundup of the best new crowdfunding projects and product announcements that hit the web this week. You may not be able to buy this stuff yet, but it sure is fun to gawk!