“Adult Mario consists of an NES rom being played on the fceux emulator, a drink pouring mechanism, as well as ambient environment feedback based on events in the game. For each coin the player receives, a small portion of coke is poured. For each enemy they kill, a small portion of rum is poured. If they die at any point, water is poured into the drink.”
You can take a look at the creation of the machine here.