Fixed screen bug not accounting for flipx in mult-sprite draw
This commit is contained in:
+2
-1
@@ -152,7 +152,8 @@ fn draw_sprite(value: u8, state: *uxn) void = {
|
||||
state.dev[0x2b] = (new_y): u8;
|
||||
};
|
||||
if(auto_x) {
|
||||
const new_x = x + 8;
|
||||
const new_x = if(flipx) { yield x - 8; } else { yield x + 8; };
|
||||
// const new_x = x + 8;
|
||||
state.dev[0x28] = (new_x >> 8): u8;
|
||||
state.dev[0x29] = (new_x): u8;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user