Added more sound effeects. Added audio manager.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using AlienAttack.MonoGame.View;
|
||||
using AlienAttack.MonoGame.Audio;
|
||||
using AlienAttack.MonoGame.View;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Content;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
@@ -11,6 +12,7 @@ internal abstract class GameLoopBase(AlienAttackGame game) : IGameLoop
|
||||
protected readonly ContentManager Content = game.Content;
|
||||
protected readonly SpriteBatch SpriteBatch = game.SpriteBatch;
|
||||
protected readonly ViewTransform ViewTransform = game.ViewTransform;
|
||||
protected readonly AudioManager Audio = game.Audio;
|
||||
|
||||
public void Draw(GameTime gameTime)
|
||||
{
|
||||
@@ -23,6 +25,7 @@ internal abstract class GameLoopBase(AlienAttackGame game) : IGameLoop
|
||||
|
||||
public void Update(GameTime gameTime)
|
||||
{
|
||||
Audio.UpdateWithDuck(gameTime);
|
||||
OnUpdate(gameTime);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user