Fixed screen bug not accounting for flipx in mult-sprite draw
This commit is contained in:
@@ -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
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user