PlayDead.Tile.Tile C# (CSharp) Méthode

Tile() public méthode

Creates a new Tile object
public Tile ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle clip, int collisionMask ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D The tile texture sheet
clip Microsoft.Xna.Framework.Rectangle The portion of the sheet that contains this tile
collisionMask int The collision bitmask
Résultat System
        public Tile(Texture2D texture, Rectangle clip, int collisionMask)
        {
            this.tex = texture;
            this.clip = new Rectangle[]{clip};
            this.collision = collisionMask;
        }

Same methods

Tile::Tile ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle clip, int collisionMask, Color tint ) : System
Tile::Tile ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle clips, int collisionMask, Color tint, int delay ) : System