Loading screen base set up.

This commit is contained in:
2018-09-15 14:05:14 -05:00
parent 3779f220ff
commit 7735445888
16 changed files with 99 additions and 57 deletions

View File

@@ -0,0 +1,27 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using RhythmBullet.Zer01HD.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RhythmBullet.Zer01HD.Game
{
class LoadingScreen : Screen
{
Texture2D recrown;
public LoadingScreen(Texture2D recrown)
{
this.recrown = recrown;
}
public override void Draw(SpriteBatch spriteBatch)
{
spriteBatch.Draw(recrown, recrown.Bounds, Color.White);
base.Draw(spriteBatch);
}
}
}

View File

@@ -0,0 +1,20 @@
using Microsoft.Xna.Framework.Graphics;
using RhythmBullet.Zer01HD.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RhythmBullet.Zer01HD.Game.MainScreen
{
class MainScreen : Screen
{
Viewport viewport = new Viewport();
public MainScreen()
{
}
}
}

View File

@@ -21,16 +21,16 @@ namespace RhythmBullet.Zer01HD.UI.Book
public virtual void ApplySize(int width, int height)
{
X = pageX * width;
Y = pageY * height;
Position.X = pageX * width;
Position.Y = pageY * height;
this.Width = width;
this.Height = height;
}
public void DisplayWithViewport(Viewport viewport)
{
viewport.X = X;
viewport.Y = Y;
viewport.X = (int) Position.X;
viewport.Y = (int) Position.Y;
}
}
}