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

What will the next generation of Make: look like? We’re inviting you to shape the future by investing in Make:. By becoming an investor, you help decide what’s next. The future of Make: is in your hands. Learn More.

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

ADVERTISEMENT

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

Prices Increase in....

Days
Hours
Minutes
Seconds
FEEDBACK