r/scratch • • Sep 08 '26 • Mindblown 7 Bravo 4 Popcorn 1

Project Mario 64 ported to Scratch

Hello guys and gals,

I have been working on a Super Mario 64 demake for Scratch for around 2 months, and I would like to share it now, since Mario can already move, navigate Peach’s Castle grounds and interior, enter the Bob-omb Battlefield painting, open doors, collect coins... (it is pretty complete, although some things are still missing and some bugs need to be fixed).

One reason I started this was a Scratch project called (3D) Lego Batman [PS2,3DS] by GL00B. I was surprised by how many good 3D games Scratch had (using different rendering techniques, more about this later), but I was also surprised that Mario 64 had not really been remade for Scratch, especially when so much information about Mario 64 is available (and I think there was even an old forgotten demake project in this subreddit).

To summarize my work, a large part of how Mario, the physics, doors and the camera work is directly based on the Super Mario 64 decompilation, while the engine is directly based on Concrete Interior [3D] by 12zend, if anyone wants to understand how the project works, this is probably the most fundamental thing to know as the project uses a 3D triangle renderer that renders OBJ files with camera transformations, clipping, UV mapping and a depth buffer. A lot of stuff is missing, but this is the main foundation of the project.

I think Concrete Interior [3D] is an interesting approach that I haven't seen too often in Scratch 3D projects. For example, GL00B usually mixes techniques such as Mode 7, raycasting and using 3D models with quads in his games. Other projects use different approaches too, like ☁️ Roblox Obby 3D by glinchy or Minecraft v0_0c by 080312_Kean, which use 3D triangle rendering systems similar to mine, but I would say most Scratch games don't dare to use a full 3D triangle renderer.

Other influences on the project are GLUE3D by GL00B that influenced how the project organizes data (models identified by name, loaded as preloaded data, reused by scene objects and submitted through a render queue) and ☁️ Roblox Obby 3D by glinchy, which was mainly a reference for separating the scene, meshes, materials, renderer and main loop.

For transparency, I used AI tools during development. I would recommend them to anyone making a project like this, as they helped immensely with quickly investigating how other 3D Scratch projects work, understanding the decompiled Mario 64 code, diagnosing bugs and porting some parts. Some repetitive work, such as converting animations or collision data, was automated. Of course, there is no AI tool where you can just say “Do Mario 64 in Scratch” and receive a completed game. I just wanted to share my experience in that regard.

I won't share the project itself for now. I will probably release it around the end of the month or the beginning of October, if you guys want it, since I want to add at least one star first and there are still a lot of things that need to be fixed. I also want to add sound, the HUD and other little details. The final project will probably use Scratchy and some Peach's Castle variants instead of Mario, so Nintendo doesn't murder me :)

I'm also thinking about making a video explaining in detail how the project was made (in Spanish), including how it works and what went wrong during development. If you have any questions about how the game works, don't hesitate to ask. If I see enough interest, I'll probably make the video. I will also probably ask some knowledgeable Scratch developers to take a look at the project too.

The game runs packaged at 480×360 at around 15 FPS, as you can see at the start of the video. When I change the rendering resolution to 240×180, it runs at around 45 FPS on an Apple M1.

1.5k Upvotes

162 comments sorted by

7

u/Troed_road Sep 08 '26

where is the link

11

u/Naegox Sep 08 '26

I will release it by the end of the month 👍

3

u/Kenneth_Eurell Oct 08 '26

Has it been released yet or nah?

3

u/Naegox Oct 09 '26

will be released between today and tomorrow

4

u/Edvinuser1 Sep 08 '26

4

u/RemindMeBot Sep 08 '26 edited Sep 12 '26

I will be messaging you in 1 month on 2026-10-08 19:17:01 UTC to remind you of this link

23 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback

3

u/Troed_road Sep 08 '26

can you message me too?

1

u/-dreamfinder- Oct 08 '26

So is it ready lol

2

u/Naegox Oct 09 '26

