Screenshots
Ali Baba and 40 Thieves
阿里巴巴与四十大盗
Ali Baba and 40 Thieves is an action arcade game released by Sega in 1982. The player controls Ali Baba as he navigates maze-like stages, collecting treasure while avoiding or confronting the forty thieves. The gameplay involves moving through interconnected screen sections, picking up items, and managing threats from enemy characters that pursue the player. Controls use a joystick to move Ali Baba around the play field. The game features multiple stages with increasing difficulty as more thieves appear and movement patterns grow more complex. Players must gather all required items on each stage to progress. The cabinet used Sega's hardware of the period, and the game was part of a wave of maze-based action titles common in early 1980s arcades.
- Developer
- Sega
- Released
- 1982
- Platform
- Arcade
- Genre
- Action
- Rating
- 4.4 / 5 (4.1K)
- Last updated
Ali Baba and 40 Thieves Controls — Arcade Keyboard Keys
Default keyboard bindings for Ali Baba and 40 Thieves on our in-browser Arcade emulator. Plug in a USB or Bluetooth gamepad to auto-detect mappings, or rebind any key from the emulator settings menu.
| Keyboard | Console button | Typical use |
|---|---|---|
| ↑ | Joystick Up | Move up |
| ↓ | Joystick Down | Move down |
| ← | Joystick Left | Move left |
| → | Joystick Right | Move right |
| X | Button 1 | Primary action (jump / confirm) |
| Z | Button 2 | Secondary action (attack / cancel) |
| S | Button 3 | Tertiary action |
| A | Button 4 | Quaternary action |
| Q | Button 5 | Fifth button |
| W | Button 6 | Sixth button |
| 5 | Insert Coin | Insert coin |
| 1 | 1P Start | Start / Pause |
Coin and Start are convention "Insert Coin: 5" and "1P Start: 1". Some arcade boards expect specific button mappings — check the in-game prompts on coin-up.
Rebind any key from the EmulatorJS in-game settings menu (gear icon → Controls). A connected gamepad auto-maps to the same buttons.
Ali Baba and 40 Thieves Longplay & Gameplay Videos
Watch a full playthrough of Ali Baba and 40 Thieves on Arcade before you dive in — recommended for getting a feel for the game's pacing, story beats, and difficulty curve.
Watch longplay on YouTube
"Ali Baba and 40 Thieves" Arcade longplay 1982
External references
Frequently Asked Questions
When was Ali Baba and 40 Thieves released?
Ali Baba and 40 Thieves was released in 1982 for the Arcade.
Who developed Ali Baba and 40 Thieves?
Ali Baba and 40 Thieves was developed by Sega, available to play in your browser on RetroGameSpace.
What type of game is Ali Baba and 40 Thieves?
Ali Baba and 40 Thieves is a Action game for the Arcade, playable instantly in your browser — no downloads, no installs.
How can I play Ali Baba and 40 Thieves for free?
Open this page and click "Play Now" — Ali Baba and 40 Thieves runs free in your browser via WebAssembly emulation. No account, no payment, no installer.
Do I need to download anything to play Ali Baba and 40 Thieves in the browser?
No. Ali Baba and 40 Thieves streams from a public archive into a browser-side Arcade emulator. Nothing is installed on your computer.
Can I save my progress in Ali Baba and 40 Thieves?
Yes. Save states are stored in your browser (IndexedDB) per game, and you can also use any in-game save the original Arcade cartridge supported.
Does Ali Baba and 40 Thieves work on mobile devices?
Yes — the Arcade emulator runs on iOS Safari and Android Chrome. Touch controls overlay the game; landscape mode is recommended.
Is it legal to play Ali Baba and 40 Thieves this way?
RetroGameSpace is a transient caching reverse-proxy and does not host first-party copies of Ali Baba and 40 Thieves. Game files are fetched on demand from publicly-accessible archives. You are responsible for compliance with your local laws and the bring-your-own-ROM principle.