This is a bit of an asset refactor, and some of the code has changed accordingly. This separates the grave bodies from the key code icons. This is in preparation for some more serious changes, like #92, #94 and #110. These icons fill in the gravestone bodies, and with the help of #108, will also be employed in the control display in a future PR.
Relates to #93, however I don't think it technically closes this issue as the sprite sheet added here is very placeholder. It will take a while to fill this sprite sheet in, and I want to move on to the feature work around it instead of getting bogged down by it.
The tiles in key-code-icons.png can be indexed by their corresponding key code index. The first 10 are for numbers, the next 26 for letters, and then they get more obscure from there. The ordering of the variants in the KeyCode enum determines this indexing.
This also implements the logic for selecting a key code icon based on the current control settings, rather than just having hard coded icons for the GraveId variants.
This is a bit of an asset refactor, and some of the code has changed accordingly. This separates the grave bodies from the key code icons. This is in preparation for some more serious changes, like #92, #94 and #110. These icons fill in the gravestone bodies, and with the help of #108, will also be employed in the control display in a future PR.
Relates to #93, however I don't think it technically closes this issue as the sprite sheet added here is very placeholder. It will take a while to fill this sprite sheet in, and I want to move on to the feature work around it instead of getting bogged down by it.
The tiles in
key-code-icons.png
can be indexed by their corresponding key code index. The first 10 are for numbers, the next 26 for letters, and then they get more obscure from there. The ordering of the variants in the KeyCode enum determines this indexing.This also implements the logic for selecting a key code icon based on the current control settings, rather than just having hard coded icons for the
GraveId
variants.