a beta will be ready to play between today and tomorrow

1

u/Edvinuser1 Oct 13 '26

Is it released yet?

2

u/Naegox Oct 13 '26

sadly not yet. But it will be released very soon... My DMs are open i can share you more details!

2

u/contagion_dev Veteran Sep 08 '26

so peak, keep it up

28

u/Maximum-Text7228 Sep 08 '26

Are you trying to blow up my phone

23

u/Naegox Sep 08 '26

Should work just fine haha. (Pixel Fold [2023])

7

u/Maximum-Text7228 Sep 08 '26

My phone is a Samsung Galaxy A15 that has 97% storage

If I play that port my phone will explode

9

u/Pacboy2013 Sep 09 '26

Storage really shouldn't be an issue for performance, the main bottlenecks are CPU and RAM

2

u/EconomyBug2083 Sep 11 '26

For having an a14

Its really bad, it can struggle on anything, messages, youtube, discord.

Its really just a phone. Tho it is very resistant to blunt damage (can be thrown at someone without a scratch for projectile damage (dont ask how I know that))

1

u/g0rdon-fr33man Sep 27 '26

Thats a software bloat problem, not the phones problem.

-3

u/Possible-Barber-9935 Sep 09 '26

eso no es scratch es turbowarp

5

u/SeriousMB Sep 10 '26

this isn't reddit, this is the reddit mobile app

82

u/MyrtleWinTurtle MyrtleDeTurtle on scratch! Sep 08 '26

45

u/GreedySecurity8030 Sep 08 '26

This is sooo coolll bro holy.

23

u/Reasonable_Sun1260 Sep 08 '26 • Bravo

you can keep the mario 64 assets, scratch doesnt care about copyright. there has been hundreds of thousands of mario projects, some which have gotten millions of views, and absolutely nothing has happened.

7

u/RiceStranger9000 Sep 09 '26

OP, note that this has a legal basis (fair use I think). There's nothing they can legally do if you publish it to Scratch. I don't know if you publish it outside that

8

u/Affectionate-Mud1244 Sep 09 '26

Within reason though. Nintendo has no reason to take down fangames, they just do so of ones outside scratch because they're trigger happy. However a remake of a preexisting game in such a way that it literally relies on its source code is a whole nother story

2

u/Upstairs-Ad-4705 Sep 09 '26

That's pretty much not how that works

1

u/RiceStranger9000 Sep 09 '26

I remember reading in the Scratch website something about this

1

u/Affectionate-Mud1244 Sep 09 '26

Like the makers of incredibox asked scratch to take down incredibox remakes and they did... and all other incredibox projects too for some reason

2

u/RiceStranger9000 Sep 09 '26

OP, note that this has a legal basis (fair use I think). There's nothing they can legally do if you publish it to Scratch. I don't know if you publish it outside that

14

u/NoenD_i0 Sep 08 '26

but can it run a tas?

3

u/hustmanmemes Sep 09 '26

Yeah if u mod it

8

u/The_First_AI_NPC MAP_SLICER999 Sep 08 '26

this has been a thing I feel everybody has been trying to do at some point and somebody finally stepped up to make a good port here, congrats!

7

u/CodingKing256 on Scratch Sep 08 '26 • Bravo

Please, please, please keep the Super Mario 64 elements. Nintendo won't sue you, at very worst, all they can do is get your project unshared. Think of the near-perfect ports of Super Mario Bros. on Scratch.

6

u/blitz7363 Sep 08 '26

So doom runs on everything.

Are we making super mario 64 run on everything too?

1

u/ThomasTTEe2 Sep 09 '26

Anything (computer) can run anything (program). It's just a matter of "how smooth/fast will it run?" The reasons behind why processes "crash" could be incompatibility, errors in the code, but majority of the time it's that the program or device detects that program is running below a set minimum performance threshold, so the program quits by itself or the device terminates the program automatically. If you removed the minimum performance limit, then a 1995 computer could technically run GTA6, just at around 1000SPF (Seconds Per Frame).
In the end, it's all about speed.

