Deleted unused code. Fixed Torso exception
This commit is contained in:
@@ -297,26 +297,6 @@ namespace _2DGAMELIB
|
|||||||
FrameTimeCounter FTC = new FrameTimeCounter();
|
FrameTimeCounter FTC = new FrameTimeCounter();
|
||||||
RealFpsCounter RFC = new RealFpsCounter();
|
RealFpsCounter RFC = new RealFpsCounter();
|
||||||
|
|
||||||
/*
|
|
||||||
Action action = delegate
|
|
||||||
{
|
|
||||||
if (FPSF.Value > 1.0)
|
|
||||||
{
|
|
||||||
Modes[mode].Draw(FPSF);
|
|
||||||
|
|
||||||
if (ShowFPS)
|
|
||||||
{
|
|
||||||
baseControl.SetTitle(UITitle + " - FPS: " + System.Math.Round(FPSF.Value, 2));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//DEBUG shows the hit lut
|
|
||||||
//GD.DrawImage(Hit, new Point(0, 0));
|
|
||||||
baseControl.SetBitmap(Display);
|
|
||||||
};
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
Action action = () =>
|
Action action = () =>
|
||||||
{
|
{
|
||||||
if (FPSF.Value > 1.0)
|
if (FPSF.Value > 1.0)
|
||||||
@@ -337,7 +317,6 @@ namespace _2DGAMELIB
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
while (Drive)
|
while (Drive)
|
||||||
{
|
{
|
||||||
FPSF.FPSFixed(action);
|
FPSF.FPSFixed(action);
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ namespace _2DGAMELIB
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
//TODO: somewhere "Torso" not translated
|
||||||
return values[Key];
|
return values[Key];
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ namespace _2DGAMELIB
|
|||||||
Setting(Unit, XRatio, YRatio, Size, DisMag, HitMag);
|
Setting(Unit, XRatio, YRatio, Size, DisMag, HitMag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public RenderArea(ModeEventDispatcher Med, bool Hit)
|
public RenderArea(ModeEventDispatcher Med, bool Hit)
|
||||||
{
|
{
|
||||||
if (Hit)
|
if (Hit)
|
||||||
@@ -59,7 +58,7 @@ namespace _2DGAMELIB
|
|||||||
displayOutputSize.Height = (int)(base.LocalHeight * Unit);
|
displayOutputSize.Height = (int)(base.LocalHeight * Unit);
|
||||||
displayBufferSize.Width = (int)(base.LocalWidth * displayUnitScale);
|
displayBufferSize.Width = (int)(base.LocalWidth * displayUnitScale);
|
||||||
displayBufferSize.Height = (int)(base.LocalHeight * displayUnitScale);
|
displayBufferSize.Height = (int)(base.LocalHeight * displayUnitScale);
|
||||||
DisplayLayer = new Bitmap((int)((double)displayOutputSize.Width * DisMag), (int)((double)displayOutputSize.Height * DisMag));
|
DisplayLayer = new Bitmap(displayBufferSize.Width, displayBufferSize.Height);
|
||||||
displayGraphics = Graphics.FromImage(DisplayLayer);
|
displayGraphics = Graphics.FromImage(DisplayLayer);
|
||||||
|
|
||||||
|
|
||||||
@@ -149,7 +148,7 @@ namespace _2DGAMELIB
|
|||||||
{
|
{
|
||||||
Vector2D p = GetPosition();
|
Vector2D p = GetPosition();
|
||||||
displayGraphics.DrawImage(DisplayLayer, (int)(p.X * unitScale), (int)(p.Y * unitScale), displayOutputSize.Width, displayOutputSize.Height);
|
displayGraphics.DrawImage(DisplayLayer, (int)(p.X * unitScale), (int)(p.Y * unitScale), displayOutputSize.Width, displayOutputSize.Height);
|
||||||
if (this.hitGraphics != null)
|
if (this.hitGraphics != null && hitGraphics != null)
|
||||||
{
|
{
|
||||||
hitGraphics.DrawImage(HitLayer, (int)(p.X * hitUnitScale), (int)(p.Y * hitUnitScale), hitBufferSize.Width, hitBufferSize.Height);
|
hitGraphics.DrawImage(HitLayer, (int)(p.X * hitUnitScale), (int)(p.Y * hitUnitScale), hitBufferSize.Width, hitBufferSize.Height);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user