Based on a tabletop game called "Pop-Up Pirate" (hence the
name of the Tomy Pocket variant). The pirate is hiding in the barrel, and
players take turns pushing one of the "swords" into the barrel until the
campest pirate in the world pops out of the top.
Pop Up Pirate (US)