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

Scenes

Status: Built. First drafted as “rooms” beside states, then reshaped as scenes inside a state. Reference: states and scenes.

What we looked for

Games made of several places, one screen each: Berserk’s rooms, Pitfall’s screens, Kaboom’s waves, Adventure’s castles. Before scenes each place was a <state>, so states did two jobs: modes (title, game, pause), which a stack suits, and places, which were states only because there was nowhere else to put them. That cost:

It had to need no XSLT to load, and pack nothing into strings.

What we looked at

Option Verdict
A template with parameters, expanded before load Copies stay copies; needs XSLT or a second language
A state that copies another state Shrinks states, not objects (the bulk)
Rooms beside states at the top level Two parallel lists; whose room it is goes unsaid
Scenes inside a state; states and scenes own objects Chosen

scene is the general word for room, screen and wave, and it sharpens what a state is: a mode, which may hold scenes.

Chosen

How it was built

Open