Jump to content

Heads Up Display

From OpenBOR
Revision as of 12:29, 12 July 2026 by Dcurrent (talk | contribs) (Add timer elements.)

Introduction

OpenBOR includes a fully functional HUD system out of the box.

No single hard-coded HUD system could accommodate every visual design creators may want across all game genres. OpenBOR’s native HUD nevertheless supports most needs associated with beat ’em up and platformer games.

For more advanced HUD designs, creators are encouraged to use subscreens and direct-drawing primitives. These tools make it possible to create virtually any graphical effect or heads-up display required by different visual styles and game genres.

Timer

Disable Time Display

notime {int disable}

#default
notime 0

Level header - If 1, the timer remains active, but does not display on screen. Timer Location and Border

timeloc {int x} {int y} {int w} {int h} {int border}

#default
timeloc 149 4 21 20 0

Levels - Positions the timer on screen.

  • x - Horizontal position.
  • y - Vertical position.
  • w - Width of border around time text.
  • h - Height of border around time text.
  • border - 1 disables border.

Timer Icon

timeicon {string path} {x} {y}

#default
timeicon none 0 0

Levels - Adds a static image one layer step behind the timer. Meant as a timer icon, but may be used independently to place a static image anywhere on screen.

  • {path} - Path to the image file for icon.
  • {x} - Horizontal offset from top left of screen.
  • {y} - Vertical offset from top left of screen.