private void drawObjects(CanvasRenderingContext2D canvas, Point localPoint)
{
List<LevelObjectInfo> levelObjectInfos = SonicLevel.Objects;
foreach (LevelObjectInfo o in levelObjectInfos)
{
localPoint.X = Script.Reinterpret<int>(o.X);
localPoint.Y = Script.Reinterpret<int>(o.Y);
if (o.Dead || BigWindowLocation.Intersects(localPoint))
{
o.Draw(canvas,
((localPoint.X - WindowLocation.X)),
((localPoint.Y - WindowLocation.Y)),
ShowHeightMap);
}
}
}