Implemented scren shake in the Camera2D class

This commit is contained in:
jme9
2025-03-19 18:59:13 -07:00
parent 0e60bb4207
commit 1c5f4b1b12
4 changed files with 102 additions and 23 deletions
+19
View File
@@ -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());
}
}
}