Пример #1
0
 public EntityCollisionHandler(TileMap map)
 {
     this.map = map;
     mapTiles = map.GetCollisionTiles();
 }
Пример #2
0
 public BulletCollisionHandler(TileMap map)
 {
     collisionTiles = map.GetCollisionTiles();
 }
Пример #3
0
 public SceneObjectHandler(TileMap tileMap)
 {
     this.tileMap   = tileMap;
     sceneObjects   = new List <GameObj>();
     occupiedPlaces = new int[tileMap.GetTileMap().GetLength(0), tileMap.GetTileMap().GetLength(1)];
 }
Пример #4
0
 public EnemyCollisionHandler(TileMap map) : base(map)
 {
 }
Пример #5
0
 public Camera(Viewport viewPort, TileMap _map)
 {
     viewportWidth  = viewPort.Width;
     viewportHeight = viewPort.Height;
     map            = _map;
 }