Drag and drop Super Mario

Fun & Games Technology

NES emulator hacker Xkeeper has been working on a Lua script that allows you to manipulate Super Mario Bros. game objects right in the middle of game play:

FCEUX is a NES emulator. It has Lua scripting support, and in the latest versions, a feature that allows you to grab input from the mouse and keyboard, outside of the “game input”.

The script allows you to see the byte values of tiles by mousing over them and you can grab enemies (including things like lifts or projectiles) and move them around with your mouse. This particular Lua script hasn’t been released on the FCEUX site yet, but it should be soon and there are several other Lua demos available in the luapack archive.

The Lua add-on to FCEUX allows you to cobble in your own code that will execute before each frame draw in the emulator, giving you an opportunity to manipulate things while the game is running. I’ve never coded in Lua, but the demo source code is easy to grok, and you may get some fun ideas for another game hack.

SMB1 + FCEUX + input.get = Fun with mouse control [via Offworld]
Luapack (ZIP file) with sample Super Mario Bros. scripts

6 thoughts on “Drag and drop Super Mario

  1. Anon says:

    It’s like mario became a data manipulating entity like Neo or something

  2. eldino says:

    The guy who coded this is a GENIOUS! Congrats! This is the most interesting news i read this month (and i read 1000+ feeds daily)! Downloading Fcultra+script now

  3. Xkeeper says:

    That ZIP file you linked to doesn’t actually have my script, it’s just a bunch of sample scripts the devs gathered. Sorry!

    Mine isn’t released yet, but I’m working on that one.

Comments are closed.

Discuss this article with the rest of the community on our Discord server!


Maker Faire Bay Area 2023 - Mare Island, CA

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 15th iteration!

Buy Tickets today! SAVE 15% and lock-in your preferred date(s).