public Room(int width = 50, int height = 50) { this.width = width; this.height = height; this.tiles = new Tile[width, height]; for (int x = 0; x < width; x++) { for (int y = 0; y < height; y++) { tiles[x, y] = new Tile(); } } enemies = new List<Enemy>(); bullets = new ObjectList<Bullet>(); puzzleCache = new List<Point>(); particles = new ObjectList<Particle>(); }
private static bool SolidTile(Tile tile) { return tile.Wall > 0 || (tile.puzzle != null && tile.puzzle.SolidCollision()); }