Log In  
Page:
1
2


Cart #smbp8-13 | 2025-04-04 | Code ▽ | Embed ▽ | No License
151

  • Version 1.04

This is a complete recreation of the original Super Mario Bros, crammed into under 24KB of a Pico-8 cartridge (spritesheet memory is unused). The code is all new and not ported from the original game, so things work differently, but I tried to make it feel similar.

It includes all original levels, the minus world, and the second quest. Due to the token limit and limited likelihood of use, the alternating 2-player mode has been replaced with just playing as Mario or Luigi. Hope you enjoy playing!


Controls:

L/R--------------Move/Select world on title screen
X/V--------------Run/Shoot Fireball
Z/C--------------Jump/Start


Changelog:

V1.01

  • Added Attract Mode
  • Narrow cloud platforms now draw correctly
  • Pressing run button while on vine no longer causes error

V1.02

  • Fixed flagpole cutscene glitch

V1.03

  • Running momentum is now maintained while jumping and shooting fireballs
  • Cart now fits within compressed code size limit

V1.04

  • Fixed errors caused by fragile lifts and shooting a fireball just before touching a flagpole

Special thanks to:

  • Jwinslow23 for composing the music and many of the sound effects
  • Zep for his PX9 compression system
  • Thisismypassword for the Shrinko-8 minifier
  • Nick N. Bruns of NESmaps.com for documenting level maps
151


Post-Release Comments

I was stuck on 8-2 for so long that there was already a update to the cart. 😭
Feels nice, gonna look forward for updates.


Thanks, though I'm not planning to put out a lot of updates, basically just parameter tweaks or bug fixes because I'm at the token limit despite lots of refactoring. I just realized the solution to a platform issue I hadn't been able to solve was a typo, then after fixing that I realized I'd left the default starting stage as 4-3. o_O


2

This is an absolutely good recreation of the game.
There are some differences between this and the original source (mainly the cheep-cheeps in 2-3 being harder and physics being just slightly off come to mind), but I think this did a great enough job being a faithful demake. It makes me wonder what other NES games will eventually be demaked in the future.

Also, I found a slight bug in the Coin-Heaven section in 6-2, where the cloud platform looks a little broken so that's kinda funny.

But yeah, really good job. Played through all 8 worlds without a single gameover. Had 9 lives left after beating the game :)


@SwordF,

Thanks, and I appreciate the feedback, especially from a full playthrough.

I have noticed that some of the enemies are a bit more difficult than the original, which is strange because I've tweaked some behaviors to be a bit less aggressive than basic random spawning or simple chase logic produced. For instance, I made it so Cheep-Cheeps won't spawn for a certain distance around you so you're less likely to have one fly up straight into you. Guess the original game had more nuanced design than is readily apparent. Anyway, I'll see if tweaking some values will help, and the cloud platform will be an easy fix, just forgot to assign a new collection of tiles for the narrow version.


got this when I pressed X while I was on the vine in 2-1, also had the fire flower equipped.


Thanks for catching that, didn't think of that edge case. It'll be fixed in the next update.


2

Absolutely amazing work! I'm gonna download this just in case Nintendo sues you. Hopefully not...


This is very accurate, I like it a lot

I noticed a couple small things that could be tweaked to make it a lot more accurate:

  • In the original game, you cannot change your facing direction while in the air and you actually accelarate a little bit faster while moving in the opposite direction you're facing.
  • The maximum amount of fireballs is supposed to be 2 instead of 3, but maybe that's for the better anyways.
  • The Piranha Plant hitbox is really small in the original game, which makes it easy to jump over. Here are the hitboxes shown visually.
  • You mentioned earlier that the enemies are a lot harder and you'd be correct, because how the original game does it is really lenient. The only requirement for bouncing on an enemy in the original game is that you are moving downwards in the air. You can see this very clearly for yourself by going to 1-3 and jumping into the red koopa at the start. You'll bounce on the side of the koopa.

There is also no soft edges in the collision detection but I suppose implementing that could take up too much tokens


@Vexxter,

The token limit is definitely a challenge. I've refactored many times and I'm right at the limit, so unless some easy-to implement token savings come to mind, big things aren't likely to change, but tweaks or simplifications are doable.

I'll look into simplifying collision if applicable, as well as tweaking some hitboxes. Not sure how to implement specific quirks like soft-edge collision, though, because all entities run through one system, special cases eat up tokens fast, and I haven't figured out a cheap solution for them. There's a max of 3 fireballs because I guess the standard de-spawning distance is greater than that for fireballs in the original game and with 2, you can have to wait a while to shoot again. I'd have to free up more tokens to make that a special case.


Awesome remake of an absolute classic—I’ve recently made it to World 8-3.

I sincerely appreciate that we have the option to play from the beginning of each world the first go-around, though I understand that was due to Pico-8’s technical limitations.

Very accurate indeed!


@Retro_Pup_Pico_8

Thank you, glad you're enjoying it! I know I tend to have a shorter attention span for Pico games in a browser, and some sort of save or continue feature helps with that.


Great game!


Thanks, glad you're enjoying it.🙂


This is incredible!


Update: Managed to reach the end of world 8-4 when (I think) either a Hammer Bro’s hammer or the Podoboo stole my fire flower. I tried to run past Bowser while my I-frames were still active, but I ended up running right into Bowser (literally).

And if anyone’s curious, I did use Warp Zones (1-1, 1-2, 4-1, 4-2, 8-1, 8-2, 8-3, 8-4).


Glad to hear you made it that far. You can actually continue at the start of world 8 (or any other world for that matter) by pressing left and right to select the world on the title screen.


Request: Can you recreate the Sonic.EXE creepypasta on pico-8? The OG one. Not the Remake made by Joedoughboi.


I didn't know what that was, so I looked it up. I'm not planning to do that, as it would be a huge project for something I'm not really interested in. I have thought about trying to recreate a Sonic map or two with my map system, though, and update it so someone else could make a Sonic game with it if they wanted to.


Does the 3-1 infinite lives trick work?


@egg1863,

I haven't tried it (I've never done it in the original, either), but things don't work exactly like the original so it might not.


@JadeLombax even if you can jump on it infinitely I don't think it would work because I found a spot in 8-1 where I could infinitely jump on a Buzzy Beetle and I didn't get any lives


YOU CAN DO THE MINUS WORLD GLITCH.
I REPEAT, YOU CAN DO THE MINUS WORLD GLITCH.

OH MY GOODNESS THIS HAS SO MUCH ATTENTION TO DETAIL!!!!
(I could ACTUALLY see this as an official port, too!)


Thank you, glad you're enjoying it.🙂 Not everything is the same, but I tried to include everything that would fit in the token limit. I didn't realize how many little systems were present in the original before making this, it's pretty amazing they figured this all out on very basic hardware with primitive tools 40 years ago.


its really amazing how you managed to fit the whole game inside ONE pico-8 cart, ONE!


Thanks, though it's technically only using 3/4 of a cart.😉 I was trying to fit my Mega Man remake into one cart, but the music won't fit, and who wants to play Rock Man without the rockin' tunes?


This shows what a masterpiece Mario Bross is. Amazing level design. Great work on the remake!!


Missed this one when it originally dropped. Gave it a quick go and am impressed in the choices made and kind of makes one wish Nintendo had made the same decisions with SMB Deluxe in terms of display.


2

@Coko,
Thanks. I gained a greater appreciation for the design myself while making this.

@hseiken,
Thank you. I agree that SMB Deluxe was a bit misguided, maybe they wanted to show that the GBC could handle the original graphics? If you haven't seen it, someone actually made a version in GB Studio with 8x8 tiles like this a while ago: https://mico27.itch.io/super-mario-bros-mini


1

this feels better than smbdeluxe


so cool! here to report i got a crash crouching and jumping to get under the low blocks in 1-2. i had fire, not sure if that matters


amazing job getting this all in a cart!


Thank you 🙂,
Haven't had a lot of coding time lately, but I'll see if I can replicate and fix the bug you mentioned.


1

Awesome game. Look what I did! Very accurate recreation of the NES classic.
(I wasn’t spamming, Lexaloffle BBS.)


1

i like this, this is good.


1

Holy Guacamole! You ported the full game!

What more there is to say, thank you and congratulations! You're amazing!


2

@Retro_Pup_Pico_8, Thank you, glad to see you enjoyed it enough to get to the end!

@poetplays645, Thanks, I'm glad you think so.

@godlance, Thank you! It took a lot of work, but helped me learn a lot and develop some useful tools. Planning to focus more on small to midsize projects going forward, and I'm finishing up my Mega Man project a bit more gradually.


1

Found this beautiful game again. Meant to play this for Mar10 yesterday, but had a long day and didn’t have too much energy left over. I just cleared both quests back-to-back, though—first one I cleared having played all the courses, the second quest taking the 1-2 and 4-2 Warp Zones!

Here’s a screenshot of me clearing the Second Quest, and honestly I’m impressed with myself—didn’t know I could do that! XD

Don’t know if you were told this, but THANK YOU for such a beautiful port of a true classic!


1

Wirklich der Wahnsinn!
Mein größter Respekt!

