uiControl Driver

Last updated: · In planning
Give the interface its own engine
uiControl is intended to make game interfaces easier to build in NextBASIC: titles that move into place, menus with animated selection, scores that count towards a new total, and panels that open in response to an interaction. These should share a reusable presentation engine instead of requiring a separate animation routine for every effect.
Objects that keep their identity
The developer defines the interface objects and their resources. uiControl retains those objects and their presentation state, then changes their position, visibility or supported appearance over time. BASIC should not have to continually recreate the interface. Base layout values remain distinct from temporary animation offsets.
Six areas, one foundation
The design brings together Menus and Title Screens, HUDs, In-Game Effects and Feedback, Overlays and Panels, Screen Transitions, and the Animation and Tweening Engine. These are the wider design areas, not six completed features or a promise to deliver everything in the first release.
NextBASIC remains in charge
NextBASIC owns the game structure, rules and authoritative gameplay state. uiControl presents values and reports interface events; it does not award points, remove lives, manage inventory, decide dialogue outcomes or change the game’s rules. The meaning of a menu selection belongs to BASIC.
Part of an independent driver family
playerControl reports movement and interactions; scrollingControl owns the camera and world; audioControl and speechControl handle their own audio responsibilities; particleControl owns particles. uiControl can publish presentation events for those systems to respond to through the game’s event mapping. A fixed HUD must remain independent of camera movement.