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

Games as tests: the first games

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.

What each game forced

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

Frogger

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.

Kaboom

Astrosmash and Lunar Lander

Asteroids

Space Invaders

Pac-Man

Paddle and ball