Exemple #1
0
 public void DrawOutline(AD2SpriteBatch sb, int camX, int camY)
 {
     sb.Draw(Outline, new Rectangle((-camX + X + -OffsetX), (-camY + Y + 1 + -OffsetY), Texture.Width / 4, Texture.Height), new Rectangle(16, 0, Texture.Width / 4, Texture.Height), Color.White);
     sb.Draw(Outline, new Rectangle((-camX + X + 1 + -OffsetX), (-camY + Y + -OffsetY), Texture.Width / 4, Texture.Height), new Rectangle(16, 0, Texture.Width / 4, Texture.Height), Color.White);
     sb.Draw(Outline, new Rectangle((-camX + X + -OffsetX), (-camY + Y + -1 + -OffsetY), Texture.Width / 4, Texture.Height), new Rectangle(16, 0, Texture.Width / 4, Texture.Height), Color.White);
     sb.Draw(Outline, new Rectangle((-camX + X + -1 + -OffsetX), (-camY + Y + -OffsetY), Texture.Width / 4, Texture.Height), new Rectangle(16, 0, Texture.Width / 4, Texture.Height), Color.White);
 }
Exemple #2
0
 public void DrawOutline(AD2SpriteBatch sb, int camX, int camY)
 {
     sb.Draw(Outline, new Rectangle((-camX + X + -OffsetX), (-camY + Y + 1 + -OffsetY), Texture.Width / 4, Texture.Height), new Rectangle(16, 0, Texture.Width / 4, Texture.Height), Color.White);
     sb.Draw(Outline, new Rectangle((-camX + X + 1 + -OffsetX), (-camY + Y + -OffsetY), Texture.Width / 4, Texture.Height), new Rectangle(16, 0, Texture.Width / 4, Texture.Height), Color.White);
     sb.Draw(Outline, new Rectangle((-camX + X + -OffsetX), (-camY + Y + -1 + -OffsetY), Texture.Width / 4, Texture.Height), new Rectangle(16, 0, Texture.Width / 4, Texture.Height), Color.White);
     sb.Draw(Outline, new Rectangle((-camX + X + -1 + -OffsetX), (-camY + Y + -OffsetY), Texture.Width / 4, Texture.Height), new Rectangle(16, 0, Texture.Width / 4, Texture.Height), Color.White);
 }
Exemple #3
0
 public void Draw(AD2SpriteBatch sb)
 {
     sb.Draw(Splash, new Rectangle(0, 0, 360, 270), Color.White);
     //TODO: f.draw center.
     Utils.DefaultFont.Draw(sb, "PRESS ENTER", 100, 200, Color.White, 3, true);
 }
Exemple #4
0
 public void DrawAlways(AD2SpriteBatch sb, int x, int y)
 {
     if (AlwaysMap == null)
         return;
     sb.Draw(AlwaysMap, new Rectangle(0, 0, ScreenWidth, ScreenHeight), new Rectangle(x, y, ScreenWidth, ScreenHeight), Color.White);
 }
Exemple #5
0
 public void DrawBase(AD2SpriteBatch sb, int x, int y)
 {
     sb.Draw(BaseMap, new Rectangle(0, 0, ScreenWidth, ScreenHeight), new Rectangle(x, y, ScreenWidth, ScreenHeight), Color.White);
 }
Exemple #6
0
 public void DrawBase(AD2SpriteBatch sb, int x, int y)
 {
     sb.Draw(BaseMap, new Rectangle(0, 0, ScreenWidth, ScreenHeight), new Rectangle(x, y, ScreenWidth, ScreenHeight), Color.White);
 }
Exemple #7
0
 public void DrawAlways(AD2SpriteBatch sb, int x, int y)
 {
     if (AlwaysMap == null)
         return;
     sb.Draw(AlwaysMap, new Rectangle(0, 0, ScreenWidth, ScreenHeight), new Rectangle(x, y, ScreenWidth, ScreenHeight), Color.White);
 }