comparison src/tilemap.d @ 4:292df259cc85

view + sprite consumers, animated sprite working
author fred@reichbier.de
date Fri, 18 Jul 2008 16:12:41 +0200
parents a9af6ec19195
children
comparison
equal deleted inserted replaced
3:a9af6ec19195 4:292df259cc85
11 typedef Sprite[] SpriteArray; 11 typedef Sprite[] SpriteArray;
12 12
13 class Tilemap { 13 class Tilemap {
14 public int[int][int][int] map; // Layer: x: y: Tile-ID 14 public int[int][int][int] map; // Layer: x: y: Tile-ID
15 public Vector2i[int] layer_tsizes; // Layer: Tile size 15 public Vector2i[int] layer_tsizes; // Layer: Tile size
16 private Tileset tileset; 16 public Tileset tileset;
17 public int width, height, tilewidth, tileheight; 17 public int width, height, tilewidth, tileheight;
18 18
19 this(Tileset tileset, int width, int height, int tilewidth, int tileheight) { 19 this(Tileset tileset, int width, int height, int tilewidth, int tileheight) {
20 this.tileset = tileset; 20 this.tileset = tileset;
21 this.width = width; 21 this.width = width;