Sherwoodwt / SpaceGame

Just a Space game written in Java
1 stars 0 forks source link

Need config Files for Controls #6

Open Sherwoodwt opened 8 years ago

Sherwoodwt commented 8 years ago

Controls should be read in from a config file. Config file location should be passed into Ship constructor, and on Ship construction IO should be performed.

If there is an issue with this step, program should exit.

Sherwoodwt commented 8 years ago

Got this to work, but led to another issue. KeyEvent KeyCodes are used in ButtonManager, and they do not align with (int)char, so KeyEvent.getExtendedKeyCode is used. This works fine, but requires char input, and you can't have a plain char in the config file for arrow keys, shift, or num-pad numbers.

Need to figure out a different way of knowing keycodes in ButtonManager.