Fix x/y coordinate swap in sprites
This commit is contained in:
parent
515321110b
commit
52c73538cb
@ -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],
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user