Skip to main content

No project description provided

Project description

If you have any questions, or just want to chat, join us on Discord.

It is highly recommended to read the report to get a light introduction to Game Boy emulation. But do be aware, that the Python implementation has changed a lot. The report is relevant, eventhough you want to contribute to another emulator, or create your own.

If you've read the report and want more explicit details, have a look at the Pan Docs.

If you are looking to make a bot or AI, you can find all the external components in the PyBoy Documentation. There is also a short example on our Wiki page Scripts, AI and Bots as well as in the examples directory. If more features are needed, or if you find a bug, don't hesitate to make an issue here on GitHub, or write on our Discord channel.


Installation

The instructions are simple, if you already have a functioning Python environment on your machine.

  1. Install SDL2 through your package manager:

    • Ubuntu: sudo apt install libsdl2-dev
    • Fedora: sudo dnf install SDL2-devel
    • macOS: brew install sdl2
  2. Install PyBoy using pip install pyboy (add --user if your system asks)

Now you're ready! Either use PyBoy directly from the terminal $ pyboy file.rom or use it in your Python scripts:

from pyboy import PyBoy
pyboy = PyBoy('ROMs/gamerom.gb')
while not pyboy.tick():
    pass

If you need more details, or if you need to compile from source, check out the detailed installation instructions. We support: macOS, Raspberry Pi (Raspbian), Linux (Ubuntu), and Windows 10.

At the Wiki page, you will also find out how to interface with PyBoy from your own project: Wiki.

Contributors

Thanks to all the people, who have contributed to the project!

Original Developers

GitHub Collaborators

Student Projects

  • Rewind Time: Jacob Olsen - JacobO1
  • Link Cable: Jonas Flach-Jensen - thejomas

Contribute

Any contribution is appreciated. The currently known errors are registered in the Issues tab. Feel free to take a swing at any one of them.

For the more major features, there are the following that you can give a try. They are also described in more detail in the project list:

  • Color
  • Link Cable
  • (Experimental) AI - use the botsupport or game wrappers to train a neural network
  • (Experimental) Game Wrappers - make wrappers for popular games

If you want to implement something which is not on the list, feel free to do so anyway. If you want to merge it into our repo, then just send a pull request and we will have a look at it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyboy, version 1.3.0
Filename, size File type Python version Upload date Hashes
Filename, size pyboy-1.3.0-cp36-cp36m-macosx_10_14_x86_64.whl (9.6 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size pyboy-1.3.0-cp36-cp36m-manylinux1_x86_64.whl (23.7 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size pyboy-1.3.0-cp36-cp36m-manylinux2010_x86_64.whl (23.7 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size pyboy-1.3.0-cp36-cp36m-win32.whl (8.7 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size pyboy-1.3.0-cp36-cp36m-win_amd64.whl (9.2 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size pyboy-1.3.0-cp37-cp37m-macosx_10_14_x86_64.whl (9.6 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pyboy-1.3.0-cp37-cp37m-manylinux1_x86_64.whl (23.6 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pyboy-1.3.0-cp37-cp37m-manylinux2010_x86_64.whl (23.6 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pyboy-1.3.0-cp37-cp37m-win32.whl (8.7 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pyboy-1.3.0-cp37-cp37m-win_amd64.whl (9.3 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pyboy-1.3.0-cp38-cp38-macosx_10_14_x86_64.whl (9.6 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size pyboy-1.3.0-cp38-cp38-manylinux1_x86_64.whl (26.1 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size pyboy-1.3.0-cp38-cp38-manylinux2010_x86_64.whl (26.1 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size pyboy-1.3.0.tar.gz (5.9 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page