XMLGameEngine is a VGDL (video game description language) and an engine for running games completely contained within an XML file.
Status: Every game in games/descriptions/ is built; most are played frame by frame in xge/tests/test_<game>.cpp. All were rewritten once with the newer vocabulary, closer to the originals in graphics, sound and play. The list: the shipped games.
| Game | Chosen to test | Forced (new) | Left out |
|---|---|---|---|
| Pong, Breakout, Space Invaders | the core: bounce, stick, die, fire, lockstep | <deflect>, bitmaps, animation, SVG sprites, enemy fire |
Breakout’s two-hit row and marching block (kept in tests) |
| Frogger | hazards, loops, riding, lives, one-step moves | dec, atmost, hop, wrap, ride, unless, verbs in object rules, colours |
crocodiles, lady frog, flies, speed-up |
| Space Race, Freeway | a second game on the same words | nothing | lives in Freeway (kept apart from Frogger) |
| Kaboom | <random> in a group; states that differ only in what they show |
timers, <facing> fire, <reset object> in a rule |
speed-up within a wave |
| Depth Charge | many charges against a clock | nothing | the charges’ depth setting |
| Astrosmash | Kaboom’s pieces plus a gun | nothing | levels, guided missiles, the UFO |
| Lunar Lander | gravity, limited thrust, landing by speed, pixel terrain | lines, pixel, acceleration, burn, stop, slower/faster |
scrolling close-up, abort, hard landings |
| Asteroids | facing, coasting, wrapping, breaking | heading, turn, thrust, drag, kit copies, despawn, a distance total, a thrusting pose | saucer shots breaking rocks |
| Pac-Man | a tile maze, steering, four ghosts | <map>, <maze>, <go>, <hunt>, <wander>, look timers, <become from> |
later levels’ schedules, other fruit |
| Need | Chosen | Rejected |
|---|---|---|
| Lives that end the game at zero | dec and atmost |
counting deaths up (hides the number of lives) |
| One step per press | hop, queued and made at the start of the move |
a held move stopped by a timer; a one-frame velocity (swept on the way) |
| Looping lanes | wrap: acts once fully off screen and heading out, keeps overshoot |
reset at the far edge (pops in whole) |
| River kills unless on a log | unless="logs" |
rule order |
| Diving turtles | two looks and a look timer; the turtle’s sprite="under" rule drowns the frog |
a separate hazard fading in |
| Bays that fill | the hedge is a hazard passed over on a bay; a bay has looks empty and home |
a pad that dies |
| Time | a clock object’s variable, counted down by a state timer | a timer on the frog |
Lanes are groups inside one lanes group that gives the <wrap />; each lays its cars out as columns spaced (window.right + w) / n - w round the loop.
<become from="two" sprite="one">. The eight waves are scenes, a from= chain each giving only its variables.<reverse />s on a random timer and <fire>s bombs from under him, so they trail him. A bomb on the ground resets every falling bomb.<release>s two chips; worth is self.worth so one rule serves every size. A check in a rule once failed on variable="self.worth"; checks take self now.safespeed and nearly upright (an <any> of two heading tests). The next lander is the same one reset, so fuel is copied out and back around the reset.breaker, so each size has one rule for being broken.distance= with total="lowest".from= the big with its timers replaced; they are one kit group ufos so rocks can break them.thrusting pose over a two-frame animation. That needed looks with a <heading>: each look now keeps its own turned pictures. Chosen over a tethered flame object (needs its heading kept in step) and a <become> on the key (nothing puts it back).invaders_fixture.h.<fire> placed its left edge at the shooter’s middle; now centred.pace.next sets the group’s speed times 1.3 and halves next.<after> timer.<hunt> variant (ahead, doubled from Blinky, shy within eight tiles). They leave the house by dot counts, with a four-second nudge.mode object, whose look timers run the first level’s schedule; each switch turns ghosts round with <trigger from="normal">. Chosen over a mode verb: looks already are modes, and the schedule stays in the game.status.worth, doubled each time. READY! is a state over the still maze.half paddle look once the ball reaches the top.