-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
961 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Microsoft.Xna.Framework; | ||
|
||
namespace WzComparerR2.MapRender | ||
{ | ||
public interface IRandom | ||
{ | ||
float NextVar(float baseValue, float varRange, bool nonNegative = false); | ||
int NextVar(int baseValue, int varRange, bool nonNegative = false); | ||
Vector2 NextVar(Vector2 baseValue, Vector2 varRange); | ||
Color NextVar(Color baseValue, Color varRange); | ||
int Next(int maxValue); | ||
bool NextPercent(float percent); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Microsoft.Xna.Framework; | ||
|
||
namespace WzComparerR2.MapRender | ||
{ | ||
public class Particle | ||
{ | ||
public Vector2 Pos; | ||
public Color StartColor; | ||
public Color EndColor; | ||
public float StartSize; | ||
public float EndSize; | ||
public float StartSpin; | ||
public float EndSpin; | ||
public float Life; | ||
|
||
//gravity | ||
public Vector2 Dir; | ||
public float RadialAcc; | ||
public float TangentialAcc; | ||
|
||
//lifecycle | ||
public float Time; | ||
public float NormalizedTime; | ||
|
||
public void Reset() | ||
{ | ||
this.Pos = Vector2.Zero; | ||
this.StartColor = new Color(); | ||
this.EndColor = new Color(); | ||
this.StartSize = 0; | ||
this.EndSize = 0; | ||
this.StartSpin = 0; | ||
this.EndSpin = 0; | ||
this.Life = 0; | ||
|
||
this.Dir = Vector2.Zero; | ||
this.RadialAcc = 0; | ||
this.TangentialAcc = 0; | ||
|
||
this.Time = 0; | ||
this.NormalizedTime = 0; | ||
} | ||
} | ||
} |
Oops, something went wrong.