Added support for multiplayer HUDs.

This commit is contained in:
JoshuaNavarro 2019-07-21 19:12:03 -07:00
parent 76737c3c7e
commit 0a2c1ee11b
1 changed files with 17 additions and 1 deletions

View File

@ -142,7 +142,23 @@ namespace Revitalize.Framework.Minigame.SeasideScrambleMinigame
this.gun=new SSCGuns.SSCGun(new StardustCore.Animations.AnimatedSprite("MyFirstGun",this.position,new AnimationManager(SeasideScramble.self.textureUtils.getExtendedTexture("Guns","BasicGun"),new Animation(0,0,16,16)),Color.White), SeasideScramble.self.projectiles.getDefaultProjectile(this, this.position, Vector2.Zero, 1f, new Rectangle(0, 0, 16, 16), Color.White, 4f, 300),10,1000,3000);
this.hitBox = new Rectangle((int)this.position.X, (int)this.position.Y, 64, 64);
this.HUD = new SSCMenus.HUD.CharacterHUD(100, 20, 100, 100, this.playerID);
if (this.playerID == SSCEnums.PlayerID.One)
{
this.HUD = new SSCMenus.HUD.CharacterHUD(100, 20, 100, 100, this.playerID);
}
if (this.playerID == SSCEnums.PlayerID.Two)
{
this.HUD = new SSCMenus.HUD.CharacterHUD(340, 20, 100, 100, this.playerID);
}
if (this.playerID == SSCEnums.PlayerID.Three)
{
this.HUD = new SSCMenus.HUD.CharacterHUD(580, 20, 100, 100, this.playerID);
}
if (this.playerID == SSCEnums.PlayerID.Four)
{
this.HUD = new SSCMenus.HUD.CharacterHUD(820, 20, 100, 100, this.playerID);
}
this.maxHealth = 100;
this.currentHealth = 100;