rider commit
This commit is contained in:
13
.idea/.idea.GameOfLife/.idea/.gitignore
generated
vendored
Normal file
13
.idea/.idea.GameOfLife/.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Rider ignored files
|
||||||
|
/modules.xml
|
||||||
|
/contentModel.xml
|
||||||
|
/.idea.GameOfLife.iml
|
||||||
|
/projectSettingsUpdater.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
||||||
@@ -35,8 +35,8 @@ namespace GameOfLife3D
|
|||||||
protected override void Initialize()
|
protected override void Initialize()
|
||||||
{
|
{
|
||||||
// TODO: Add your initialization logic here
|
// TODO: Add your initialization logic here
|
||||||
_gameOfLife = new(64);
|
_gameOfLife = new(20);
|
||||||
_gameOfLife.Map.SetRandom(8);
|
_gameOfLife.Map.SetRandom(3);
|
||||||
model = Content.Load<Model>("Models/Cube");
|
model = Content.Load<Model>("Models/Cube");
|
||||||
|
|
||||||
CameraTarget = new(0f,0f,0f);
|
CameraTarget = new(0f,0f,0f);
|
||||||
@@ -111,7 +111,7 @@ namespace GameOfLife3D
|
|||||||
|
|
||||||
if (Keyboard.GetState().IsKeyDown(Keys.R))
|
if (Keyboard.GetState().IsKeyDown(Keys.R))
|
||||||
{
|
{
|
||||||
_gameOfLife.Map.SetRandom(8);
|
_gameOfLife.Map.SetRandom(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -164,6 +164,7 @@ namespace GameOfLife3D
|
|||||||
{
|
{
|
||||||
|
|
||||||
effect.EnableDefaultLighting();
|
effect.EnableDefaultLighting();
|
||||||
|
|
||||||
effect.AmbientLightColor = cell.isAlive ? Color.AliceBlue.ToVector3() : Color.Green.ToVector3();
|
effect.AmbientLightColor = cell.isAlive ? Color.AliceBlue.ToVector3() : Color.Green.ToVector3();
|
||||||
effect.View = ViewMatrix;
|
effect.View = ViewMatrix;
|
||||||
effect.World = Matrix.CreateTranslation(cell.X*2.1f, cell.Y*2.1f, cell.Z * 2.1f);
|
effect.World = Matrix.CreateTranslation(cell.X*2.1f, cell.Y*2.1f, cell.Z * 2.1f);
|
||||||
|
|||||||
Reference in New Issue
Block a user