Skip to main content

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
Image used with permission by copyright holder

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.”

Recommended Videos

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.”

Super Mario Bros. 3 - Wrong Warp

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.”

Channel Trailer

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!

Luke Dormehl
Former Digital Trends Contributor
I'm a UK-based tech writer covering Cool Tech at Digital Trends. I've also written for Fast Company, Wired, the Guardian…
Nintendo World Championships turned me into a Super Mario Bros. god
Box art for super mario bros shows fire Mario running.

The newly released Nintendo World Championships: NES Edition is all about mastery. The retro microgame collection takes 13 NES classics and breaks them down into bite-sized speedrunning challenges that beg players to replay them over and over to lower their best time. That process all leads to the package's big event, the titular Nintendo World Championships. Every week, players all submit their best times for five specific challenges and fight for a top ranking come Monday morning.

I had no idea how I'd fare against hundreds of thousands of people in the game's first week. While I'd been sharpening my skills during the review period for the game, I still didn't have much confidence that I could make a splash in games like Super Mario Bros. that have been mapped out to perfection already.

Read more
Super Mario Party Jamboree is the series’ biggest game yet
super mario party jamboree announcement

Super Mario Party Jamboree – Announcement Trailer – Nintendo Switch

There's nothing quite like a Mario Party game, and Nintendo has announced another entry that's coming out this fall. Super Mario Party Jamboree is the series' biggest game yet, and it's due out on October 17 for the Nintendo Switch.

Read more
Super Mario Bros. Wonder almost featured a realistic Mario and surfing
A Wonder Effect appears in Super Mario Bros. Wonder.

Last year, Nintendo brought Mario back to his 2D roots with a surprise new game, Super Mario Bros. Wonder. The critically acclaimed platformer was an instant crowd-pleaser thanks in no small part to its namesake feature, Wonder Effects. These power-ups completely transformed Mario’s world, letting its developers experiment with wacky ideas from wiggling pipes to singing Piranha Plants.

The notoriously secretive Nintendo has now peeled back the curtain on how those creative swings came to be. The company hosted a panel about the game’s development at this year’s Game Developers Conference. In it, Producer Takashi Tezuka and Director Shiro Mouri went in depth about how it built Wonder Effects. The panel included some wild ideas that ended up on the cutting room floor – enough to fill a sequel.

Read more