Пример #1
0
 public Block(BlockType type, string textureType, Box2D textureCoordinates, float size, float positionX,
              float positionY)
 {
     this.type               = type;
     this.textureType        = textureType;
     this.textureCoordinates = textureCoordinates;
     this.idleCoordinates    = this.textureCoordinates;
     this.Bounds             = Box2DFactory.CreateSquare(new Vector2(positionX, positionY), size);
 }
Пример #2
0
 public Obstacle(Vector2 position, float squareSize)
 {
     this.Bounds = Box2DFactory.CreateSquare(position, squareSize);
 }
Пример #3
0
 public Player(Vector2 position, float squareSize)
 {
     this.Bounds = Box2DFactory.CreateSquare(position, squareSize - (squareSize / 1.9f));
 }
Пример #4
0
 public Portal(Vector2 position, float squareSize)
 {
     isVisible   = false;
     this.Bounds = Box2DFactory.CreateSquare(position, squareSize);
 }
Пример #5
0
 public BombBigRadius(Vector2 position, float squareSize)
 {
     this.Bounds             = Box2DFactory.CreateSquare(position, squareSize / 1.5f);
     this.timeDeltaToExplode = 2;
 }
Пример #6
0
 public BombItem(Vector2 position, float squareSize)
 {
     this.Bounds = Box2DFactory.CreateSquare(position, squareSize);
 }
Пример #7
0
 public InvisibleEnemyBarrier(Vector2 position, float squareSize)
 {
     this.Bounds = Box2DFactory.CreateSquare(position, squareSize);
 }