Kautenja / gym-super-mario-bros

An OpenAI Gym interface to Super Mario Bros. & Super Mario Bros. 2 (Lost Levels) on The NES
Other
678 stars 133 forks source link

Relative x and y positions #93

Closed michael20at closed 4 years ago

michael20at commented 4 years ago

Hi, great gym environment!

As of now info provides x_pos and y_pos, but they are relative to the stage.

What would be quite usefull for reinforcement learning, object detection etc. would be Marios x and y position relative to the screen!

Hope this is possible to implement, thank you!

Kautenja commented 4 years ago

hmm, i'm sure it's possible, just need to look at the RAM map and put the calculation in place. I'll take a look at this later today when I get a chance.

michael20at commented 4 years ago

Great, looking forward to it, thanks!

Kautenja commented 4 years ago

added! y_pos is already relative, but i've added x_pos_screen for relative x position.