diff --git a/README.md b/README.md index 0d2ace1..3fa1f3b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,19 @@ # meadow -Uxn/Varvara multiplexer and extension. -Written in the hare programming language. \ No newline at end of file +Uxn/Varvara Emulator 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 + diff --git a/uxn/screen.ha b/uxn/screen.ha index c09e326..d39fd86 100644 --- a/uxn/screen.ha +++ b/uxn/screen.ha @@ -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; };