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]
FCEUX
Luapack (ZIP file) with sample Super Mario Bros. scripts

3 Responses to Drag and drop Super Mario

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

  2. eldino on said:

    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 on said:

    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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

%d bloggers like this: