From 7ff67e51f8190cc5002317e0d37628fe367297e3 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sun, 8 Nov 2020 16:59:04 +0000 Subject: [PATCH] x,y instead of y,x --- src/lib.rs | 2 +- src/test-resources/expected.bitsy | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 57f6f1b..4f4aa3a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -303,7 +303,7 @@ pub fn add_room() -> String { let tile = Tile { // "0" will get overwritten to a new, safe tile ID id: "0".to_string(), - name: tile_name(&state.room_name, &row, &column), + name: tile_name(&state.room_name, &column, &row), wall: None, animation_frames: vec![Image { pixels }], colour_id: None diff --git a/src/test-resources/expected.bitsy b/src/test-resources/expected.bitsy index 93504e1..579845b 100644 --- a/src/test-resources/expected.bitsy +++ b/src/test-resources/expected.bitsy @@ -70,7 +70,7 @@ TIL 1 00011000 00011000 00111100 -NAME test (0,2) +NAME test (2,0) TIL 2 00111100 @@ -81,7 +81,7 @@ TIL 2 00110000 01100000 01111110 -NAME test (0,4) +NAME test (4,0) TIL 3 00111100 @@ -92,7 +92,7 @@ TIL 3 01100110 01100110 00111100 -NAME test (0,6) +NAME test (6,0) SPR A 00011000