ghostFaceKillah / play-monte

Atari trajectory saver
0 stars 0 forks source link

The arrow keys are invalid #6

Open xuehy opened 5 years ago

xuehy commented 5 years ago

I am running the code on Windows. However, the game does not respond to my key inputs. What can be wrong?

xuehy commented 5 years ago

To be more precisely, the keys for the game "MsPacman" seem to be incorrect. The game cannot respond correctly to my key inputs.

ghostFaceKillah commented 5 years ago

I think the problem is that one needs to map the keys to correct actions. These are - as far as I remember - unfortunately not unified across the games. That means, action number 7 might mean LEFT in Montezuma's, whereas in Ms Pacman it can mean something else.

The way to fix it is to print keymap of MsPacman and plug it in here https://github.com/ghostFaceKillah/play-monte/blob/master/utils.py.

Let me know if you would be interested in adding that.