nightCommit
This commit is contained in:
parent
5f36ee7b79
commit
f26c88ffdc
2 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,6 @@ namespace DangerousD.GameCore.GUI
|
||||||
{
|
{
|
||||||
public class HUD : AbstractGui
|
public class HUD : AbstractGui
|
||||||
{
|
{
|
||||||
int ammout = 0;
|
|
||||||
List<Rect> rects = new List<Rect> { };
|
List<Rect> rects = new List<Rect> { };
|
||||||
int wigth = AppManager.Instance.inGameResolution.X;
|
int wigth = AppManager.Instance.inGameResolution.X;
|
||||||
int height = AppManager.Instance.inGameResolution.Y;
|
int height = AppManager.Instance.inGameResolution.Y;
|
||||||
|
@ -27,9 +26,8 @@ namespace DangerousD.GameCore.GUI
|
||||||
}
|
}
|
||||||
public override void Update(GameTime gameTime)
|
public override void Update(GameTime gameTime)
|
||||||
{
|
{
|
||||||
|
|
||||||
rects.Clear();
|
rects.Clear();
|
||||||
for (int i = 0; i < ammout; i++)
|
for (int i = 0; i < AppManager.Instance.GameManager.GetPlayer1.Bullets; i++)
|
||||||
{
|
{
|
||||||
rects.Add(new Rect(Manager) { rectangle = new Rectangle(wigth / 29 + i * 13, height / 17, 5, 20), mainColor = Color.Yellow });
|
rects.Add(new Rect(Manager) { rectangle = new Rectangle(wigth / 29 + i * 13, height / 17, 5, 20), mainColor = Color.Yellow });
|
||||||
rects[i].LoadTexture(AppManager.Instance.Content);
|
rects[i].LoadTexture(AppManager.Instance.Content);
|
||||||
|
|
|
@ -30,6 +30,8 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities
|
||||||
public GameObject objectAttack;
|
public GameObject objectAttack;
|
||||||
private int bullets;
|
private int bullets;
|
||||||
|
|
||||||
|
public int Bullets { get { return bullets; } }
|
||||||
|
|
||||||
public Player(Vector2 position) : base(position)
|
public Player(Vector2 position) : base(position)
|
||||||
{
|
{
|
||||||
Width = 16;
|
Width = 16;
|
||||||
|
|
Loading…
Add table
Reference in a new issue