Giter Site home page Giter Site logo

baekalfen / pyboy Goto Github PK

View Code? Open in Web Editor NEW
4.5K 76.0 469.0 44.32 MB

Game Boy emulator written in Python

License: Other

Python 86.91% Makefile 0.46% Assembly 0.72% Cython 11.90%
gameboy emulator pypy python gameboy-emulator gameboy-emulator-library cython

pyboy's People

Contributors

baekalfen avatar cmacrae avatar eugeneyjy avatar fieoner avatar fkatenbrink avatar grungi-ankhfire avatar jardiacaj avatar jonathanmurray avatar kr1tzy avatar krs013 avatar littlenyima avatar maciekbaron avatar marginalhours avatar mathisfederico avatar naclander avatar nicoeps avatar nicolefaye avatar owen-crook avatar posixpascal avatar pwhiddy avatar rkaufusi avatar sofianedjerbi avatar stangerm2 avatar stillinbeta avatar thatguy11325 avatar thomafred avatar troelsy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyboy's Issues

Make a screen recorder

It would be useful to implement a feature in a GameWindow, which allows to record the game frame-by-frame. Contrary to regular screen-capture, this would allow perfectly timed frame-rates.

The output formats would preferably be GIF and MP4.

Create a settings window

It would be nice to have a settings window to change keybindings, ROM directory, screen recording settings etc.

Failing to build pillow

I tried following the instructions for Ubuntu. I ran pip install -r requirements.txt and it failed to build pillow

Add terminal "Window" for Blargg's test-ROMs

Blargg's test-ROMs supposedly writes the text on the screen to the Link Cable as well as the screen. For the tests, it would be useful to not start the (SDL) window, but simply have it print out in the terminal.

This could also be used for automatic testing, as the output could check where errors have occurred.

Cython instructions for Raspberry Pi

To start off, it doesn't matter which model of RPi, or under which circumstances. It might require overclocking, multithreading and/or use of OpenGL.

sendInput([WindowEvent.LoadState]) does nothing

Hi, im trying to make an IA for Motocross Maniacs but I need to load state in order to dont spend hours between bootrom loadings and such, also the rom crashes if the game timesup or loses the race so I need this to work as I intend. I was modifying tetris_bot.py in order to see if I can load rom states but it seems either this isn't implemented or I'm not using the correct method.

Im trying pyboy.sendInput([WindowEvent.LoadState]) but this does nothing.

Run SDL2 in separate thread

For some games, nearly 50% of the CPU time goes into rendering the screen. This could easily be moved to another thread, to better utilize the available hardware.

Decouple GameWindow import from `main.py`

Currently, the GameWindow is imported from outside of the PyBoy module. It would de preferable, if it was selected with a flag through sys.argv, but the internals of PyBoy handled it.

Infinite time counter in Super Mario Land

The timer starts at 465 and wraps around after hitting 460. This means the player cannot get past first level, as it goes into an infinite loop while counting down the seconds left of the game.

Pokemon Blue infinite loop on white-out

The game is not put into an exact lock, as the check for PC-change is not triggered. It is likely a subroutine, which does not get the correct flag on a jump.

Lazy imports for optional features (and faster starts)

Since some packages (OpenGL, imageio) are only needed for certain features like video recording and experimental GameWindows, it would be nice if we could lazily import either those packages or the modules that import them. That way, someone could try the code without having to install all the dependencies (e.g., my brother had a hard time trying the code because gcc fails to compile Pillow on macOS). It would also speed up the startup, since there would be less work to do before the game can launch.

One place this is a problem is the GameWindows. Since GameWindow/__init__.py imports all of the GameWindows to its namespace, the references to that package in main.py trigger the imports even though it's trying to import just one of the GameWindows. While having an empty __init__.py and importing from the submodules would fix that, I think it would fragment the code too much (and already it's a bit interdependent that main.py has to check the names of the GameWindows instead of keeping that functionality in the module). So, I thought I'd open this up as an issue to see if there were any ideas about how to handle this in general and whether it's something to pursue yet.

Pokemon Gold error on New Game

When starting a new game in Pokemon Gold, the game gives the error message "No windows available for popping." and locks up.

Time in Pokemon Gold goes too fast

It might be RTC and save/load state related. The clock inside the game counts around 1 hour pr. second compared to the real world. This soft-locks the game, as it's not possible to end the phone call from the NPC Wade before he is triggered to call again.

Ability to compute frames as fast as possible

Me and @Fieoner are working on a bot and we are using your (awesome) emulator in headless mode to make it work. However, the frames are limited so that it runs in real time, which makes sense for direct standard use. For computing frames, however, it makes more sense to run it as fast as possible, so we would like to know if there's any option to make this happen or if it can be implemented.

We are happy to help.

Thanks in advance!

Make subpage for installing and using optional features

We are beginning to have several optional features: GameWindow, ScreenRecorder, BotSupport and likely more to come.

We should make one or more subpages, which describes these things in detail. Both how to use them, and how to install them.

It might be a Wiki page, or subpages of .md.

First on the list, is the new dependencies in #59, which are only required for the optional ScreenRecorder.

About TileViews

First, thanks for answering me before. Now, this is more a doubt than an issue... When I use the tileview I get two windows, one for the "current map without the player" and other for the HUD (the remaining time bar, power, and such). At the moment I can retreive the "on screen" sprites but I cant get the sprites in the tileviews and I need to get the sprites near the racer (in the tileview but not on screen). How should I proceed?
This is what I see:
https://i.imgur.com/3yrvuSg.png

Save cartridge RAM

For cartridges, which has a built-in battery, we should same the contents of the external RAM.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.