在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:PyBoy开源软件地址:https://gitee.com/mirrors/PyBoy开源软件介绍: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. InstallationThe instructions are simple, if you already have a functioning Python environment on your machine.
Now you're ready! Either use PyBoy directly from the terminal from pyboy import PyBoypyboy = PyBoy('ROMs/gamerom.gb')while not pyboy.tick(): pass When the emulator is running, you can easily access PyBoy's API: from pyboy import WindowEventpyboy.send_input(WindowEvent.PRESS_ARROW_DOWN)pyboy.tick() # Process one frame to let the game register the inputpyboy.send_input(WindowEvent.RELEASE_ARROW_DOWN)pil_image = pyboy.screen_image()pil_image.save('screenshot.png') 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. ContributorsThanks to all the people, who have contributed to the project! Original Developers
GitHub Collaborators
Student Projects
ContributeAny 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:
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. |
请发表评论