book and page now use the new camera system; added functionality to camera; progress on mainscreen;
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user