Falls du mal nach neuen Projekten suchst aus meiner Kindheit ist mir Prehistorik und Titus the fox eingefallen. Keine Ahnung ob es möglich ist das ähnlich auf pico nachzustellen.


@Wib,
Thanks, I'm glad you're enjoying the game! I'm not very familiar with the games you mentioned, but I have been working on a remake of the original Mega Man for my next big project, so hopefully you'll enjoy that when I finally get it done.


Yeah! I've already played your demo. Great! I love these kinds of games.thx


I'm signed in and can you give me the link to your little thing/cartridge pls


can you add the player physics that the original had? (e.g: backwards jumping)


@L80Larp_OFFICIAL

I'm not planning to do that because tokens are maxed out and adding any new features would require a lot of work refactoring things, and I think the physics currently work pretty well. Also, I was never the biggest fan of some of the odd jumping quirks. If I had the tokens available, implementing the soft-edge block collision would be a bigger priority.


Amazing demake! Honestly it's so crazy that you got everything to fit in a single cart and still not use the spritesheet! How do you store the sprites? Do you compress them? Because that might be a token saving place, simply not compressing them... unless you need like 500 sprites in which case compression does the trick.

I'm thinking of tinkering with it sometime. It sounds like a great game to mod :)

EDIT: LOL


Would you ever publish the non compressed and minified code for us?


@El_Nicovw321,

Thanks. I mean I could make a version that uses the spritesheet directly, but since I'm also using PX9 to compress other data, leaving the sprites uncompressed wouldn't actually save tokens.

@QuickFlash,
I've been hesitant about that because the compression scheme is so elaborate, and the code is somewhat unusual in form, and I don't really want to have to offer support, explanations, and troubleshooting for everything. Here are a few examples:

  • When the code's unminified, it doesn't fit within the compressed limit, so you can't save the cart as a png, and even when minified it's RIGHT at the limit, it took a lot of tweaking to make it fit, and changing or adding things would easily put it over again.
  • All sprite graphics use an elaborate recoloring system controlled by per-level data strings, so you can't just draw whatever you want, and enemies are drawn using chains of sprite ID numbers, it works quite differently from just the vanilla sprite() function.
  • Map data is created in another editor cart, and revisions require pasting strings and Puny Font Mode MUST be engaged before posting or everything will break.
  • The cart is right at the token limit after a lot of refactoring, so adding anything would be quite difficult.
  • A lot of my game systems use unusual methods to save tokens, and I don't usually write lots of comments, so things aren't necessarily the easiest for someone unfamiliar to understand.

I'm not against sharing code or systems I've made, I've made my map compression system freely available and I've been considering releasing an general platformer engine at some point, but trying to make this game mod-able seems like it could really be opening up a can of worms.


@JadeLombax
Thanks for responding. My goal here isn't to modify this game, I'm actually trying to port this game to an MCU project (this works very well for that goal as the sprites, etc are compressed really nicely) however, the source code is so hard to read as to make it very, very difficult to try and port. I tried for a while with no luck and thought it would be easier to just ask for a source of code that would be easier to read/port. I have had more luck porting over other pico8 games though, this one was just too much of a challenge for me.

A lot of my game systems use unusual methods to save tokens, and I don't usually write lots of comments, so things aren't necessarily the easiest for someone unfamiliar to understand. This isn't a huge deal, as I am just trying to do a 1 to 1 port.

All sprite graphics use an elaborate recoloring system controlled by per-level data strings, so you can't just draw whatever you want, and enemies are drawn using chains of sprite ID numbers, it works quite differently from just the vanilla sprite() function. Again, not a huge deal, its just nearly impossible to recreate this with how the source code currently is.


I'm not totally against sharing some assets, I just don't want to have to offer tech support for mods, or have a bunch more slightly modified versions of SMB cluttering up the BBS. Also, what's an MCU project?


@JadeLombax
I totally understand, and personally will not/don't want to bother you with technical support. I also don't plan on publishing anything to the BBS. In fact what I plan on doing wrong make it easier for anyone else to do that either.

By MCU (micro controller unit) project I mean I've been working on an opensource handheld RC controller. It uses an RP2350 to run the code. That's the chip in a pi pico2, a little dev board you can purchase for about 5$. I've attached a screen to it and buttons. I realized that it can run games, so I've started porting pico8 games, by porting both the lua and pico8 logic to the rust programming language so that I can run this on that chip. Your port of Mario is perfect for this. It has a low ram and storage footprint and works wonderfully, you did a great job. I've had success porting games such as Celeste classic (it does already have a C language port) and Celeste 2 along with some others, but largely your work to minify the size of your lua code has made pico Mario very difficult to port as I have to figure out how to reverse engineer this.


Page:

[Please log in to post a comment]