Added sound effects and music.

This commit is contained in:
2025-12-22 21:55:46 -05:00
parent 42608a16e3
commit 874c263910
36 changed files with 566 additions and 76 deletions

View File

@@ -12,11 +12,11 @@ internal abstract class GameLoopBase(AlienAttackGame game) : IGameLoop
protected readonly SpriteBatch SpriteBatch = game.SpriteBatch;
protected readonly ViewTransform ViewTransform = game.ViewTransform;
public void Draw()
public void Draw(GameTime gameTime)
{
SpriteBatch.Begin(transformMatrix: ViewTransform.ViewMatrix);
OnDraw();
OnDraw(gameTime);
SpriteBatch.End();
}
@@ -26,6 +26,6 @@ internal abstract class GameLoopBase(AlienAttackGame game) : IGameLoop
OnUpdate(gameTime);
}
public abstract void OnDraw();
public abstract void OnDraw(GameTime gameTime);
public abstract void OnUpdate(GameTime gameTime);
}