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.
-
Install SDL2 through your package manager:
- Ubuntu:
sudo apt install libsdl2-dev
- Fedora:
sudo dnf install SDL2-devel
- macOS:
brew install sdl2
- Ubuntu:
-
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
- Asger Anders Lund Hansen - AsgerLundHansen
- Mads Ynddal - baekalfen
- Troels Ynddal - troelsy
GitHub Collaborators
- Kristian Sims - krs013
Student Projects
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pyboy-1.2.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0255a3b1f483323d1eb6c15be92afd21431610885274ae2d3feede2aca8df575 |
|
MD5 | 6953577dc283e175a79010a69f090e90 |
|
BLAKE2b-256 | 1b49e664f9fd1488ae6d963184563d5e96d7898fca060f37dd6789fbe9a16ebb |
Hashes for pyboy-1.2.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3414d9966a590269c6506fb4777086439e049c74b892b7b687383ba070b1bec |
|
MD5 | 5fa2681e0a433d88d4f613e413b9c181 |
|
BLAKE2b-256 | 6f581da73fb4675f9c12be139e53610650a9d1a4f723db53311821ad44058b5b |
Hashes for pyboy-1.2.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cb617162c4a0517af39fc4a2bcc00b5e9d5b9d46803cd7a4b9c038669374084 |
|
MD5 | cb2d544389ecfed7b4c7cd3da4babc59 |
|
BLAKE2b-256 | 710b7d490732b3a49d195d6f31db84ae7c598954664764b0b4bdb1d6bf9abcec |
Hashes for pyboy-1.2.0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b6de2b1b6abfc35f6aa8e12d62f8c6b8498d0ee8313185fe543684c7818a549 |
|
MD5 | 3da55a774898dab1a16c8fed24def5c3 |
|
BLAKE2b-256 | 5199347c5b20449d6fd90d7678f3fcaf6ac933bf2ff99c8f1b28f3d8c290556f |
Hashes for pyboy-1.2.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b34c6af1ca771d80716bdd003281012f41ae0a1b673eea9a26643faa5946007 |
|
MD5 | c8c570cacea4b08bd415506656aa8fe2 |
|
BLAKE2b-256 | 0989f7a5fc8b8f6829c2a341aaafb26a32795e03d4b4a3e41e84b450fac654fe |
Hashes for pyboy-1.2.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2ca0409db59406fd1489e67e45a9875bd1a83eab74dc7663d44d3f6616b4751 |
|
MD5 | 70775c33de49e613b34aa0d0edf1797a |
|
BLAKE2b-256 | 94cfa8cbc016212e372ccf363e988ecd2f0a66da9b8e5b8f5f0c243d5dc404ea |
Hashes for pyboy-1.2.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d5299af09a4d645c910e9730bf2ab15935bed1aaf2a526c3b5eb5ca0aa4d292 |
|
MD5 | cf11e26672aa8db372c2fb8d13200c06 |
|
BLAKE2b-256 | 735135c68029aaad830853ef317c2fc5f9e342741c4370e57c6d15a0252613c2 |
Hashes for pyboy-1.2.0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 557a92fa69330413d5fde1152cbfda4f12168d73a9248d03a4916547f6bb6714 |
|
MD5 | ec1af3eaa6480c2427ee040f2f9f8687 |
|
BLAKE2b-256 | dec6f117cf10397c3f5ccf1c7fec0ab4f2b6a266d419a4c820b3154ab864f07e |
Hashes for pyboy-1.2.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da5506da6e0e3ee81b1d49ccde5b242643a1cac1fd283ce06c815f36f929ed87 |
|
MD5 | 745f4544a28c37191ed1669172bad202 |
|
BLAKE2b-256 | 9965b47e04fd105c637945e45d8c6e0c5271ec045b2c380e380f39bdfe39a3c4 |
Hashes for pyboy-1.2.0-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd3612f4d12e948a2b6239d41cca5712b38ba9cd66b8950b5569daf4bc600da5 |
|
MD5 | feb94da5bf9717b2077ad5197943e283 |
|
BLAKE2b-256 | ceefb5f098d0e97273a2d6e75faa46b7a213e9e0cd38dc944e82c5e592c0d01f |