Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public Obstacle(Vector2 position, float squareSize)
 {
     this.Bounds = Box2DFactory.CreateSquare(position, squareSize);
 }
Exemplo n.º 3
0
 public Player(Vector2 position, float squareSize)
 {
     this.Bounds = Box2DFactory.CreateSquare(position, squareSize - (squareSize / 1.9f));
 }
Exemplo n.º 4
0
 public Portal(Vector2 position, float squareSize)
 {
     isVisible   = false;
     this.Bounds = Box2DFactory.CreateSquare(position, squareSize);
 }
Exemplo n.º 5
0
 public BombBigRadius(Vector2 position, float squareSize)
 {
     this.Bounds             = Box2DFactory.CreateSquare(position, squareSize / 1.5f);
     this.timeDeltaToExplode = 2;
 }
Exemplo n.º 6
0
 public BombItem(Vector2 position, float squareSize)
 {
     this.Bounds = Box2DFactory.CreateSquare(position, squareSize);
 }
Exemplo n.º 7
0
 public InvisibleEnemyBarrier(Vector2 position, float squareSize)
 {
     this.Bounds = Box2DFactory.CreateSquare(position, squareSize);
 }