tvecera / picopad-playground

13 stars 4 forks source link

save files for games #6

Open Gabbajoe opened 1 year ago

Gabbajoe commented 1 year ago

Hi,

with your bootloader you flash every time the game new so not high scours or for gameboy games save files are working. Do you plant to implement such a feature that the high score or the gameboy save files will get read and store on the sd card?

Cheers, Gabba

tvecera commented 1 year ago

Thank you for your feedback. If time permits, I intend to enhance the emulator further. Specifically, the current version of Peanut GB fails several Blargg and Mooneye tests. While this is often not an issue for GB games, inaccurate timing is problematic for GBC games operating in double speed mode. I'm currently awaiting approval and completion of a pull request that would add GBC support to Peanut GB. Once that's done, I'd like to address the issues observed in some GBC games. I have tested several games and summarized the results below:

Working Games:

Non-working Games:

Going forward, my plans include:

Gabbajoe commented 1 year ago

Hi tvecera,

I modified your gameboy implementation for some game to not exit into the bootlaoder with the Y key because you need the select key. I was not able to implement a "key combo like button left + Y pressed to exit in the bootloader.

I test so far the games working: The Simpsons - Escape from Camp Deadly Game & Watch Gallery 2 Kwirk - Here I disabled the Y button to exit to the bootloader Super Mario Land Supper Mario Land 2 - but the picture/frames are not smooth. Here I disabled the Y button to exit to the bootloader Tetris Pokemon Pinball - seems sometimes with fast movements, lower to uper flipper change, the pictures lags a bit.

tvecera commented 1 year ago

I've pushed a new version with changed key mappings:

Gameboy Picopad
RIGHT RIGHT
UP UP
LEFT LEFT
DOWN DOWN
A A
B B
START X
SELECT Y
QUIT A + B
Gabbajoe commented 1 year ago

I've pushed a new version with changed key mappings: Gameboy Picopad RIGHT RIGHT UP UP LEFT LEFT DOWN DOWN A A B B START X SELECT Y QUIT A + B

nice , i c how do did the 2 button action. I change it to x +y as in some games you need to press a + b :)

tvecera commented 1 year ago

You can find the check at the end of the main.cpp file:

        } while (!(gbContext.direct.joypad_bits.a == 0 && gbContext.direct.joypad_bits.b == 0));
Gabbajoe commented 1 year ago

Yeah I know I changed it to:

 } while (!(gbContext.direct.joypad_bits.start == 0 && gbContext.direct.joypad_bits.select == 0));

As in some game you press a nd b at the same time. :)