clxs
SpawnEnemy lore (scope and what not)
One thing to look at is this line
int level = ed.Next(0, 3);
Look at the docs for how Random.Next works
https://learn.microsoft.com/en-us/dotnet/api/system.random.next?view=net-8.0#system-random-next(system-int32-system-int32)
That'll be returning a value between 0 and 2, is that what you'd expected?19 replies
❔ Enumerating Running Processes
It would be less bad if you only disposed the processes which needed it, there's not much point of a cache if the entire thing is invalidated every use.
Note, you don't really need to Dispose them. The finalizer will do that on GC. It's good to do so, but you won't leak if not
140 replies