book and page now use the new camera system; added functionality to camera; progress on mainscreen;

This commit is contained in:
2018-11-12 00:33:40 -06:00
parent a2defc5d11
commit 0f10ce3a07
5 changed files with 62 additions and 16 deletions

View File

@@ -11,6 +11,7 @@ using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RhythmBullet.Zer01HD.UI.Book;
namespace RhythmBullet.Zer01HD.Game.Screens
{
@@ -18,11 +19,12 @@ namespace RhythmBullet.Zer01HD.Game.Screens
{
FadeAwayTransition fat;
Texture2D background;
Book book;
public MainScreen(ContentSystem assets) : base(true)
{
background = assets.Get<Texture2D>("backgrounds/mainBG");
fat = new FadeAwayTransition(1.25f);
book = new Book(Camera);
}
public override void Show()
@@ -33,8 +35,15 @@ namespace RhythmBullet.Zer01HD.Game.Screens
public override void Draw(SpriteBatch spriteBatch)
{
book.Draw(spriteBatch);
spriteBatch.Draw(background, ScreenSize, Color.White);
base.Draw(spriteBatch);
}
public override void Update(GameTime gameTime)
{
book.Update(gameTime);
base.Update(gameTime);
}
}
}