Exemple #1
0
 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>();
 }
Exemple #2
0
 private static bool SolidTile(Tile tile)
 {
     return tile.Wall > 0 || (tile.puzzle != null && tile.puzzle.SolidCollision());
 }