comparison data/Level_Format.txt @ 230:e4f983b68ef5

Start of advanced sprite definitions.
author Simon Cross <hodgestar@gmail.com>
date Wed, 14 Sep 2011 23:28:25 +0200
parents 4c60f732ffc9
children e769032e3c09
comparison
equal deleted inserted replaced
229:b0ef7eecc67a 230:e4f983b68ef5
3 The file layout is 3 The file layout is
4 4
5 Level name 5 Level name
6 Tileset name 6 Tileset name
7 Map data as a grid of ascii characters 7 Map data as a grid of ascii characters
8 "end"
9 Advanced sprite definitions
8 10
11 Advanced sprite definitions consist of:
9 12
13 (<x>, <y>): <SpriteClassName> <id> <arg1> <arg2>
10 14
11 15 <x> and <y> give the starting tile position.
16 <SpriteClassName> is looked up in mamba.sprites.
17 <id> is a means for other sprites to lookup the sprite.
18 <arg1> .. <argN> are string arguments to the sprite constructor.