From 3a6078306ea01c63d69ca8312475cdb9a5d22acc Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 6 May 2020 17:39:01 +0200 Subject: [PATCH] Day Night Cycle --- Game1.sln | 6 + Game1/Game1.cs | 2 +- Game1/Game1.csproj | 69 +++++- Game1/Sources/Objects/DayNightCycle.cs | 43 +++- Game1/app.config | 28 +++ MigrationBackup/21c990a4/Game1/Game1.csproj | 199 ++++++++++++++++++ .../21c990a4/Game1/NuGetUpgradeLog.html | 174 +++++++++++++++ .../21c990a4/Game1/packages.config | 18 ++ 8 files changed, 531 insertions(+), 8 deletions(-) create mode 100644 Game1/app.config create mode 100644 MigrationBackup/21c990a4/Game1/Game1.csproj create mode 100644 MigrationBackup/21c990a4/Game1/NuGetUpgradeLog.html create mode 100644 MigrationBackup/21c990a4/Game1/packages.config diff --git a/Game1.sln b/Game1.sln index cc8e21a..ef74ef7 100644 --- a/Game1.sln +++ b/Game1.sln @@ -7,12 +7,18 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Game1", "Game1\Game1.csproj EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 Debug|x86 = Debug|x86 + Release|x64 = Release|x64 Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {650E4519-2DEF-496F-AC3B-3C794DC7CF0D}.Debug|x64.ActiveCfg = Debug|x64 + {650E4519-2DEF-496F-AC3B-3C794DC7CF0D}.Debug|x64.Build.0 = Debug|x64 {650E4519-2DEF-496F-AC3B-3C794DC7CF0D}.Debug|x86.ActiveCfg = Debug|x86 {650E4519-2DEF-496F-AC3B-3C794DC7CF0D}.Debug|x86.Build.0 = Debug|x86 + {650E4519-2DEF-496F-AC3B-3C794DC7CF0D}.Release|x64.ActiveCfg = Release|x64 + {650E4519-2DEF-496F-AC3B-3C794DC7CF0D}.Release|x64.Build.0 = Release|x64 {650E4519-2DEF-496F-AC3B-3C794DC7CF0D}.Release|x86.ActiveCfg = Release|x86 {650E4519-2DEF-496F-AC3B-3C794DC7CF0D}.Release|x86.Build.0 = Release|x86 EndGlobalSection diff --git a/Game1/Game1.cs b/Game1/Game1.cs index 41454a9..d881174 100644 --- a/Game1/Game1.cs +++ b/Game1/Game1.cs @@ -213,7 +213,7 @@ namespace Game1 for (int j = 0; j < input.getSize().Y; j++) { Rectangle tilePos = new Rectangle(i * (input.getSpacingTile()), j * (input.getSpacingTile()), input.getTileSize(), input.getTileSize()); - spriteBatch.Draw(tile[tractorUnit.getFarm().getCrop(i, j).getStatus()], tilePos, Color.White); + spriteBatch.Draw(tile[tractorUnit.getFarm().getCrop(i, j).getStatus()], tilePos, Time.GetTimeOfDay()); if (tilePos.Intersects(mousePosition)) { spriteBatch.Draw(tile[tractorUnit.getFarm().getCrop(i, j).getStatus()], tilePos, Color.FromNonPremultiplied(0, 0, 20, 40)); diff --git a/Game1/Game1.csproj b/Game1/Game1.csproj index fafc243..ba120d6 100644 --- a/Game1/Game1.csproj +++ b/Game1/Game1.csproj @@ -1,5 +1,5 @@  - + Debug @@ -13,10 +13,13 @@ Game1 512 Windows - v4.5 + v4.6.1 + + + - x86 + x64 true full false @@ -40,6 +43,26 @@ app.manifest + + true + bin\x64\Debug\ + DEBUG;TRACE;WINDOWS + full + x64 + prompt + MinimumRecommendedRules.ruleset + true + + + bin\x64\Release\ + TRACE;WINDOWS + true + pdbonly + x64 + prompt + MinimumRecommendedRules.ruleset + true + @@ -71,6 +94,7 @@ $(MonoGameInstallDirectory)\MonoGame\v3.0\Assemblies\Windows\MonoGame.Framework.dll + @@ -88,8 +112,47 @@ + + + + 2.3.1 + + + 1.4.0 + + + 1.4.0 + + + 1.4.0 + + + 1.4.0 + + + 12.0.3 + + + 4.7.0 + + + 1.7.0 + + + 4.5.4 + + + 4.7.0 + + + 4.7.1 + + + 4.11.0 + + + \ No newline at end of file diff --git a/MigrationBackup/21c990a4/Game1/NuGetUpgradeLog.html b/MigrationBackup/21c990a4/Game1/NuGetUpgradeLog.html new file mode 100644 index 0000000..e7157bf --- /dev/null +++ b/MigrationBackup/21c990a4/Game1/NuGetUpgradeLog.html @@ -0,0 +1,174 @@ + + + + + NuGetMigrationLog +

+ NuGet Migration Report - Game1

Overview

Migration to PackageReference was completed successfully. Please build and run your solution to verify that all packages are available.
+ If you run into any problems, have feedback, questions, or concerns, please + file an issue on the NuGet GitHub repository.
+ Changed files and this report have been backed up here: + C:\Users\Joel\source\repos\s444524\JoelForkTest\MigrationBackup\21c990a4\Game1

Packages processed

Top-level dependencies:

Package IdVersion
LightGBM + v2.3.1
Microsoft.ML + v1.4.0
Microsoft.ML.CpuMath + v1.4.0
Microsoft.ML.FastTree + v1.4.0
Microsoft.ML.LightGbm + v1.4.0
Newtonsoft.Json + v12.0.3
System.CodeDom + v4.7.0
System.Collections.Immutable + v1.7.0
System.Memory + v4.5.4
System.Reflection.Emit.Lightweight + v4.7.0
System.Runtime.CompilerServices.Unsafe + v4.7.1
System.Threading.Tasks.Dataflow + v4.11.0

Transitive dependencies:

Package IdVersion
Microsoft.ML.DataView + v1.4.0
System.Buffers + v4.5.1
System.Numerics.Vectors + v4.5.0

Package compatibility issues

Description
+ No issues were found. +
\ No newline at end of file diff --git a/MigrationBackup/21c990a4/Game1/packages.config b/MigrationBackup/21c990a4/Game1/packages.config new file mode 100644 index 0000000..3145969 --- /dev/null +++ b/MigrationBackup/21c990a4/Game1/packages.config @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file -- 2.20.1