Skip to content

Level Description File

Raluca D. Gaina edited this page Feb 12, 2018 · 2 revisions

Level Description File is a 2D Matrix of symbols. The matrix size determine the game level size (Levels are fully observable). Each symbol correspond to one or more sprite at this position in the game level. Symbols are defined in the LevelMapping section in the Game Description File. All avatars must be represented by uppercase letters. All other non-avatar objects can not use uppercase letters.

Examples:

Consider the following as a game LevelMapping from a game called WaterGame:

LevelMapping
    A > avatar
    w > wall
    x > water
    b > box
    e > exit

Here is a Level Description File for the first level:

wwwwwww
wwewAww
wwx   w
wwwbb w
ww   ww
wwwwwww

The resulting level will be of 6x7 with surrounding walls and some other game elements in the middle. The following image is the first level of WaterGame:

First level from WaterGame

Table of Contents:

Clone this wiki locally