changed offsets a bit

This commit is contained in:
Luxferre
2026-01-08 18:26:43 +02:00
parent 85970ffe0a
commit 475c2e563b
+12 -12
View File
@@ -174,16 +174,16 @@ void render_room_item(short i, short v) {
text_x, text_y, cheight=7, cwidth=8, left_offset = 9;
if(i == 0) {
topleft_x = 9;
topleft_x = 8;
topleft_y = 3;
} else if(i == 1) {
topleft_x = 2;
topleft_x = 1;
topleft_y = 9;
} else if(i == 2) {
topleft_x = 16;
topleft_x = 15;
topleft_y = 9;
} else if(i == 3) {
topleft_x = 9;
topleft_x = 8;
topleft_y = 15;
}
topright_x = topleft_x + cwidth - 1;
@@ -211,7 +211,7 @@ void render_room_item(short i, short v) {
/* Render main game screen */
void render_main_scene() {
short i, deck_count = 0, statbase = 18;
short i, deck_count = 0, statbase = 17;
short room_start_x = 1,
room_start_y = 1,
room_end_x = statbase - 8,
@@ -228,10 +228,10 @@ void render_main_scene() {
chlinexy(1,SCREEN_HEIGHT-1,SCREEN_WIDTH-2);
chlinexy(1,SCREEN_HEIGHT-3,SCREEN_WIDTH-2);
cputsxy(9, 0, "SCOUNDREL-2026");
cputsxy(3, SCREEN_HEIGHT-5,"D-Pad to select item");
cputsxy(2, SCREEN_HEIGHT-5,"D-Pad to select item");
/* render the room */
for(i=0;i<4;i++) render_room_item(i, room[i]);
cputsxy(11, 12, "ROOM");
cputsxy(10, 12, "ROOM");
/* render stats */
gotoxy(statbase, 5);
cprintf("Health %02d", hp);
@@ -246,12 +246,12 @@ void render_main_scene() {
/* render controls info */
if(can_run) {
cputsxy(25, 10, "Run:");
cputsxy(25, 12, "A/B or");
cputsxy(25, 14, "SELECT");
cputsxy(24, 10, "Run:");
cputsxy(24, 12, "A/B or");
cputsxy(24, 14, "SELECT");
} else {
cputsxy(25, 11, "Cannot");
cputsxy(25, 13, " run!");
cputsxy(24, 11, "Cannot");
cputsxy(24, 13, " run!");
}
/* render status message */
gotoxy(1, SCREEN_HEIGHT-2);