public override void Render() { var tex = new Texture(Draw.Width, Draw.Height); Draw.BeginTexture(tex); world.Render(); Draw.EndTexture(); Draw.Save(); Draw.Scale(2); Draw.Align(0.5, 0.5); //Draw.Color(0.5, 0.5, 0.5); tex.Render(); Draw.Color(1, 1, 1, 0.5); Draw.Quad(); Draw.Load(); base.Render(); Draw.Save(); new Camera(10).Apply(); buttons.Render(); Draw.Translate(new Vec2(0, 2) + Vec2.Rotate(Vec2.OrtX, App.Time) / 10); Draw.Scale(8, 1.5); Draw.Align(0.5, 0); logo.Render(); Draw.Load(); }
public override void Render() { base.Render(); Draw.Clear(Color.Black); world.Render(); Draw.Save(); new Camera(10).Apply(); RenderScore(); RenderHealth(); Draw.Load(); if (!world.player.Alive) { new Camera(12).Apply(); Draw.Save(); Draw.Scale(1); Draw.Translate(new Vec2(-5, 0)); Draw.Align(0.5, 0.5); font.Render("YOUR PENIS FELL OFF"); Draw.Load(); } }