Added configurable weapons.

This commit is contained in:
2026-01-03 21:49:27 -05:00
parent 79fd63c3ce
commit e8e31bb143
37 changed files with 332 additions and 88 deletions

View File

@@ -0,0 +1,43 @@
using AlienAttack.MonoGame.Things.Muzzles;
using Microsoft.Xna.Framework;
namespace AlienAttack.MonoGame.Things.Weapons;
public static class ShotPatterns
{
public static readonly ShotPattern Single = new()
{
Shots =
[
new Shot2(MuzzleId.Center, new Vector2(0, -6), new Vector2(4, 0))
]
};
public static readonly ShotPattern Double = new()
{
Shots =
[
new Shot2(MuzzleId.Left, new Vector2(0, -6), new Vector2(4, 0)),
new Shot2(MuzzleId.Right, new Vector2(0, -6), new Vector2(4, 0))
]
};
public static readonly ShotPattern DoubleSpread = new()
{
Shots =
[
new Shot2(MuzzleId.Left, new Vector2(-1, -6), new Vector2(4, 0)),
new Shot2(MuzzleId.Right, new Vector2(1, -6), new Vector2(4, 0))
]
};
public static readonly ShotPattern TripleSpread = new()
{
Shots =
[
new Shot2(MuzzleId.Left, new Vector2(-1, -6), new Vector2(4, 0)),
new Shot2(MuzzleId.Center, new Vector2(0, -6), new Vector2(4, 0)),
new Shot2(MuzzleId.Right, new Vector2(1, -6), new Vector2(4, 0))
]
};
}