Added sound effects and music.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using AlienAttack.MonoGame.View;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Content;
|
||||
using System;
|
||||
|
||||
namespace AlienAttack.MonoGame.Things;
|
||||
@@ -10,6 +11,7 @@ public class SpriteUpdateContext(AlienAttackGame game)
|
||||
public required Action<Sprite> SpawnSprite { get; init; }
|
||||
public required Random Random { get; init; }
|
||||
public required GameTime GameTime { get; init; }
|
||||
public required ContentManager Content { get; init; }
|
||||
}
|
||||
|
||||
public class SpriteCollisionContext(AlienAttackGame game)
|
||||
@@ -17,4 +19,6 @@ public class SpriteCollisionContext(AlienAttackGame game)
|
||||
public ViewTransform ViewTransform => game.ViewTransform;
|
||||
public required Sprite Sprite { get; init; }
|
||||
public required Action<Sprite> SpawnSprite { get; init; }
|
||||
public required Random Random { get; init; }
|
||||
public required ContentManager Content { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user