Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Libsm64: Mario 64 as a library for use in external game engines (github.com/libsm64)
168 points by klaussilveira 12 hours ago | hide | past | favorite | 21 comments
 help



This is one of my favorite libraries from the premise alone. Here is an example of Mario in Half-Life 2: https://www.youtube.com/watch?v=Ld3qhqkegNw

Astounding that swimming and collisions and all that stuff seems to function!

Commenter explains how it works:

  I can see not enough people know how this addon works. Allow me to explain.

  It is a mod, but it was only possible with a plugin, it can be (with a bit of  tweaking) used for other games and already has been, for example rocket league, sonic generations, blender and minecraft. the way it works is that mario 64 is  running in the background so that the mario physics and gameplay functions work, but the actual character is invisible but the hitbox is still there, so that mario actually can be hit for example. with the plugin mario can pretty easily be put into any game, though some fixes might be needed at some times, for example in sonic generations for the rails to work, mario has to be disabled and sonic's control is taken over again so that "mario" can grind on rails.

  TD;LR: Basicilly this addon use libsm64 which contains original SM64 assets and ported into GMod. So yeah, it's not a recreation and that's also explain why you need a Mario 64 ROM (in z64 file format) to get this addon working.

Eagerly awaiting my new plumber clan in VtM Bloodlines

How many Portal test chambers could be solved with Mario 64 jumping alone, and no use of any portal gun?

That is amazing and it makes me smile

This is incredible. This was the promise of the proclamations of "the metaverse" or interchangeable crypto game items/characters, but is using none of those things. Like Ready Player One come to life without the hype.

Curious how easy the setup is for gamers who are non-engineers


> Curious how easy the setup is for gamers who are non-engineers

You're still writing a mod for whatever game, it's just that this library gives you an easy way to get the mario-jumping physics right. So unfortunately, non-programmers will probably have to wait for someone to insert mario into your game of choice, although this library will make that process a bit easier.


Metaverse without Crypto/VR/Facebook is fantastic and is bound to happen.

Metaverse is just people building cool stuff in a way that builds and compounds.

Critically - hopefully - in a way that can't be owned as a central platform.


Wrap it in an API, sell Mario 64 as a service.

(@Nintendo: this is a joke, you can put down the rifle)


I imagine Nintendo is a bit more like malfunctioning ED-209 in the office scene than a person with a rifle.

Nintendo did put down their rifles after they fired multiple shots into the head and then the sued.

Any demo videos? or just need to imagine it?

found this: https://youtu.be/NXpOCfg8O64



Looks like this has been around for a while now, are there any interesting projects using it?

Edit: https://github.com/SuperSonicHub1/awesome-libsm64


My favorite one was the blender addon https://github.com/libsm64/libsm64-blender

Someone created an AR sandbox using it on the Quest 3. The player draws platforms and mario can jump around on the platforms and on your couch and stuff. That is probably the killer app of VR that everyone has waited for.

So let me get this straight, is the intent of this so that if you have some game like Call of Duty, you could use this to just add Mario running around in there jumping around like it was SM64?

It's specifically about the mechanics/physics rather than the model, but yes.

It has the vertices, the surfaces, the textures and the animations.

There's a minecraft mod too, you press m and f5, boom you're mario.


I'd love the Perfect Dark recompilation working under GL 2.1:

https://github.com/perfect-dark-pc-port/perfect_dark


That port is amazing, probably one of my most played games on my steam deck. What is GL 2.1?



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: