Integrating the functioning camera and rectangle renderer.
This commit is contained in:
@@ -16,10 +16,9 @@ namespace RhythmBullet.Screens.MainMenu
|
||||
TextButton playButton;
|
||||
TextButton quitButton;
|
||||
|
||||
PrimitiveBatch primitiveBatch = new PrimitiveBatch();
|
||||
|
||||
internal MainPage() : base(0, 0)
|
||||
{
|
||||
Debugging = true;
|
||||
}
|
||||
|
||||
protected override void Initialize(ContentManagerController assets, ISkin skin)
|
||||
@@ -39,9 +38,6 @@ namespace RhythmBullet.Screens.MainMenu
|
||||
public override void ApplySize(int width, int height)
|
||||
{
|
||||
title.Scale = (width - 40) / title.Texture.Width;
|
||||
title.CenterOrigin();
|
||||
title.bounds.X = (int)(width / 2f);
|
||||
title.bounds.Y = (int)(height / 2f);
|
||||
|
||||
base.ApplySize(width, height);
|
||||
}
|
||||
@@ -49,10 +45,6 @@ namespace RhythmBullet.Screens.MainMenu
|
||||
public override void Draw(SpriteBatch batch)
|
||||
{
|
||||
base.Draw(batch);
|
||||
primitiveBatch.Begin(PrimitiveType.LineList);
|
||||
primitiveBatch.AddVertex(new Vector2(20, 20), Color.Red);
|
||||
primitiveBatch.AddVertex(new Vector2(50, 60), Color.Red);
|
||||
primitiveBatch.End();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user