|
@ -78,15 +78,22 @@ namespace SemiColinGames { |
|
|
if (input[0].Attack && !input[1].Attack) { |
|
|
if (input[0].Attack && !input[1].Attack) { |
|
|
Vector2 shotOffset = new Vector2(12, 2); |
|
|
Vector2 shotOffset = new Vector2(12, 2); |
|
|
Vector2 shotPosition = Vector2.Add(Player.Position, shotOffset); |
|
|
Vector2 shotPosition = Vector2.Add(Player.Position, shotOffset); |
|
|
Shots.Add(new Shot(shotPosition, new Vector2(300, 40))); |
|
|
|
|
|
Shots.Add(new Shot(shotPosition, new Vector2(300, 20))); |
|
|
|
|
|
Shots.Add(new Shot(shotPosition, new Vector2(300, 0))); |
|
|
|
|
|
Shots.Add(new Shot(shotPosition, new Vector2(300, -20))); |
|
|
|
|
|
|
|
|
Shots.Add(new Shot(shotPosition, new Vector2(300, -50))); |
|
|
Shots.Add(new Shot(shotPosition, new Vector2(300, -40))); |
|
|
Shots.Add(new Shot(shotPosition, new Vector2(300, -40))); |
|
|
new Shot(shotPosition, Vector2.Zero); |
|
|
|
|
|
|
|
|
Shots.Add(new Shot(shotPosition, new Vector2(300, -30))); |
|
|
|
|
|
Shots.Add(new Shot(shotPosition, new Vector2(300, -20))); |
|
|
|
|
|
Shots.Add(new Shot(shotPosition, new Vector2(300, -10))); |
|
|
|
|
|
Shots.Add(new Shot(shotPosition, new Vector2(300, 0))); |
|
|
|
|
|
Shots.Add(new Shot(shotPosition, new Vector2(300, 10))); |
|
|
|
|
|
Shots.Add(new Shot(shotPosition, new Vector2(300, 20))); |
|
|
|
|
|
Shots.Add(new Shot(shotPosition, new Vector2(300, 30))); |
|
|
|
|
|
Shots.Add(new Shot(shotPosition, new Vector2(300, 40))); |
|
|
|
|
|
Shots.Add(new Shot(shotPosition, new Vector2(300, 50))); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Shots.RemoveAll(shot => !Bounds.Intersects(shot.Bounds)); |
|
|
Shots.RemoveAll(shot => !Bounds.Intersects(shot.Bounds)); |
|
|
|
|
|
|
|
|
|
|
|
Debug.AddToast("shots: " + Shots.Count); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |