Heroes of Loot by SpacePantsGames is a game for the Sega Genesis/Sega Mega Drive.
In this game, you play as a small hero trying to survive through a maze full of ghosts. You need to kill these ghosts or they will consume your power bit by bit and your character will die. You can kill the ghosts by your random attack, which is more like a bead moving in circular motions. Which will upgrade to 2-3 beads when your XP bar fills up. While you kill the ghosts, you need to collect the coins as well or they will fade away in an instant.