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 {
assert!(buf.len() >= 4);
Self {
x: buf[0],
y: buf[1],
x: buf[1],
y: buf[0],
tile: buf[2],
flags: buf[3],
}