From 063c2eef99bac007669448bb733e74fefa67764c Mon Sep 17 00:00:00 2001 From: Luxferre Date: Fri, 9 Jan 2026 13:44:36 +0200 Subject: [PATCH] some ui changes / nes --- nes/nescoundrel.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nes/nescoundrel.c b/nes/nescoundrel.c index 563e589..710098a 100644 --- a/nes/nescoundrel.c +++ b/nes/nescoundrel.c @@ -35,6 +35,8 @@ void ppu_off() { } void ppu_on() { + waitvsync(); + PPU.scroll = 0; PPU.mask |= 0x1A; } @@ -298,15 +300,15 @@ void render_main_scene() { chlinexy(10, 13, 4); /* render stats */ gotoxy(statbase, 1); - cprintf("Health %02d", hp); + cprintf("Health %02d", hp); gotoxy(statbase, 3); - cprintf("Weapon %02d", weapon); + cprintf("Weapon %02d", weapon); gotoxy(statbase, 5); - cprintf("Durability %02d", durability); + cprintf("Durability %02d", durability); cputsxy(statbase, 17, "Choose: D-Pad"); cputsxy(statbase, 19, can_run ? "Run: A/B/SELECT" : "Cannot run!"); gotoxy(statbase, 21); - cprintf("Rooms clrd %02d", rooms_cleared); + cprintf("Rooms clrd: %02d", rooms_cleared); /* render status message */ gotoxy(1, SCREEN_HEIGHT-2); cprintf("%s", status_msg);