public void Draw(MafiaVideo video) { video.FillScreen(Color.FromArgb(128, Color.Black)); video.DrawStringCenter("�X�e�[�W������ł�������", 1, -63, Color.Black); video.DrawStringCenter("�X�e�[�W������ł�������", 0, -64, Color.White); if (stageIndex != 0) { video.Draw(176, 160, 8, 16, 0, 0, Mafia.SCREEN_WIDTH / 2 - 24, Mafia.SCREEN_HEIGHT / 2 - 8); } if (stageIndex != stages.Length - 1) { video.Draw(176, 160, 8, 16, 0, 1, Mafia.SCREEN_WIDTH / 2 + 16, Mafia.SCREEN_HEIGHT / 2 - 8); } DrawStageNumber(video); video.DrawStringCenter(stages[stageIndex].Title, 1, 25, Color.Black); video.DrawStringCenter(stages[stageIndex].Title, 0, 24, Color.White); }
public void Draw(MafiaVideo video) { video.FillScreen(Color.FromArgb(128, Color.Black)); video.DrawStringCenter("ステージをえらんでください", 1, -63, Color.Black); video.DrawStringCenter("ステージをえらんでください", 0, -64, Color.White); if (stageIndex != 0) { video.Draw(176, 160, 8, 16, 0, 0, Mafia.SCREEN_WIDTH / 2 - 24, Mafia.SCREEN_HEIGHT / 2 - 8); } if (stageIndex != stages.Length - 1) { video.Draw(176, 160, 8, 16, 0, 1, Mafia.SCREEN_WIDTH / 2 + 16, Mafia.SCREEN_HEIGHT / 2 - 8); } DrawStageNumber(video); video.DrawStringCenter(stages[stageIndex].Title, 1, 25, Color.Black); video.DrawStringCenter(stages[stageIndex].Title, 0, 24, Color.White); }
public void Draw(MafiaVideo video) { map.Draw(video, (IntVector)camera); things.Draw(video, (IntVector)camera); if (!player.Missed) { if (currentNumCoins == 0) { // video.Draw(0, 320, 128, 64, 0, 0, Mafia.SCREEN_WIDTH / 2 - 64, Mafia.SCREEN_HEIGHT / 2 - 32); double waveWidth = 0; if (clearTimer < 60) { waveWidth = (60 - clearTimer) / 2; } for (int i = 0; i < 64; i++) { double x = Mafia.SCREEN_WIDTH / 2 - 64 + waveWidth * Math.Cos(Math.PI * i / 16.0 + Math.PI * clearTimer / 12.0 + Math.PI) + 2; int y = Mafia.SCREEN_HEIGHT / 2 - 32; video.DrawColor(0, 320, 128, 1, i, 0, (int)Math.Round(x), y + i + 2, Color.FromArgb(128, Color.Black)); } for (int i = 0; i < 64; i++) { double x = Mafia.SCREEN_WIDTH / 2 - 64 + waveWidth * Math.Cos(Math.PI * i / 16.0 + Math.PI * clearTimer / 12.0); int y = Mafia.SCREEN_HEIGHT / 2 - 32; video.Draw(0, 320, 128, 1, i, 0, (int)Math.Round(x), y + i); } } else { if (gameTimer < 300) { video.DrawStringCenter(title, 1, 1, Color.Black); video.DrawStringCenter(title, 0, 0, Color.White); } else { video.DrawString(title, 9, 9, Color.Black); video.DrawString(title, 8, 8, Color.White); } video.Draw(0, 160, 16, 16, 0, (firstNumCoins - currentNumCoins) % 10, Mafia.SCREEN_WIDTH - 48, Mafia.SCREEN_HEIGHT - 16); video.Draw(0, 160, 16, 16, 0, 10, Mafia.SCREEN_WIDTH - 32, Mafia.SCREEN_HEIGHT - 16); video.Draw(0, 160, 16, 16, 0, firstNumCoins % 10, Mafia.SCREEN_WIDTH - 16, Mafia.SCREEN_HEIGHT - 16); } } }
public void Draw(MafiaVideo video) { map.Draw(video, (IntVector)camera); things.Draw(video, (IntVector)camera); if (!player.Missed) { if (currentNumCoins == 0) { // video.Draw(0, 320, 128, 64, 0, 0, Mafia.SCREEN_WIDTH / 2 - 64, Mafia.SCREEN_HEIGHT / 2 - 32); double waveWidth = 0; if (clearTimer < 60) { waveWidth = (60 - clearTimer) / 2; } for (int i = 0; i < 64; i++) { double x = Mafia.SCREEN_WIDTH / 2 - 64 + waveWidth * Math.Cos(Math.PI * i / 16.0 + Math.PI * clearTimer / 12.0 + Math.PI) + 2; int y = Mafia.SCREEN_HEIGHT / 2 - 32; video.DrawColor(0, 320, 128, 1, i, 0, (int)Math.Round(x), y + i + 2, Color.FromArgb(128, Color.Black)); } for (int i = 0; i < 64; i++) { double x = Mafia.SCREEN_WIDTH / 2 - 64 + waveWidth * Math.Cos(Math.PI * i / 16.0 + Math.PI * clearTimer / 12.0); int y = Mafia.SCREEN_HEIGHT / 2 - 32; video.Draw(0, 320, 128, 1, i, 0, (int)Math.Round(x), y + i); } } else { if (gameTimer < 300) { video.DrawStringCenter(title, 1, 1, Color.Black); video.DrawStringCenter(title, 0, 0, Color.White); } else { video.DrawString(title, 9, 9, Color.Black); video.DrawString(title, 8, 8, Color.White); } video.Draw(0, 160, 16, 16, 0, (firstNumCoins - currentNumCoins) % 10, Mafia.SCREEN_WIDTH - 48, Mafia.SCREEN_HEIGHT - 16); video.Draw(0, 160, 16, 16, 0, 10, Mafia.SCREEN_WIDTH - 32, Mafia.SCREEN_HEIGHT - 16); video.Draw(0, 160, 16, 16, 0, firstNumCoins % 10, Mafia.SCREEN_WIDTH - 16, Mafia.SCREEN_HEIGHT - 16); } } }