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