Added more sound effeects. Added audio manager.

This commit is contained in:
2025-12-28 21:23:23 -05:00
parent 874c263910
commit c4a98ce03d
32 changed files with 550 additions and 37 deletions

View File

@@ -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);
}