some ui changes / nes

This commit is contained in:
Luxferre
2026-01-09 13:44:36 +02:00
parent 02acab7289
commit 063c2eef99
+6 -4
View File
@@ -35,6 +35,8 @@ void ppu_off() {
} }
void ppu_on() { void ppu_on() {
waitvsync();
PPU.scroll = 0;
PPU.mask |= 0x1A; PPU.mask |= 0x1A;
} }
@@ -298,15 +300,15 @@ void render_main_scene() {
chlinexy(10, 13, 4); chlinexy(10, 13, 4);
/* render stats */ /* render stats */
gotoxy(statbase, 1); gotoxy(statbase, 1);
cprintf("Health %02d", hp); cprintf("Health %02d", hp);
gotoxy(statbase, 3); gotoxy(statbase, 3);
cprintf("Weapon %02d", weapon); cprintf("Weapon %02d", weapon);
gotoxy(statbase, 5); gotoxy(statbase, 5);
cprintf("Durability %02d", durability); cprintf("Durability %02d", durability);
cputsxy(statbase, 17, "Choose: D-Pad"); cputsxy(statbase, 17, "Choose: D-Pad");
cputsxy(statbase, 19, can_run ? "Run: A/B/SELECT" : "Cannot run!"); cputsxy(statbase, 19, can_run ? "Run: A/B/SELECT" : "Cannot run!");
gotoxy(statbase, 21); gotoxy(statbase, 21);
cprintf("Rooms clrd %02d", rooms_cleared); cprintf("Rooms clrd: %02d", rooms_cleared);
/* render status message */ /* render status message */
gotoxy(1, SCREEN_HEIGHT-2); gotoxy(1, SCREEN_HEIGHT-2);
cprintf("%s", status_msg); cprintf("%s", status_msg);