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











It’s like mario became a data manipulating entity like Neo or something
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
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.
// What's Trending
Raspberry Pi Design Contest
Seventeen Sneaky Secret Hides
Teardrop Camper Trailer
10 Things to Connect to Your Raspberry Pi
Lost PLA Casting from 3D Prints
DIY 3D Laser Scanner Using Arduino
I Have a (Puzzling) Dream
New Project: DIY 3D Laser Scanner Using Arduino
// What's Shared
A better way to slice a pumpkin
DIY Nerf Darts
100 Dollar Store Organization Ideas for Craft Rooms and Beyond
In the Maker Shed: Minty Boost USB Charger
Mad’s Mouse House
Lace Princess Crowns
I Have a (Puzzling) Dream
Play the Rings of a Tree Trunk Like a Record
// Most Commented
DIY Hacks & How To’s: Get Emergency Power from a Phone Line
Resin Casting: Going from CAD to Engineering-Grade Plastic Parts
Ten Tips for Screws and Screwdrivers
Ten Tips for Better Measurement
Is it a Hackerspace, Makerspace, TechShop, or FabLab?
Makers on TV: Big Brain Theory
Arduino Announces New Wireless Linux Board
Grow: A Portable CNC Router System