예제 #1
0
파일: Block.cs 프로젝트: Slohrsh/bombs_away
 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);
 }