Added sound effects and music.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user