Functional level generation + moving the submarine
This commit is contained in:
@@ -32,8 +32,8 @@ namespace Subsurface
|
||||
for (int i = 0; i < amount; i++)
|
||||
{
|
||||
Vector2 position = (randomWayPoint == null) ? Vector2.Zero : randomWayPoint.SimPosition;
|
||||
position.X += ToolBox.RandomFloat(-0.5f,0.5f);
|
||||
position.Y += ToolBox.RandomFloat(-0.5f,0.5f);
|
||||
position.X += ToolBox.RandomFloatLocal(-0.5f,0.5f);
|
||||
position.Y += ToolBox.RandomFloatLocal(-0.5f,0.5f);
|
||||
monsters[i] = new Character(characterFile, position);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user