Ejemplo n.º 1
0
 public override void Render()
 {
     RenderState.Push();
     RenderState.Color = player.Color;
     RenderState.Translate(player.Position - player.Size);
     RenderState.Scale(Vec2.CompMult(player.Size, new Vec2(1.5, 1)) * 2);
     if (player.Dir == -1)
     {
         RenderState.SetOrts(-Vec2.OrtX, Vec2.OrtY, new Vec2(1, 0));
     }
     tex.Render();
     RenderState.Pop();
 }