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

The kit and from=

Status: Built. Reference: the kit and from=.

What we looked for

Objects could be written at four levels: the game’s, a state’s, a scene kit at the top of a state’s scenes, and a scene’s own. With spawn and despawn built, something only ever spawned (a bomb, a shot) was an object marked <exists>false</exists> wherever its spawner could see it, and a thing shared by several states had to be written where all could take it.

The wish: define objects once, up top, and customize them lower down.

What we looked at

Option Verdict
Top-level definitions by class=, an object made where a name with that class is written class= is a rule category shared by unlike things (Asteroids’ hazard is rocks, saucer and shot), so every enemy of one class would be written out in full
The scene kit moved up to the game, taken by name or from= Chosen: it matches what from= already means on states and scenes
Keeping <exists>false</exists> beside it Two ways to say “only spawned”; dropped

Chosen

How it was built

Open