Kautenja / gym-super-mario-bros

An OpenAI Gym interface to Super Mario Bros. & Super Mario Bros. 2 (Lost Levels) on The NES

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get y_pos

michael20at opened this issue · comments

Hi, great env, I'm trying to use it for the new go explore algorithm, but it needs the players y_pos as well. Any chance to integrate this, or is it already possible? info only returns x_pos.

A way to get player y_pos would be great!

Easily. Should have this change in place shortly. Should only take a few lines.

Great, looking forward to it!

Also, is it possible to load a state (world and / or level) like in a retro env?

Something like env = gym_super_mario_bros.make('SuperMarioBros-v0', state="level1-1") or similar?

implemented in 7.2.1! Regarding the state feature, the underlying NES architecture does support it, but it isn't implemented at the moment. Feel free to open an issue over at nes-py for a state save feature. I wont have time to implement such a functionality any time soon, but yourself or someone else may take the challenge :)

Nice, thank you for quick reply.