YolkfolkThe Dizzy Fansite 0 logged in0 playing
Community discussion

Room names

Started by Grandad on 24 October 2025 • 354 views

2 posts
#93358

I decided to add room names to my latest games so that I can add a secret room that lists where the other secret rooms are... but cannot get the game to display the room names when I play the game. I'm not sure what I'm missing as the room names file in the map folder isn't empty, checking the room on the map with the 'cntl + r' shows the names and the choice in the map options has the 'show room name' displayed. 

I've checked the files on using Dizzyage and checked out my early games that show room names but cannot find any difference or reason why the room names are not being displayed.

If anyone has a clue as to what I'm doing wrong I'd appreciate a reply. Thanks.

👍 0
#93361

Hi Grandad - my first thought would be to check you've got:

// ─────────────────────────────────────────────
// ROOM TITLE
// ─────────────────────────────────────────────
rx = GameGet(G_ROOMX);
ry = GameGet(G_ROOMY);
w = HudGetTextWidth(RoomGetName(rx, ry));
HudDrawText(fontid, 128 - w / 2, 29, w, 8, RoomGetName(rx, ry), 0);


in here:

/////////////////////////////////////////////////////////////////////////////////
// Handler DrawHud
// This handler is called once every frame cycle to draw hud menus and dialogs.
// It is called after all updates are done.
// Draw functions are allowed inside it.
// Constants are used instead of view or room real sizes, for faster code.
// Do NOT abuse this handler !
/////////////////////////////////////////////////////////////////////////////////
func HandlerDrawHud()
{....}

In handlers.gs?

 

👍 0