Fix x/y coordinate swap in sprites

This commit is contained in:
Kevin Hamacher 2020-02-21 18:42:07 +01:00
parent 515321110b
commit 52c73538cb

View File

@ -43,8 +43,8 @@ impl Sprite {
pub fn load(buf: &[u8]) -> Self { pub fn load(buf: &[u8]) -> Self {
assert!(buf.len() >= 4); assert!(buf.len() >= 4);
Self { Self {
x: buf[0], x: buf[1],
y: buf[1], y: buf[0],
tile: buf[2], tile: buf[2],
flags: buf[3], flags: buf[3],
} }