Implemented randomly dispersing monster rooms.
This commit is contained in:
parent
5895a9f878
commit
9c02b11299
12 changed files with 394 additions and 0 deletions
24
PuzzleGameProject/Assets/Scripts/DungeonGenerator/Room.cs
Normal file
24
PuzzleGameProject/Assets/Scripts/DungeonGenerator/Room.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
namespace DungeonGenerator
|
||||
{
|
||||
public enum RoomType
|
||||
{
|
||||
Normal,
|
||||
Monster,
|
||||
}
|
||||
|
||||
public class Room
|
||||
{
|
||||
public Room(RoomType roomType, int width, int height, Point positionOfTopLeft)
|
||||
{
|
||||
TypeOfRoom = roomType;
|
||||
Width = width;
|
||||
Height = height;
|
||||
PositionOfTopLeft = positionOfTopLeft;
|
||||
}
|
||||
|
||||
public RoomType TypeOfRoom { get; set; }
|
||||
public int Height { get; set; }
|
||||
public int Width { get; set; }
|
||||
public Point PositionOfTopLeft { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue