Fixed screen bug not accounting for flipx in mult-sprite draw

This commit is contained in:
JJ Bliss
2026-05-06 17:40:12 -04:00
parent 789e72ba55
commit fa0e4edda8
2 changed files with 19 additions and 3 deletions
+17 -2
View File
@@ -1,4 +1,19 @@
# meadow # meadow
Uxn/Varvara multiplexer and extension. Uxn/Varvara Emulator written in the hare programming language.
Written in the hare programming language.
Requirements:
hare
sdl3
sdl3-image
sdl3-ttf
[hare-sdl3]
[hare-sdl3]: https://git.sr.ht/~sircmpwn/hare-sdl3
## Usage
make sure requirements are installed.
**make build** will build meadow inside bin
+2 -1
View File
@@ -152,7 +152,8 @@ fn draw_sprite(value: u8, state: *uxn) void = {
state.dev[0x2b] = (new_y): u8; state.dev[0x2b] = (new_y): u8;
}; };
if(auto_x) { 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[0x28] = (new_x >> 8): u8;
state.dev[0x29] = (new_x): u8; state.dev[0x29] = (new_x): u8;
}; };