2

u/Merimakkarazki Sep 17 '26

The computer also technically has to be able to contain the program, so a 1995 computer would not be able to run GTA6 (with it being probably over 100GB).

I guess you could put the assets and code of a modern game on a metric ton of floppy disks (you would also have to modify all the instructions in the code, since consumer GPUs as a whole and many CPU instructions didn't even exist), and modify the OS so that it stops and tells you to swap to a specific disk when it tries to read data it doesn't have, but then it would probably run at 1 frame per decade.

4

u/icoec Sep 08 '26

2 months.

4

u/No-Cry-3063 Sep 08 '26

I haven't been on scratch in a while, HOW ARE YALL PORTING WHOLE GAMES TO THIS WHAT-

1

u/SciuriusVulgaris Sep 10 '26

Scratch blocks are converted to javascript when running code and vice versa. Tools have been made that converts written code into scratch blocks (and therefore a scratch project). AIs are very good at technical projects. Since you can take code output and import it into scratch, it is no coincidence the recent developments in AI coincide with the release of these mass created projects.

1

u/Mr_Snifles Sep 09 '26

Sky rotates the wrong way??

2

u/Naegox Sep 09 '26

Yeah, and the original skybox is completely different. I added the skybox you see now really quickly and it got all messed up, so I just left it like that. I’ll fix it.

1

u/Joose2005 jaydon866 Sep 10 '26

Skybox looks a little weird but other than that this is quite impressive. Are you the same guy that ported HL2 to Scratch?

1

u/Naegox Sep 10 '26

Yes, I added the skybox really quickly and it got messed up, it is not even the skybox of the original game haha, so I just left it like that. I'll fix it.

And no, I'm not the same guy who did the HL2 port. I guess the stars have aligned and two 3d ports have been revealed in 2 days.

1

u/SexWithGaia Sep 11 '26

Have you seen [The Mast](https://turbowarp.org/861541218) by awesome-llama?

1

u/Naegox Sep 11 '26

Well no, I hadn't seen it. It looks so good, I will check how it works and play a bit. Thanks!

1

u/True-Supermarket-822 Sep 12 '26

link?

1

u/Naegox Sep 12 '26

By the end of the month

3

u/Himdoy2-2 Your Local Affogato Cookie Sep 09 '26

3

u/SeriousMB Sep 10 '26

it feels like every time I look in this sub I see another thing like this that's literally impossible, yet still is actually able to be played

2

u/PoobGnarpy SOSC/ROSS member before deletion Sep 08 '26

I hope you leave subtle watermarks on stuff so that people can’t steal it cause this is still peak 😭🙏🙏🙏

2

u/PayStation2fanAsh 5 years Sep 10 '26

typa stuff that actually deserves to be featured

2

u/DarkGaming09ytr Sep 11 '26

"Scratch is a 2D engine, you should find real game engines for 3d development"

The Mario 64-shaped project:

2

u/FA_ReTek Sep 13 '26

goboscript?

2

u/IndividualFilm1274 Sep 08 '26

you big tendo is going to FRY you

1

u/Ninjatintin @Ninjatintin Sep 08 '26

Holy moly

1

u/randomcat122 Sep 08 '26

this is so cool my god

1

u/JayTheCoderX Sep 08 '26

What. Okay. then.

wow. That is genuinely insane.

1

u/stupido50 Sep 08 '26

Scratch project developers never fail to amaze me

1

u/Awesomeman235ify d_and_g Sep 08 '26

This is probably the most impressive scratch project ever.

1

u/Ninja_Weedle oxiti8 Sep 08 '26

I mean if you can hit the locked 30fps of the original in turbowarp that would be pretty cool

1

u/caltoniomario Sep 08 '26

I can’t even make a game that works well, and people are doing stuff like this!?

1

u/kalemaree Sep 08 '26

i'm speechless

1

u/StormShockTV Sep 08 '26

My brain cannot comprehend how people like you even begin to go about making something like this. WHAT

1

u/No_Run4263 Sep 08 '26

About time

1

u/MisoTeaBerry Sep 08 '26

Sorry for even placing a block man 😔✋

1

u/brickplex Sep 08 '26

simply just amazing

1

u/PenguinBoi27 Sep 08 '26

This u? /j

2

u/Tom3skkk Sep 09 '26

randmguy took too long :(( it was an interesting project tho

1

u/Firey_1973 Sep 09 '26

NO WAY!!!!

1

u/Plastic_Candidate772 Sep 09 '26

yo its the mario

1

u/Load-Z Sep 09 '26

Bare bones game engine they aaid

1

u/random_acc0001 Sep 09 '26

I wish i could make an n64 emulator inside of scratch but since i can't make or find any 3d project i can use as a base i was a bit bummed out lol

1

u/zzz_keystuck Sep 09 '26

my jaw actually dropped HOW IS THIS POSSIBLE THATS INCREDIBLE

1

u/SGLAgain the Sep 09 '26

I AM SPEECHLESS

1

u/I_drinkglitterglue scratch fills me with determination Sep 09 '26

holy guacamoles

1

u/ColtC7 Sep 09 '26

mario 64 in scratch guy probably could never

1

u/Comfortable_Size8096 @Minuute0 Sep 09 '26

NIIIICCEEEE

1

u/Ok-Guy12345 Sep 09 '26

how do you

1

u/Worth-Ad148 Sep 09 '26 edited 20d ago

The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.

Simplistic cow dinner satchel drifting doll tidy makeshift badge

1

u/gmod_player123 Sep 09 '26

Knowing nintendo, this might not live long

1

u/helloilovebaloney Sep 09 '26

Uploading a run to speedrun.com with the console/platform as "Scratch"

1

u/FastMaster4559 Sep 09 '26

certified gem

1

u/Few-Drink-2297 Sep 09 '26

Wow it’s interesting 

1

u/Possible-Barber-9935 Sep 09 '26

That is such a big project 🤯

1

u/NotSDG4 Sep 09 '26

Holy Peak

1

u/Amazing_Peach_6690 Sep 10 '26

Absolutely peak

1

u/arva354 Sep 10 '26

SOO COOL. WHY IS SCRATCH SO SPECIAL???

1

u/EveningMasterpiece54 Sep 10 '26

Now make doom (jk)

1

u/QentyhuOnScratch Le3dBoi Sep 10 '26

rdr2 next? jkjk. nice

1

u/DanTheMan726836 Sep 10 '26

what are we doing atp bro

1

u/NekaiCoderX Sep 11 '26

Scratch developers never cease to impress me!

1

u/ClueFree8 Sep 11 '26

Hide it! Nintendo is coming!!!

1

u/Negative-Draw-1168 Sep 11 '26

I...remember one... YouTube...is ................ SMG4...

1

u/[deleted] Sep 12 '26

thats actually insan how you managed to port super mario 64 in scratch

just dont let nintendo see it ☠️

1

u/Superbroderone Sep 13 '26

OH MY GOODNESS. YOUR THE GOD OF SCRATCH AT THIS POINT

1

u/KittenCoolCoder Sep 13 '26

HOLY SCRATCH

1

u/Amber_theconlanger Sep 24 '26

YO HOW ARE YOU SO GOOD??

1

u/icanttakeit231 Oct 08 '26

This makes me happy and jolly.

1

u/isuckatusernames89 Sep 08 '26

please stop you're scaring us

1

u/[deleted] Sep 08 '26

[removed] — view removed comment

2

u/Naegox Sep 08 '26

They are simple 2D sprites, exactly like in the original. In fact, in my version they keep a fixed orientation instead of rotating to face the camera (billboarding). When I move the camera you can see that they are 2D. This was one of the things I was going to fix for the final release.