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

Relative x and y positions

michael20at opened this issue · comments

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!

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.

Great, looking forward to it, thanks!

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