public Brush Image(int counter) { string direction = (this.FacingRight ? "Right" : "Left"); string file = this.OnGround ? (this.VX != 0 ? "Mario_" + direction + "_Walk_" + ((counter / 2 % 3) + 1).ToString() : "Mario_" + direction + "_Stand") : "Mario_" + direction + "_Jump"; if (this.IsDead) { file = "Mario_Dead"; } return(ImageLibrary.Get(file)); }
public static void BlitBrushOntoGrid(Grid target, string brush, int x, int y) { BlitBrushOntoGrid(target, ImageLibrary.Get(brush), x, y, 48, 48); }