-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pokemon pinball wrapper #314
Conversation
3d0a116
to
e8519db
Compare
7194779
to
c202647
Compare
8d62b89
to
26d2197
Compare
0913385
to
a2de6fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really well done over all. Nice work :)
pokemon_pinball = pyboy.game_wrapper | ||
pokemon_pinball.start_game() | ||
pyboy.button("a") | ||
for i in range(6185): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a very specific number. How was it derived?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just did some further testing, the actual value that should go there is 6176. this will be the first tick that game over is true if you press a every 100 ticks, which essentially just launches the ball as soon as its up, and doesnt really do anything to prevent it from going into the loss slot repeatedly.
Originally it was just trial and error by hand, started with a big number i knew would be enough for a game over and started lowering until it was just after the game over occurred.
if i % 100 == 0: | ||
pyboy.button("a") | ||
pyboy.tick(render=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A trick could be to do:
for _ in range(60):
pyboy.button("a")
pyboy.tick(100, render=False)
ae1f750
to
48ea72c
Compare
Superseeded by #326 |
Created a wrapper for the Gameboy color Pokemon Pinball game.
This wrapper includes definitions for game stages, Pokemon spawn rates, maps, special modes, ball types. It tracks game stats, manages game states, allows you to programmatically start catch mode, allows you to start the game on any stage, including bonus stages, and optional evolution hack that replaces the pause button with evolution start.