本文整理汇总了C#中MiswGame2007.GraphicsDevice.FillScreen方法的典型用法代码示例。如果您正苦于以下问题:C# GraphicsDevice.FillScreen方法的具体用法?C# GraphicsDevice.FillScreen怎么用?C# GraphicsDevice.FillScreen使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MiswGame2007.GraphicsDevice
的用法示例。
在下文中一共展示了GraphicsDevice.FillScreen方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Draw
public void Draw(GraphicsDevice graphics)
{
graphics.FillScreen(0, 0, 0, 192);
graphics.DrawImageAdd(GameImage.Message, 256, 32, 3, 0, (Settings.SCREEN_WIDTH - 256) / 2, Settings.SCREEN_HEIGHT / 2 - 80, 255);
if (currentStageIndex + 1 < 10)
{
graphics.DrawImageAdd(GameImage.Number, 32, 64, 0, currentStageIndex + 1, (Settings.SCREEN_WIDTH - 32) / 2, (Settings.SCREEN_HEIGHT - 64) / 2, 255);
}
else
{
graphics.DrawImageAdd(GameImage.Number, 32, 64, 0, (currentStageIndex + 1) / 10, (Settings.SCREEN_WIDTH - 64) / 2, (Settings.SCREEN_HEIGHT - 64) / 2, 255);
graphics.DrawImageAdd(GameImage.Number, 32, 64, 0, (currentStageIndex + 1) % 10, (Settings.SCREEN_WIDTH - 64) / 2 + 32, (Settings.SCREEN_HEIGHT - 64) / 2, 255);
}
if (currentStageIndex > 0)
{
graphics.DrawImage(GameImage.Hud, 32, 32, 0, 0, Settings.SCREEN_WIDTH / 2 - 80, Settings.SCREEN_HEIGHT / 2 - 16);
}
if (currentStageIndex + 1 < numUnlockedStages)
{
graphics.DrawImage(GameImage.Hud, 32, 32, 0, 4, Settings.SCREEN_WIDTH / 2 + 48, Settings.SCREEN_HEIGHT / 2 - 16);
}
if (gotoGameCount > 0)
{
if (gotoGameCount < 16)
{
graphics.FillScreen(255, 255, 255, 16 * gotoGameCount);
}
else
{
graphics.FillScreen(255, 255, 255, 255);
}
}
}
示例2: Draw
public virtual void Draw(GraphicsDevice graphics)
{
DrawBackground(graphics);
backgroundParticles.Draw(graphics);
DrawMap(graphics);
if (door != null)
{
door.Draw(graphics);
}
// particles.Draw(graphics);
enemies.Draw(graphics);
if (player != null)
{
player.Draw(graphics);
}
items.Draw(graphics);
particles.Draw(graphics);
playerBullets.Draw(graphics);
enemyBullets.Draw(graphics);
if (door != null)
{
door.Draw2(graphics);
}
DrawSomething(graphics);
if (flash > 0)
{
graphics.FillScreen(255, 255, 255, flash);
}
if (player != null)
{
if (player.DamageCount > 0)
{
graphics.FillScreen(255, 0, 0, player.DamageCount / 2);
}
if (numTicks < 16)
{
graphics.FillScreen(255, 255, 255, 255 - numTicks * 16);
}
if (cleared)
{
if (clearTimer < 16)
{
graphics.FillScreen(255, 255, 255, clearTimer * 16);
}
else
{
graphics.FillScreen(255, 255, 255, 255);
}
}
DrawHud(graphics);
if (gameover)
{
if (gameoverTimer < 256)
{
if (gameoverTimer > 240)
{
graphics.FillScreen(0, 0, 0, (gameoverTimer - 240) * 16);
}
}
else
{
graphics.FillScreen(0, 0, 0, 255);
}
}
}
}
示例3: Draw
public void Draw(GraphicsDevice graphics)
{
if (numTicks < 128)
{
int color = 255 - 2 * numTicks;
graphics.FillScreen(color, color, color, 255);
}
else
{
graphics.FillScreen(0, 0, 0, 255);
}
DrawMessage(4 * 60, 16 * 60, 0, graphics, Message.ChaoslugStaff);
DrawMessage(16 * 60, 24 * 60, 0, graphics, Message.ProjectLeader, Message.Macoto);
DrawMessage(24 * 60, 32 * 60, 0, graphics, Message.Program, Message.Sinshu);
DrawMessage(32 * 60, 40 * 60, 0, graphics, Message.Music, Message.Yutaka, Message.Yousuke, Message.Sinshu);
DrawMessage(40 * 60, 48 * 60, 0, graphics, Message.Graphics, Message.Macoto, Message.Sinshu, Message.Iori);
DrawMessage(48 * 60, 56 * 60, 0, graphics, Message.StageConstruction, Message.Crimson, Message.Zhon, Message.Tetsu, Message.Sinshu);
DrawMessage(56 * 60, 64 * 60, 0, graphics, Message.Voice, Message.Zhon);
DrawMessage(64 * 60, 72 * 60, 0, graphics, Message.SpecialThanks, Message.MiswMember);
DrawMessage(72 * 60, 88 * 60, -128, graphics, Message.ThankYouForPlaying);
DrawPenguin(72 * 60, 88 * 60, 32, graphics);
if (forceExit)
{
if (forceExitCount < 16)
{
graphics.FillScreen(0, 0, 0, 16 * forceExitCount);
}
else
{
graphics.FillScreen(0, 0, 0, 255);
}
}
}
示例4: Draw
public void Draw(GraphicsDevice graphics)
{
game.Draw(graphics);
if (numTicks < 16)
{
graphics.FillScreen(0, 0, 0, 255 - numTicks * 16);
}
if (numTicks == 165)
{
graphics.FillScreen(255, 255, 255, 255);
}
if (numTicks > 180)
{
for (int i = 0; i < 3; i++)
{
graphics.DrawImageAdd(GameImage.Message, 256, 32, i, 0, (Settings.SCREEN_WIDTH - 256) / 2, Settings.SCREEN_HEIGHT / 2 + 112 + 32 * i, (i <= 1 || !arcadeMode) ? 255 : 32);
}
graphics.DrawImage(GameImage.Hud, 32, 32, 0, 4, (Settings.SCREEN_WIDTH - 256) / 2 - 32 + 48, Settings.SCREEN_HEIGHT / 2 + 112 + currentSelectIndex * 32);
graphics.DrawImage(GameImage.Hud, 32, 32, 0, 0, (Settings.SCREEN_WIDTH - 256) / 2 + 256 - 48, Settings.SCREEN_HEIGHT / 2 + 112 + currentSelectIndex * 32);
}
if (gotoGameCount > 0)
{
if (gotoGameCount < 16)
{
graphics.FillScreen(255, 255, 255, 16 * gotoGameCount);
}
else
{
graphics.FillScreen(255, 255, 255, 255);
}
}
if (exitCount > 0)
{
if (exitCount < 16)
{
graphics.FillScreen(0, 0, 0, 16 * exitCount);
}
else
{
graphics.FillScreen(0, 0, 0, 255);
}
}
}