Fixes - flip the y on amethyst tile render
@@ -98,7 +98,8 @@ impl SimpleState for RltkGemBridge {
.iter()
.for_each(|coord| {
if let Some(fg) = map.get_mut(&coord) {
- let idx = ((coord.y * size.0) + coord.x) as usize;
+ let flipped_y = (size.1-1) - coord.y;
+ let idx = ((flipped_y * size.0) + coord.x) as usize;
if idx < concrete.tiles.len() {
let tile = &concrete.tiles[idx];
fg.glyph = tile.glyph as usize;
