Пример #1
0
 public Field(int x, int y)
 {
     this.x = x;
     this.y = y;
     this.type = FieldTypes.Path;
     this.connection = null;
     this.hitbox = new Rectangle(x * Data.BlockSize, y * Data.BlockSize, Data.BlockSize, Data.BlockSize);
     this.spawner = null;
 }
Пример #2
0
 public Field(int x, int y, FieldTypes type, Field Connection)
 {
     this.x = x;
     this.y = y;
     this.type = type;
     this.connection = Connection;
     this.hitbox = new Rectangle(x * Data.BlockSize, y * Data.BlockSize, Data.BlockSize, Data.BlockSize);
     this.spawner = null;
 }
Пример #3
0
 public void Start()
 {
     if(type == FieldTypes.Spawner)
     {
         this.spawner = new MonsterSpawner(x,y,5,25,TimeSpan.FromSeconds(30),this);
         World.WorldList.Add(spawner);
     }
 }