began working on main page; furthered UI structure

This commit is contained in:
Harrison Deng 2018-09-11 13:22:15 -05:00
parent bce143efbb
commit 073f3a205d
4 changed files with 24 additions and 6 deletions

View File

@ -0,0 +1,17 @@
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 MainPage : Page
{
public MainPage(int pageX, int pageY) : base(pageX, pageY)
{
}
}
}

View File

@ -10,10 +10,11 @@ namespace RhythmBullet.Zer01HD.UI
{ {
class Page class Page
{ {
private int x, y; private readonly int pageX, pageY;
public Page() public Page(int pageX, int pageY)
{ {
this.pageX = pageX;
this.pageY = pageY;
} }
public void Update(GameTime gameTime) public void Update(GameTime gameTime)

View File

@ -16,7 +16,7 @@ namespace RhythmBullet.Zer01HD.UI
{ {
foreach (Page page in pages) foreach (Page page in pages)
{ {
page.act(gameTime); page.Update(gameTime);
} }
} }
@ -24,7 +24,7 @@ namespace RhythmBullet.Zer01HD.UI
{ {
foreach (Page page in pages) foreach (Page page in pages)
{ {
page.draw(spriteBatch); page.Draw(spriteBatch);
} }
} }
} }

View File

@ -12,7 +12,7 @@ namespace RhythmBullet.Zer01HD.UI.Screen
{ {
public void Update(GameTime gameTime) public void Update(GameTime gameTime)
{ {
} }
public void Draw(SpriteBatch spriteBatch) public void Draw(SpriteBatch spriteBatch)