From 52c73538cbae49491b468ee2457ee01c225813f9 Mon Sep 17 00:00:00 2001 From: Kevin Hamacher Date: Fri, 21 Feb 2020 18:42:07 +0100 Subject: [PATCH] Fix x/y coordinate swap in sprites --- src/display/structs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/display/structs.rs b/src/display/structs.rs index 85254ae..d7995a6 100644 --- a/src/display/structs.rs +++ b/src/display/structs.rs @@ -43,8 +43,8 @@ impl Sprite { pub fn load(buf: &[u8]) -> Self { assert!(buf.len() >= 4); Self { - x: buf[0], - y: buf[1], + x: buf[1], + y: buf[0], tile: buf[2], flags: buf[3], }