예제 #1
0
 public Powerup(Vector2 pos)
 {
     Id          = powerUpIdCounter++;
     Position    = pos;
     BoundingBox = new CustomBoundingBox();
     BoundingBox.SetFullRectangle(Position, new Rectangle(0, 0, 16, 16), Velocity);
 }
예제 #2
0
        public StaticTile(Vector2 position, string tileKey)
        {
            TileKey = tileKey;

            Position = position;

            BoundingBox = new CustomBoundingBox();
            BoundingBox.SetFullRectangle(Position, new Rectangle(0, 0, 32, 32), Vector2.Zero);
        }