mirror of
https://github.com/TheRavenwoodArts/LunaLightXMG.git
synced 2026-07-30 22:55:03 -07:00
Implemented scren shake in the Camera2D class
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
|
||||
namespace LunaLightXMG
|
||||
{
|
||||
public class Utilities
|
||||
{
|
||||
private Random random;
|
||||
|
||||
public Utilities(int seed = 42)
|
||||
{
|
||||
random = new Random(seed);
|
||||
}
|
||||
|
||||
public float ChooseFromRange(float num1, float num2)
|
||||
{
|
||||
return (float)(num1 + (num2 - num1) * random.NextDouble());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user