XMLGameEngine

XMLGameEngine is a VGDL (video game description language) and an engine for running games completely contained within an XML file.

View the Project on GitHub beefviper/XMLGameEngine

Input

Status: Built, the mouse and pads too. Reference: input.

Three layers

A press that cannot be done

Held keys across state changes

Option Behaviour
Latched to the press Hold Left through pause and the paddle moves on the pause screen. Built first, replaced
Live held keys The current state decides what a held key means. On a change the old bindings are let go and the new state’s held verbs resume for keys still down. One-shots and state changes need a real press
Cancel on change Press again after every pause. Simple but annoying

Built by a state change count compared in Engine::syncHeldKeysToState() after each key event and frame.

A key’s three moments

Mouse and pads

Ideas