41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
using RhythmBullet.Zer01HD.Game.Screens.Transitions;
|
|
using RhythmBullet.Zer01HD.UI;
|
|
using RhythmBullet.Zer01HD.Utilities.ContentSystem;
|
|
using RhythmBullet.Zer01HD.Utilities.UI;
|
|
using RhythmBullet.Zer01HD.Utilities.UI.ScreenSystem;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace RhythmBullet.Zer01HD.Game.Screens
|
|
{
|
|
class MainScreen : Screen
|
|
{
|
|
Texture2D background;
|
|
|
|
public MainScreen(GraphicsDevice graphicsDevice, ContentSystem assets) : base(true)
|
|
{
|
|
FadeAwayTransition fadeAwayTransition = new FadeAwayTransition();
|
|
Transitions.Add(fadeAwayTransition);
|
|
graphicsDevice.Clear(Color.White);
|
|
background = assets.Get<Texture2D>("backgrounds/mainBG");
|
|
}
|
|
|
|
public override void Show()
|
|
{
|
|
base.Show();
|
|
}
|
|
|
|
public override void Draw(SpriteBatch spriteBatch)
|
|
{
|
|
spriteBatch.Draw(background, ScreenSize, Color.White);
|
|
base.Draw(spriteBatch);
|
|
}
|
|
}
|
|
}
|