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.

Source Distribution

pyboy-1.1.0.tar.gz (5.9 MB view hashes)

Uploaded Source

Built Distributions

pyboy-1.1.0-cp38-cp38-manylinux2010_x86_64.whl (26.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

pyboy-1.1.0-cp38-cp38-macosx_10_14_x86_64.whl (9.7 MB view hashes)

Uploaded CPython 3.8 macOS 10.14+ x86-64

pyboy-1.1.0-cp37-cp37m-win_amd64.whl (9.3 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

pyboy-1.1.0-cp37-cp37m-manylinux2010_x86_64.whl (23.9 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

pyboy-1.1.0-cp37-cp37m-macosx_10_14_x86_64.whl (9.7 MB view hashes)

Uploaded CPython 3.7m macOS 10.14+ x86-64

pyboy-1.1.0-cp36-cp36m-manylinux2010_x86_64.whl (23.9 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

pyboy-1.1.0-cp36-cp36m-macosx_10_14_x86_64.whl (9.6 MB view hashes)

Uploaded CPython 3.6m macOS 10.14+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page