public void Draw(OutPuts.Renderer renderer, string tex) { if (time < 192) { alpha = time / 192f; } else { alpha = 1f; } /*if(time > 808) * { * scale = (endTime - time) / 192f; * } * else * { * scale = 1f; * }*/ var v = new Vector2(position.X - drawRadius * scale, position.Y - drawRadius * scale); var r = new Rectangle((int)(position.X), (int)(position.Y), (int)(64f * scale), (int)(64f * scale)); if (state == State.DIVERGENCE) { } renderer.DrawTexture(tex, v, scale, Color.White * alpha); //renderer.DrawTexture(tex, v, alpha); }
private void DrawBack(OutPuts.Renderer renderer) { var v = new Vector2(BattleWindow.Left, BattleWindow.Up); renderer.DrawTexture("ie", new Vector2(BattleWindow.Left, BattleWindow.Up - 860f + time / 16 % 860f)); renderer.DrawTexture("ie", new Vector2(BattleWindow.Left, BattleWindow.Up + time / 16 % 860f)); renderer.DrawTexture("smog", new Vector2(BattleWindow.Left, BattleWindow.Up + 860f - time / 8 % 860f)); renderer.DrawTexture("smog", new Vector2(BattleWindow.Left, BattleWindow.Up - time / 8 % 860f)); }
public override void Draw(OutPuts.Renderer renderer) { DrawBack(renderer); player.Draw(renderer); enemies.ForEach(e => e.Draw(renderer)); enemyBullets.ForEach(eb => eb.Draw(renderer)); items.ForEach(i => i.Draw(renderer)); effectSystems.ForEach(es => es.Draw(renderer)); DrawFrame(renderer); player.DrawParam(renderer); }
public override void Draw(OutPuts.Renderer renderer) { bullets.ForEach(b => b.Draw(renderer)); Color color = Color.White; drawRect.X = time / 200 % 3 * 64; if (invincible && (state == State.MOVE || state == State.REBIRTH) && time % 160 < 80) { color = Color.Blue; } renderer.DrawTexture("player", new Vector2(position.X - drawRadius, position.Y - drawRadius), drawRect, color); }
public void DrawParam(OutPuts.Renderer renderer) { var drawP = BattleMain.BattleWindow.DrawParam; var dPRight = new Vector2(drawP.X + 100f, drawP.Y); renderer.DrawFont("k8x12L", "SCORE", drawP); renderer.DrawFont("k8x12L", score.ToString(), dPRight); drawP.Y += 50f; dPRight.Y += 50f; var r = new Rectangle(96, 64, 32, 32); renderer.DrawFont("k8x12L", "LIFE", drawP); for (int i = 0; i < life; i++) { renderer.DrawTexture("32tex", new Vector2(dPRight.X + i * 36f, dPRight.Y), r, Color.White); } drawP.Y += 50f; dPRight.Y += 50f; r.X -= 32; renderer.DrawFont("k8x12L", "MAGIC", drawP); for (int i = 0; i < bomb; i++) { renderer.DrawTexture("32tex", new Vector2(dPRight.X + i * 36f, dPRight.Y), r, Color.White); } drawP.Y += 50f; dPRight.Y += 50f; renderer.DrawFont("k8x12L", "POWER", drawP); renderer.DrawFont("k8x12L", power.ToString(), dPRight); if (state == State.PICHUN) { renderer.DrawTexture("HitRed", new Vector2(BattleMain.BattleWindow.Left, BattleMain.BattleWindow.Up)); } }
abstract public void Draw(OutPuts.Renderer renderer);
public override void Draw(OutPuts.Renderer renderer) { renderer.DrawTexture("e1", new Vector2(position.X - radius, position.Y - radius)); }
private void DrawFrame(OutPuts.Renderer renderer) { renderer.DrawTexture("TestBattleFrame", Vector2.Zero); }
public void Draw(OutPuts.Renderer renderer) { // renderer.DrawTexture(position); renderer.DrawTexture("32tex", new Vector2(position.X - radius, position.Y - radius), drawRect, Color.White); }
public override void Draw(OutPuts.Renderer renderer) { particles.ForEach(p => p.Draw(renderer, "maho2")); }