commit2
This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.29102.190
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpaceInvaders", "SpaceInvaders\SpaceInvaders.csproj", "{D314CB70-8EFD-4CF3-A3E2-23812018A419}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{D314CB70-8EFD-4CF3-A3E2-23812018A419}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{D314CB70-8EFD-4CF3-A3E2-23812018A419}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{D314CB70-8EFD-4CF3-A3E2-23812018A419}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{D314CB70-8EFD-4CF3-A3E2-23812018A419}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {3AA816CC-9CFF-4D31-82FA-2B69CB482366}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
@@ -0,0 +1,257 @@
|
|||||||
|
using System;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading;
|
||||||
|
using SpaceInvaders;
|
||||||
|
|
||||||
|
namespace Spicy_William
|
||||||
|
{
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
|
||||||
|
//Console.SetWindowSize(50, 30);
|
||||||
|
Menu mainMenu = new Menu();
|
||||||
|
mainMenu.Start();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//namespace Spicy_William
|
||||||
|
//{
|
||||||
|
// class Program
|
||||||
|
// {
|
||||||
|
// static int screenWidth = 40;
|
||||||
|
// static int playerX = 18;
|
||||||
|
// static int playerY = 8;
|
||||||
|
// static int enemyX = 18; // Posición horizontal del enemigo
|
||||||
|
// static int enemyY = 2; // Posición vertical del enemigo
|
||||||
|
// static bool movingRight = true; // Dirección de movimiento del enemigo
|
||||||
|
|
||||||
|
|
||||||
|
// static void Main(string[] args)
|
||||||
|
// {
|
||||||
|
|
||||||
|
|
||||||
|
// string[] menuOptions = { "1. Jouer", "2. Options ", "3. Highscore", "4. Résultats", "5. Quitter" };
|
||||||
|
// int selectedOption = 0;
|
||||||
|
|
||||||
|
// while (true)
|
||||||
|
// {
|
||||||
|
// Console.Clear();
|
||||||
|
|
||||||
|
|
||||||
|
// Console.WriteLine("----------------- ");
|
||||||
|
// Console.WriteLine("Spicy Invader II ");
|
||||||
|
// Console.WriteLine("----------------- ");
|
||||||
|
|
||||||
|
// for (int i = 0; i < menuOptions.Length; i++)
|
||||||
|
// {
|
||||||
|
// if (i == selectedOption)
|
||||||
|
// {
|
||||||
|
// Console.ForegroundColor = ConsoleColor.White;
|
||||||
|
// Console.BackgroundColor = ConsoleColor.DarkMagenta;
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// Console.ForegroundColor = ConsoleColor.Gray;
|
||||||
|
// Console.BackgroundColor = ConsoleColor.Black;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// Console.WriteLine(menuOptions[i]);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// Console.ResetColor();
|
||||||
|
|
||||||
|
// ConsoleKeyInfo keyInfo = Console.ReadKey();
|
||||||
|
// if (keyInfo.Key == ConsoleKey.UpArrow)
|
||||||
|
// {
|
||||||
|
// selectedOption = (selectedOption - 1 + menuOptions.Length) % menuOptions.Length;
|
||||||
|
// }
|
||||||
|
// else if (keyInfo.Key == ConsoleKey.DownArrow)
|
||||||
|
// {
|
||||||
|
// selectedOption = (selectedOption + 1) % menuOptions.Length;
|
||||||
|
// }
|
||||||
|
// else if (keyInfo.Key == ConsoleKey.Enter)
|
||||||
|
// {
|
||||||
|
// if (selectedOption == menuOptions.Length - 1)
|
||||||
|
// {
|
||||||
|
// break; // Sortir du boucle
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// PerformAction(selectedOption);
|
||||||
|
|
||||||
|
// Console.ReadKey();
|
||||||
|
// }
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
// /*Action de choisir chaque option du menu*/
|
||||||
|
// static void PerformAction(int option)
|
||||||
|
// {
|
||||||
|
// switch (option)
|
||||||
|
// {
|
||||||
|
// case 0:
|
||||||
|
|
||||||
|
// Console.Clear();
|
||||||
|
// SpicyInvaders();
|
||||||
|
// break;
|
||||||
|
|
||||||
|
// case 1:
|
||||||
|
// Console.Clear();
|
||||||
|
// Console.WriteLine("");
|
||||||
|
// break;
|
||||||
|
// case 2:
|
||||||
|
// Console.Clear();
|
||||||
|
// Highscore();
|
||||||
|
// break;
|
||||||
|
|
||||||
|
// case 3:
|
||||||
|
// Console.Clear();
|
||||||
|
// Console.WriteLine("");
|
||||||
|
// break;
|
||||||
|
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// static void Highscore()
|
||||||
|
// {
|
||||||
|
// //string connectionString = "Server=4d41d5b63e1b;Database=db_space_invaders;Uid=root;Pwd=root;";
|
||||||
|
|
||||||
|
// //MySqlConnection connection = new MySqlConnection(connectionString);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// /*Méthode pour l'affichage du jeu*/
|
||||||
|
// static void SpicyInvaders()
|
||||||
|
// {
|
||||||
|
// Console.WriteLine("Realizando la acción de la Opción 3");
|
||||||
|
|
||||||
|
// Console.CursorVisible = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// while (true)
|
||||||
|
// {
|
||||||
|
// if (Console.KeyAvailable)
|
||||||
|
// {
|
||||||
|
// ConsoleKeyInfo key = Console.ReadKey();
|
||||||
|
// if (key.Key == ConsoleKey.LeftArrow && playerX > 0)
|
||||||
|
// {
|
||||||
|
// playerX--;
|
||||||
|
// }
|
||||||
|
// else if (key.Key == ConsoleKey.RightArrow && playerX < Console.WindowWidth)
|
||||||
|
// {
|
||||||
|
// playerX++;
|
||||||
|
// }
|
||||||
|
// else if (key.Key == ConsoleKey.Spacebar)
|
||||||
|
// {
|
||||||
|
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// UpdateEnemyPosition();
|
||||||
|
// Thread.Sleep(15);
|
||||||
|
// DrawGame();
|
||||||
|
// Thread.Sleep(125);
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /*Mettre à jour la place de l'ennemi-s*/
|
||||||
|
// static void UpdateEnemyPosition()
|
||||||
|
// {
|
||||||
|
// // Cambiar de dirección al llegar a los bordes
|
||||||
|
// if (enemyX == Console.WindowWidth - 6)
|
||||||
|
// {
|
||||||
|
// movingRight = false;
|
||||||
|
// }
|
||||||
|
// else if (enemyX == 0)
|
||||||
|
// {
|
||||||
|
// movingRight = true;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// // Mover el enemigo
|
||||||
|
// if (movingRight)
|
||||||
|
// {
|
||||||
|
// enemyX++;
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// enemyX--;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// /*Dessiner le joueur et l'ennemi*/
|
||||||
|
// static void DrawGame()
|
||||||
|
// {
|
||||||
|
// Console.CursorVisible = false;
|
||||||
|
// Console.Clear();
|
||||||
|
|
||||||
|
// for (int y = 0; y < 12; y++)
|
||||||
|
// {
|
||||||
|
// for (int x = 0; x < Console.WindowWidth; x++)
|
||||||
|
// {
|
||||||
|
// if (y == playerY && x == playerX)
|
||||||
|
// {
|
||||||
|
// Console.Write("▲");
|
||||||
|
// }
|
||||||
|
// else if (x == enemyX && y == enemyY)
|
||||||
|
// {
|
||||||
|
// Console.Write(" ■");
|
||||||
|
// Console.Write(" ■");
|
||||||
|
// Console.Write(" ■");
|
||||||
|
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// Console.Write(" ");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// }
|
||||||
|
//}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="MySql.Data" Version="8.1.0" />
|
||||||
|
<PackageReference Include="System.Data.SqlClient" Version="4.8.5" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
+717
@@ -0,0 +1,717 @@
|
|||||||
|
{
|
||||||
|
"runtimeTarget": {
|
||||||
|
"name": ".NETCoreApp,Version=v2.2",
|
||||||
|
"signature": "3c34e6ca5581a2c5d8a3099a1903480bae6d4343"
|
||||||
|
},
|
||||||
|
"compilationOptions": {},
|
||||||
|
"targets": {
|
||||||
|
".NETCoreApp,Version=v2.2": {
|
||||||
|
"SpaceInvaders/1.0.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"MySql.Data": "8.1.0",
|
||||||
|
"System.Data.SqlClient": "4.8.5"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"SpaceInvaders.dll": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Google.Protobuf/3.21.9": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Memory": "4.5.5",
|
||||||
|
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/Google.Protobuf.dll": {
|
||||||
|
"assemblyVersion": "3.21.9.0",
|
||||||
|
"fileVersion": "3.21.9.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"K4os.Compression.LZ4/1.3.5": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Memory": "4.5.5",
|
||||||
|
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/K4os.Compression.LZ4.dll": {
|
||||||
|
"assemblyVersion": "1.3.5.0",
|
||||||
|
"fileVersion": "1.3.5.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"K4os.Compression.LZ4.Streams/1.3.5": {
|
||||||
|
"dependencies": {
|
||||||
|
"K4os.Compression.LZ4": "1.3.5",
|
||||||
|
"K4os.Hash.xxHash": "1.0.8",
|
||||||
|
"System.IO.Pipelines": "5.0.2"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/K4os.Compression.LZ4.Streams.dll": {
|
||||||
|
"assemblyVersion": "1.3.5.0",
|
||||||
|
"fileVersion": "1.3.5.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"K4os.Hash.xxHash/1.0.8": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Memory": "4.5.5",
|
||||||
|
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/K4os.Hash.xxHash.dll": {
|
||||||
|
"assemblyVersion": "1.0.8.0",
|
||||||
|
"fileVersion": "1.0.8.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Microsoft.Bcl.AsyncInterfaces/7.0.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Threading.Tasks.Extensions": "4.5.4"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {
|
||||||
|
"assemblyVersion": "7.0.0.0",
|
||||||
|
"fileVersion": "7.0.22.51805"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Microsoft.NETCore.Platforms/3.1.0": {},
|
||||||
|
"Microsoft.Win32.Registry/4.7.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Security.AccessControl": "4.7.0",
|
||||||
|
"System.Security.Principal.Windows": "4.7.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/Microsoft.Win32.Registry.dll": {
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/unix/lib/netstandard2.0/Microsoft.Win32.Registry.dll": {
|
||||||
|
"rid": "unix",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
},
|
||||||
|
"runtimes/win/lib/netstandard2.0/Microsoft.Win32.Registry.dll": {
|
||||||
|
"rid": "win",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"MySql.Data/8.1.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Google.Protobuf": "3.21.9",
|
||||||
|
"K4os.Compression.LZ4.Streams": "1.3.5",
|
||||||
|
"Portable.BouncyCastle": "1.9.0",
|
||||||
|
"System.Buffers": "4.5.1",
|
||||||
|
"System.Configuration.ConfigurationManager": "4.4.1",
|
||||||
|
"System.Diagnostics.DiagnosticSource": "7.0.2",
|
||||||
|
"System.Runtime.CompilerServices.Unsafe": "6.0.0",
|
||||||
|
"System.Runtime.Loader": "4.3.0",
|
||||||
|
"System.Security.Permissions": "4.7.0",
|
||||||
|
"System.Text.Encoding.CodePages": "4.7.0",
|
||||||
|
"System.Text.Json": "7.0.1",
|
||||||
|
"System.Threading.Tasks.Extensions": "4.5.4",
|
||||||
|
"ZstdSharp.Port": "0.7.1"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/MySql.Data.dll": {
|
||||||
|
"assemblyVersion": "8.1.0.0",
|
||||||
|
"fileVersion": "8.1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/win-x64/native/comerr64.dll": {
|
||||||
|
"rid": "win-x64",
|
||||||
|
"assetType": "native",
|
||||||
|
"fileVersion": "4.1.0.0"
|
||||||
|
},
|
||||||
|
"runtimes/win-x64/native/gssapi64.dll": {
|
||||||
|
"rid": "win-x64",
|
||||||
|
"assetType": "native",
|
||||||
|
"fileVersion": "4.1.0.0"
|
||||||
|
},
|
||||||
|
"runtimes/win-x64/native/k5sprt64.dll": {
|
||||||
|
"rid": "win-x64",
|
||||||
|
"assetType": "native",
|
||||||
|
"fileVersion": "4.1.0.0"
|
||||||
|
},
|
||||||
|
"runtimes/win-x64/native/krb5_64.dll": {
|
||||||
|
"rid": "win-x64",
|
||||||
|
"assetType": "native",
|
||||||
|
"fileVersion": "4.1.0.0"
|
||||||
|
},
|
||||||
|
"runtimes/win-x64/native/krbcc64.dll": {
|
||||||
|
"rid": "win-x64",
|
||||||
|
"assetType": "native",
|
||||||
|
"fileVersion": "4.1.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Portable.BouncyCastle/1.9.0": {
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/BouncyCastle.Crypto.dll": {
|
||||||
|
"assemblyVersion": "1.9.0.0",
|
||||||
|
"fileVersion": "1.9.0.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtime.native.System.Data.SqlClient.sni/4.7.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"runtime.win-arm64.runtime.native.System.Data.SqlClient.sni": "4.4.0",
|
||||||
|
"runtime.win-x64.runtime.native.System.Data.SqlClient.sni": "4.4.0",
|
||||||
|
"runtime.win-x86.runtime.native.System.Data.SqlClient.sni": "4.4.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtime.win-arm64.runtime.native.System.Data.SqlClient.sni/4.4.0": {
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/win-arm64/native/sni.dll": {
|
||||||
|
"rid": "win-arm64",
|
||||||
|
"assetType": "native",
|
||||||
|
"fileVersion": "4.6.25512.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtime.win-x64.runtime.native.System.Data.SqlClient.sni/4.4.0": {
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/win-x64/native/sni.dll": {
|
||||||
|
"rid": "win-x64",
|
||||||
|
"assetType": "native",
|
||||||
|
"fileVersion": "4.6.25512.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtime.win-x86.runtime.native.System.Data.SqlClient.sni/4.4.0": {
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/win-x86/native/sni.dll": {
|
||||||
|
"rid": "win-x86",
|
||||||
|
"assetType": "native",
|
||||||
|
"fileVersion": "4.6.25512.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Buffers/4.5.1": {},
|
||||||
|
"System.Configuration.ConfigurationManager/4.4.1": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Security.Cryptography.ProtectedData": "4.4.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Configuration.ConfigurationManager.dll": {
|
||||||
|
"assemblyVersion": "4.0.0.0",
|
||||||
|
"fileVersion": "4.6.25921.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Data.SqlClient/4.8.5": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.Win32.Registry": "4.7.0",
|
||||||
|
"System.Diagnostics.DiagnosticSource": "7.0.2",
|
||||||
|
"System.Security.Principal.Windows": "4.7.0",
|
||||||
|
"System.Text.Encoding.CodePages": "4.7.0",
|
||||||
|
"runtime.native.System.Data.SqlClient.sni": "4.7.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netcoreapp2.1/System.Data.SqlClient.dll": {
|
||||||
|
"assemblyVersion": "4.6.1.5",
|
||||||
|
"fileVersion": "4.700.22.51706"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/unix/lib/netcoreapp2.1/System.Data.SqlClient.dll": {
|
||||||
|
"rid": "unix",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.6.1.5",
|
||||||
|
"fileVersion": "4.700.22.51706"
|
||||||
|
},
|
||||||
|
"runtimes/win/lib/netcoreapp2.1/System.Data.SqlClient.dll": {
|
||||||
|
"rid": "win",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.6.1.5",
|
||||||
|
"fileVersion": "4.700.22.51706"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Diagnostics.DiagnosticSource/7.0.2": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Memory": "4.5.5",
|
||||||
|
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Diagnostics.DiagnosticSource.dll": {
|
||||||
|
"assemblyVersion": "7.0.0.0",
|
||||||
|
"fileVersion": "7.0.423.11508"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.IO/4.3.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0",
|
||||||
|
"System.Runtime": "4.3.0",
|
||||||
|
"System.Text.Encoding": "4.3.0",
|
||||||
|
"System.Threading.Tasks": "4.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.IO.Pipelines/5.0.2": {
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.IO.Pipelines.dll": {
|
||||||
|
"assemblyVersion": "5.0.0.1",
|
||||||
|
"fileVersion": "5.0.1522.11506"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Memory/4.5.5": {},
|
||||||
|
"System.Numerics.Vectors/4.5.0": {},
|
||||||
|
"System.Reflection/4.3.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0",
|
||||||
|
"System.IO": "4.3.0",
|
||||||
|
"System.Reflection.Primitives": "4.3.0",
|
||||||
|
"System.Runtime": "4.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Reflection.Primitives/4.3.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0",
|
||||||
|
"System.Runtime": "4.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Runtime/4.3.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Runtime.CompilerServices.Unsafe/6.0.0": {
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {
|
||||||
|
"assemblyVersion": "6.0.0.0",
|
||||||
|
"fileVersion": "6.0.21.52210"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Runtime.Loader/4.3.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.IO": "4.3.0",
|
||||||
|
"System.Reflection": "4.3.0",
|
||||||
|
"System.Runtime": "4.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Security.AccessControl/4.7.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0",
|
||||||
|
"System.Security.Principal.Windows": "4.7.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Security.AccessControl.dll": {
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/win/lib/netcoreapp2.0/System.Security.AccessControl.dll": {
|
||||||
|
"rid": "win",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Security.Cryptography.ProtectedData/4.4.0": {
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll": {
|
||||||
|
"assemblyVersion": "4.0.2.0",
|
||||||
|
"fileVersion": "4.6.25519.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll": {
|
||||||
|
"rid": "win",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.0.2.0",
|
||||||
|
"fileVersion": "4.6.25519.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Security.Permissions/4.7.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Security.AccessControl": "4.7.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Security.Permissions.dll": {
|
||||||
|
"assemblyVersion": "4.0.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Security.Principal.Windows/4.7.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Security.Principal.Windows.dll": {
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/unix/lib/netcoreapp2.1/System.Security.Principal.Windows.dll": {
|
||||||
|
"rid": "unix",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
},
|
||||||
|
"runtimes/win/lib/netcoreapp2.1/System.Security.Principal.Windows.dll": {
|
||||||
|
"rid": "win",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Text.Encoding/4.3.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0",
|
||||||
|
"System.Runtime": "4.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Text.Encoding.CodePages/4.7.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0",
|
||||||
|
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Text.Encoding.CodePages.dll": {
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/win/lib/netcoreapp2.0/System.Text.Encoding.CodePages.dll": {
|
||||||
|
"rid": "win",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Text.Encodings.Web/7.0.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Buffers": "4.5.1",
|
||||||
|
"System.Memory": "4.5.5",
|
||||||
|
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Text.Encodings.Web.dll": {
|
||||||
|
"assemblyVersion": "7.0.0.0",
|
||||||
|
"fileVersion": "7.0.22.51805"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Text.Json/7.0.1": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.Bcl.AsyncInterfaces": "7.0.0",
|
||||||
|
"System.Buffers": "4.5.1",
|
||||||
|
"System.Memory": "4.5.5",
|
||||||
|
"System.Numerics.Vectors": "4.5.0",
|
||||||
|
"System.Runtime.CompilerServices.Unsafe": "6.0.0",
|
||||||
|
"System.Text.Encodings.Web": "7.0.0",
|
||||||
|
"System.Threading.Tasks.Extensions": "4.5.4"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Text.Json.dll": {
|
||||||
|
"assemblyVersion": "7.0.0.0",
|
||||||
|
"fileVersion": "7.0.122.56804"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Threading.Tasks/4.3.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0",
|
||||||
|
"System.Runtime": "4.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Threading.Tasks.Extensions/4.5.4": {},
|
||||||
|
"ZstdSharp.Port/0.7.1": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.Bcl.AsyncInterfaces": "7.0.0",
|
||||||
|
"System.Memory": "4.5.5"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/ZstdSharp.dll": {
|
||||||
|
"assemblyVersion": "0.7.1.0",
|
||||||
|
"fileVersion": "0.7.1.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"libraries": {
|
||||||
|
"SpaceInvaders/1.0.0": {
|
||||||
|
"type": "project",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
|
},
|
||||||
|
"Google.Protobuf/3.21.9": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-OTpFujTgkmqMLbg3KT7F/iuKi1rg6s5FCS2M9XcVLDn40zL8wgXm37CY/F6MeOEXKjdcnXGCN/h7oyMkVydVsg==",
|
||||||
|
"path": "google.protobuf/3.21.9",
|
||||||
|
"hashPath": "google.protobuf.3.21.9.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"K4os.Compression.LZ4/1.3.5": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-TS4mqlT0X1OlnvOGNfl02QdVUhuqgWuCnn7UxupIa7C9Pb6qlQ5yZA2sPhRh0OSmVULaQU64KV4wJuu//UyVQQ==",
|
||||||
|
"path": "k4os.compression.lz4/1.3.5",
|
||||||
|
"hashPath": "k4os.compression.lz4.1.3.5.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"K4os.Compression.LZ4.Streams/1.3.5": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-M0NufZI8ym3mm6F6HMSPz1jw7TJGdY74fjAtbIXATmnAva/8xLz50eQZJI9tf9mMeHUaFDg76N1BmEh8GR5zeA==",
|
||||||
|
"path": "k4os.compression.lz4.streams/1.3.5",
|
||||||
|
"hashPath": "k4os.compression.lz4.streams.1.3.5.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"K4os.Hash.xxHash/1.0.8": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-Wp2F7BamQ2Q/7Hk834nV9vRQapgcr8kgv9Jvfm8J3D0IhDqZMMl+a2yxUq5ltJitvXvQfB8W6K4F4fCbw/P6YQ==",
|
||||||
|
"path": "k4os.hash.xxhash/1.0.8",
|
||||||
|
"hashPath": "k4os.hash.xxhash.1.0.8.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"Microsoft.Bcl.AsyncInterfaces/7.0.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-3aeMZ1N0lJoSyzqiP03hqemtb1BijhsJADdobn/4nsMJ8V1H+CrpuduUe4hlRdx+ikBQju1VGjMD1GJ3Sk05Eg==",
|
||||||
|
"path": "microsoft.bcl.asyncinterfaces/7.0.0",
|
||||||
|
"hashPath": "microsoft.bcl.asyncinterfaces.7.0.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"Microsoft.NETCore.Platforms/3.1.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-z7aeg8oHln2CuNulfhiLYxCVMPEwBl3rzicjvIX+4sUuCwvXw5oXQEtbiU2c0z4qYL5L3Kmx0mMA/+t/SbY67w==",
|
||||||
|
"path": "microsoft.netcore.platforms/3.1.0",
|
||||||
|
"hashPath": "microsoft.netcore.platforms.3.1.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"Microsoft.Win32.Registry/4.7.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-KSrRMb5vNi0CWSGG1++id2ZOs/1QhRqROt+qgbEAdQuGjGrFcl4AOl4/exGPUYz2wUnU42nvJqon1T3U0kPXLA==",
|
||||||
|
"path": "microsoft.win32.registry/4.7.0",
|
||||||
|
"hashPath": "microsoft.win32.registry.4.7.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"MySql.Data/8.1.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-7kEJLyty7HcqJD0lnfs+2fdMrvCl0RY5oykvZThbmg6QVLT55dwygI69Eqxl0M6IThP9woyjpsezT6m7gKRrLA==",
|
||||||
|
"path": "mysql.data/8.1.0",
|
||||||
|
"hashPath": "mysql.data.8.1.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"Portable.BouncyCastle/1.9.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-eZZBCABzVOek+id9Xy04HhmgykF0wZg9wpByzrWN7q8qEI0Qen9b7tfd7w8VA3dOeesumMG7C5ZPy0jk7PSRHw==",
|
||||||
|
"path": "portable.bouncycastle/1.9.0",
|
||||||
|
"hashPath": "portable.bouncycastle.1.9.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"runtime.native.System.Data.SqlClient.sni/4.7.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-9kyFSIdN3T0qjDQ2R0HRXYIhS3l5psBzQi6qqhdLz+SzFyEy4sVxNOke+yyYv8Cu8rPER12c3RDjLT8wF3WBYQ==",
|
||||||
|
"path": "runtime.native.system.data.sqlclient.sni/4.7.0",
|
||||||
|
"hashPath": "runtime.native.system.data.sqlclient.sni.4.7.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"runtime.win-arm64.runtime.native.System.Data.SqlClient.sni/4.4.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-LbrynESTp3bm5O/+jGL8v0Qg5SJlTV08lpIpFesXjF6uGNMWqFnUQbYBJwZTeua6E/Y7FIM1C54Ey1btLWupdg==",
|
||||||
|
"path": "runtime.win-arm64.runtime.native.system.data.sqlclient.sni/4.4.0",
|
||||||
|
"hashPath": "runtime.win-arm64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"runtime.win-x64.runtime.native.System.Data.SqlClient.sni/4.4.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-38ugOfkYJqJoX9g6EYRlZB5U2ZJH51UP8ptxZgdpS07FgOEToV+lS11ouNK2PM12Pr6X/PpT5jK82G3DwH/SxQ==",
|
||||||
|
"path": "runtime.win-x64.runtime.native.system.data.sqlclient.sni/4.4.0",
|
||||||
|
"hashPath": "runtime.win-x64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"runtime.win-x86.runtime.native.System.Data.SqlClient.sni/4.4.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-YhEdSQUsTx+C8m8Bw7ar5/VesXvCFMItyZF7G1AUY+OM0VPZUOeAVpJ4Wl6fydBGUYZxojTDR3I6Bj/+BPkJNA==",
|
||||||
|
"path": "runtime.win-x86.runtime.native.system.data.sqlclient.sni/4.4.0",
|
||||||
|
"hashPath": "runtime.win-x86.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Buffers/4.5.1": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==",
|
||||||
|
"path": "system.buffers/4.5.1",
|
||||||
|
"hashPath": "system.buffers.4.5.1.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Configuration.ConfigurationManager/4.4.1": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-jz3TWKMAeuDEyrPCK5Jyt4bzQcmzUIMcY9Ud6PkElFxTfnsihV+9N/UCqvxe1z5gc7jMYAnj7V1COMS9QKIuHQ==",
|
||||||
|
"path": "system.configuration.configurationmanager/4.4.1",
|
||||||
|
"hashPath": "system.configuration.configurationmanager.4.4.1.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Data.SqlClient/4.8.5": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-fRqxut4lrndPHrXD+ht1XRmCL3obuKldm4XjCRYS9p5f7FSR7shBxAwTkDrpFMsHC9BhNgjjmUtiIjvehn5zkg==",
|
||||||
|
"path": "system.data.sqlclient/4.8.5",
|
||||||
|
"hashPath": "system.data.sqlclient.4.8.5.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Diagnostics.DiagnosticSource/7.0.2": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-hYr3I9N9811e0Bjf2WNwAGGyTuAFbbTgX1RPLt/3Wbm68x3IGcX5Cl75CMmgT6WlNwLQ2tCCWfqYPpypjaf2xA==",
|
||||||
|
"path": "system.diagnostics.diagnosticsource/7.0.2",
|
||||||
|
"hashPath": "system.diagnostics.diagnosticsource.7.0.2.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.IO/4.3.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==",
|
||||||
|
"path": "system.io/4.3.0",
|
||||||
|
"hashPath": "system.io.4.3.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.IO.Pipelines/5.0.2": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-Iew+dfa6FFiyvWBdRmXApixRY1db+beyutpIck4SOSe0NLM8FD/7AD54MscqVLhvfSMLHO7KadjTRT7fqxOGTA==",
|
||||||
|
"path": "system.io.pipelines/5.0.2",
|
||||||
|
"hashPath": "system.io.pipelines.5.0.2.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Memory/4.5.5": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==",
|
||||||
|
"path": "system.memory/4.5.5",
|
||||||
|
"hashPath": "system.memory.4.5.5.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Numerics.Vectors/4.5.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-QQTlPTl06J/iiDbJCiepZ4H//BVraReU4O4EoRw1U02H5TLUIT7xn3GnDp9AXPSlJUDyFs4uWjWafNX6WrAojQ==",
|
||||||
|
"path": "system.numerics.vectors/4.5.0",
|
||||||
|
"hashPath": "system.numerics.vectors.4.5.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Reflection/4.3.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==",
|
||||||
|
"path": "system.reflection/4.3.0",
|
||||||
|
"hashPath": "system.reflection.4.3.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Reflection.Primitives/4.3.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==",
|
||||||
|
"path": "system.reflection.primitives/4.3.0",
|
||||||
|
"hashPath": "system.reflection.primitives.4.3.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Runtime/4.3.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==",
|
||||||
|
"path": "system.runtime/4.3.0",
|
||||||
|
"hashPath": "system.runtime.4.3.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Runtime.CompilerServices.Unsafe/6.0.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==",
|
||||||
|
"path": "system.runtime.compilerservices.unsafe/6.0.0",
|
||||||
|
"hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Runtime.Loader/4.3.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-DHMaRn8D8YCK2GG2pw+UzNxn/OHVfaWx7OTLBD/hPegHZZgcZh3H6seWegrC4BYwsfuGrywIuT+MQs+rPqRLTQ==",
|
||||||
|
"path": "system.runtime.loader/4.3.0",
|
||||||
|
"hashPath": "system.runtime.loader.4.3.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Security.AccessControl/4.7.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-JECvTt5aFF3WT3gHpfofL2MNNP6v84sxtXxpqhLBCcDRzqsPBmHhQ6shv4DwwN2tRlzsUxtb3G9M3763rbXKDg==",
|
||||||
|
"path": "system.security.accesscontrol/4.7.0",
|
||||||
|
"hashPath": "system.security.accesscontrol.4.7.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Security.Cryptography.ProtectedData/4.4.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-cJV7ScGW7EhatRsjehfvvYVBvtiSMKgN8bOVI0bQhnF5bU7vnHVIsH49Kva7i7GWaWYvmEzkYVk1TC+gZYBEog==",
|
||||||
|
"path": "system.security.cryptography.protecteddata/4.4.0",
|
||||||
|
"hashPath": "system.security.cryptography.protecteddata.4.4.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Security.Permissions/4.7.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-dkOV6YYVBnYRa15/yv004eCGRBVADXw8qRbbNiCn/XpdJSUXkkUeIvdvFHkvnko4CdKMqG8yRHC4ox83LSlMsQ==",
|
||||||
|
"path": "system.security.permissions/4.7.0",
|
||||||
|
"hashPath": "system.security.permissions.4.7.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Security.Principal.Windows/4.7.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-ojD0PX0XhneCsUbAZVKdb7h/70vyYMDYs85lwEI+LngEONe/17A0cFaRFqZU+sOEidcVswYWikYOQ9PPfjlbtQ==",
|
||||||
|
"path": "system.security.principal.windows/4.7.0",
|
||||||
|
"hashPath": "system.security.principal.windows.4.7.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Text.Encoding/4.3.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==",
|
||||||
|
"path": "system.text.encoding/4.3.0",
|
||||||
|
"hashPath": "system.text.encoding.4.3.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Text.Encoding.CodePages/4.7.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-aeu4FlaUTemuT1qOd1MyU4T516QR4Fy+9yDbwWMPHOHy7U8FD6SgTzdZFO7gHcfAPHtECqInbwklVvUK4RHcNg==",
|
||||||
|
"path": "system.text.encoding.codepages/4.7.0",
|
||||||
|
"hashPath": "system.text.encoding.codepages.4.7.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Text.Encodings.Web/7.0.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-OP6umVGxc0Z0MvZQBVigj4/U31Pw72ITihDWP9WiWDm+q5aoe0GaJivsfYGq53o6dxH7DcXWiCTl7+0o2CGdmg==",
|
||||||
|
"path": "system.text.encodings.web/7.0.0",
|
||||||
|
"hashPath": "system.text.encodings.web.7.0.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Text.Json/7.0.1": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-OtDEmCCiNl8JAduFKZ/r0Sw6XZNHwIicUYy/mXgMDGeOsZLshH37qi3oPRzFYiryVktiMoQLByMGPtRCEMYbeQ==",
|
||||||
|
"path": "system.text.json/7.0.1",
|
||||||
|
"hashPath": "system.text.json.7.0.1.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Threading.Tasks/4.3.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==",
|
||||||
|
"path": "system.threading.tasks/4.3.0",
|
||||||
|
"hashPath": "system.threading.tasks.4.3.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Threading.Tasks.Extensions/4.5.4": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==",
|
||||||
|
"path": "system.threading.tasks.extensions/4.5.4",
|
||||||
|
"hashPath": "system.threading.tasks.extensions.4.5.4.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"ZstdSharp.Port/0.7.1": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-Idgg+mJEyAujqDPzA3APy9dNoyw0YQcNA65GgYjktDRtJ+nvx/hv+J+m6Eax3JJMGEYGy04oc5YNP6ZvQ3Y1vQ==",
|
||||||
|
"path": "zstdsharp.port/0.7.1",
|
||||||
|
"hashPath": "zstdsharp.port.0.7.1.nupkg.sha512"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+9
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"additionalProbingPaths": [
|
||||||
|
"C:\\Users\\pq81jlv\\.dotnet\\store\\|arch|\\|tfm|",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
+9
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"tfm": "netcoreapp2.2",
|
||||||
|
"framework": {
|
||||||
|
"name": "Microsoft.NETCore.App",
|
||||||
|
"version": "2.2.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace SpaceInvaders
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Classe pour l'objet "ennemi"
|
||||||
|
/// </summary>
|
||||||
|
public class ennemi
|
||||||
|
{
|
||||||
|
public int X; //Position horizontal de l'ennemi
|
||||||
|
public int Y; //Position vertical de l'ennemi
|
||||||
|
public bool MoveDroite; //Boolean pour indiquer que l'ennemi va à droite ou pas
|
||||||
|
public bool MoveDown;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Constructeur de l'ennemi
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="x">Position horizontal initial </param>
|
||||||
|
/// <param name="y">Position vertical initial </param>
|
||||||
|
public ennemi(int x, int y)
|
||||||
|
{
|
||||||
|
X = x; //Initialiser la position horizontal de l'ennemi
|
||||||
|
Y = y; //Initialiser la position vertival de l'ennemi
|
||||||
|
MoveDroite = true; //L'ennemi se déplace à droite
|
||||||
|
MoveDown = true; //L'ennemi descends
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Fonction pour actualiser la position de l'ennemi
|
||||||
|
/// </summary>
|
||||||
|
public void positionNouvelle()
|
||||||
|
{
|
||||||
|
//Si l'ennemi atteint le bord droit de la console
|
||||||
|
if (X == Console.WindowWidth - 6)
|
||||||
|
{
|
||||||
|
MoveDroite = false; //l'ennemi arrête d'aller à droite
|
||||||
|
MoveDown = true; //l'ennemi descends
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
//Si l'ennemi atteint le bord gauche de la console
|
||||||
|
else if (X == 0)
|
||||||
|
{
|
||||||
|
MoveDroite = true; //l'ennemi commence aller à droite
|
||||||
|
MoveDown = true; //l'ennemi descends
|
||||||
|
|
||||||
|
}
|
||||||
|
//Si l'ennemi se déplace a droite
|
||||||
|
if (MoveDroite)
|
||||||
|
{
|
||||||
|
X++; //La position horizontal augmente de 1
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
X--; //Sinon la position vertical va diminuer de 1
|
||||||
|
}
|
||||||
|
//Si l'ennemi descends
|
||||||
|
if (MoveDown)
|
||||||
|
{
|
||||||
|
Y++; //La position vertical diminue de 1
|
||||||
|
MoveDown = false; //Il arrête de descendre
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,157 @@
|
|||||||
|
using System;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace SpaceInvaders
|
||||||
|
{
|
||||||
|
public class jeu
|
||||||
|
{
|
||||||
|
// Déclaration des variables pour les éléments du jeu : ennemi, vaisseau et tir
|
||||||
|
private ennemi _ennemi;
|
||||||
|
private vaisseau _vaisseau;
|
||||||
|
private tir _tir;
|
||||||
|
public int score = 0;
|
||||||
|
|
||||||
|
// Constructeur qui initialise le vaisseau et l'ennemi
|
||||||
|
public jeu(ennemi ennemi, vaisseau vaisseau)
|
||||||
|
{
|
||||||
|
_ennemi = ennemi;
|
||||||
|
_vaisseau = vaisseau;
|
||||||
|
|
||||||
|
}
|
||||||
|
// Fonction principale pour démarrer le jeu
|
||||||
|
public void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
Console.CursorVisible = false;
|
||||||
|
while (true)
|
||||||
|
{
|
||||||
|
Update();
|
||||||
|
Draw();
|
||||||
|
Thread.Sleep(90);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
GérerEntrée(); // Gère les entrées de l'utilisateur
|
||||||
|
_ennemi.positionNouvelle();// Met à jour la position de l'ennemi
|
||||||
|
MettreAJouerTir(); // Met à jour la position du tir et vérifie les collisions
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Gère les entrées de l'utilisateur
|
||||||
|
/// </summary>
|
||||||
|
private void GérerEntrée()
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
while (Console.KeyAvailable)
|
||||||
|
{
|
||||||
|
ConsoleKeyInfo key = Console.ReadKey(true);
|
||||||
|
switch (key.Key)
|
||||||
|
{
|
||||||
|
case ConsoleKey.LeftArrow:
|
||||||
|
_vaisseau.MoveGauche();
|
||||||
|
break;
|
||||||
|
case ConsoleKey.RightArrow:
|
||||||
|
_vaisseau.MoveDroite();
|
||||||
|
break;
|
||||||
|
case ConsoleKey.Spacebar:
|
||||||
|
InitiateProjectile();
|
||||||
|
break;
|
||||||
|
case ConsoleKey.Escape:
|
||||||
|
Menu menu = new Menu();
|
||||||
|
menu.Start();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
// Initialise un nouveau tir si aucun tir n'est actuellement actif
|
||||||
|
private void InitiateProjectile()
|
||||||
|
{
|
||||||
|
if (_tir == null || !_tir.tirActivé)
|
||||||
|
{
|
||||||
|
_tir = new tir(_vaisseau.X + 1, _vaisseau.Y - 1);
|
||||||
|
_tir.tirActivé = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
// Met à jour la position du tir et vérifie s'il y a collision
|
||||||
|
private void MettreAJouerTir()
|
||||||
|
{
|
||||||
|
if (_tir != null && _tir.tirActivé)
|
||||||
|
{
|
||||||
|
_tir.Y--; // Mueve el proyectil hacia arriba
|
||||||
|
|
||||||
|
// Comprueba si el proyectil ha salido de la pantalla
|
||||||
|
if (_tir.Y < 0)
|
||||||
|
{
|
||||||
|
_tir.tirActivé = false;
|
||||||
|
}
|
||||||
|
if(_tir.Y == _ennemi.Y && _tir.X >= _ennemi.X && _tir.X <= _ennemi.X + 6)
|
||||||
|
{
|
||||||
|
score += 1;
|
||||||
|
_tir.tirActivé = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// // Dessine tous les éléments du jeu sur la console
|
||||||
|
/// </summary>
|
||||||
|
private void Draw()
|
||||||
|
{
|
||||||
|
Console.Clear();
|
||||||
|
Console.CursorVisible = false;
|
||||||
|
for (int y = 0; y < 16; y++)
|
||||||
|
{
|
||||||
|
for (int x = 0; x < Console.WindowWidth; x++)
|
||||||
|
{
|
||||||
|
if (y == _vaisseau.Y && x == _vaisseau.X)
|
||||||
|
{
|
||||||
|
Console.ForegroundColor = ConsoleColor.DarkMagenta;
|
||||||
|
Console.Write("▲");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
else if (x == _ennemi.X && y == _ennemi.Y)
|
||||||
|
{
|
||||||
|
Console.ForegroundColor = ConsoleColor.DarkRed;
|
||||||
|
Console.Write(" ■ ■ ■");
|
||||||
|
x += 4;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Console.Write(" ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (_tir != null && _tir.tirActivé)
|
||||||
|
{
|
||||||
|
Console.SetCursorPosition(_tir.X, _tir.Y);
|
||||||
|
Console.Write("|");
|
||||||
|
}
|
||||||
|
|
||||||
|
//Afficher le score
|
||||||
|
Console.SetCursorPosition(50, 0);
|
||||||
|
Console.Write($"Score: {score}");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,226 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
using MySql.Data.MySqlClient;
|
||||||
|
|
||||||
|
namespace SpaceInvaders
|
||||||
|
{
|
||||||
|
public class Menu
|
||||||
|
{
|
||||||
|
string[] menuOptions = { };
|
||||||
|
int selectedOption = 0;
|
||||||
|
public Menu()
|
||||||
|
{
|
||||||
|
menuOptions = new string[] {" 1. Jouer ",
|
||||||
|
" 2. Options ",
|
||||||
|
" 3. Highscore ",
|
||||||
|
" 4. Résultats ",
|
||||||
|
" 5. Quitter " };
|
||||||
|
selectedOption = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
while (true)
|
||||||
|
{
|
||||||
|
//Console.SetWindowSize(50, 30);
|
||||||
|
Console.CursorVisible = false;
|
||||||
|
Console.BackgroundColor = ConsoleColor.DarkMagenta;
|
||||||
|
Console.Clear();
|
||||||
|
Console.BackgroundColor = ConsoleColor.White;
|
||||||
|
Console.ForegroundColor = ConsoleColor.DarkMagenta;
|
||||||
|
|
||||||
|
Console.WriteLine("-----------------");
|
||||||
|
Console.WriteLine("Spicy Invader II");
|
||||||
|
Console.WriteLine("-----------------");
|
||||||
|
|
||||||
|
for (int i = 0; i < menuOptions.Length; i++)
|
||||||
|
{
|
||||||
|
if (i == selectedOption)
|
||||||
|
{
|
||||||
|
Console.ForegroundColor = ConsoleColor.White;
|
||||||
|
Console.BackgroundColor = ConsoleColor.DarkMagenta;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Console.ForegroundColor = ConsoleColor.Gray;
|
||||||
|
Console.BackgroundColor = ConsoleColor.Black;
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.WriteLine(menuOptions[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.ResetColor();
|
||||||
|
|
||||||
|
ConsoleKeyInfo keyInfo = Console.ReadKey();
|
||||||
|
if (keyInfo.Key == ConsoleKey.UpArrow)
|
||||||
|
{
|
||||||
|
selectedOption = (selectedOption - 1 + menuOptions.Length) % menuOptions.Length;
|
||||||
|
}
|
||||||
|
else if (keyInfo.Key == ConsoleKey.DownArrow)
|
||||||
|
{
|
||||||
|
selectedOption = (selectedOption + 1) % menuOptions.Length;
|
||||||
|
}
|
||||||
|
else if (keyInfo.Key == ConsoleKey.Enter)
|
||||||
|
{
|
||||||
|
if (selectedOption == menuOptions.Length - 1)
|
||||||
|
{
|
||||||
|
break; // Sortir du boucle
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
PerformAction(selectedOption);
|
||||||
|
|
||||||
|
Console.ReadKey();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void PerformAction(int option)
|
||||||
|
{
|
||||||
|
DatabaseConnection databaseConnection = new DatabaseConnection();
|
||||||
|
switch (option)
|
||||||
|
{
|
||||||
|
case 0: //Jouer
|
||||||
|
|
||||||
|
Console.Write("Ingrese su nombre: ");
|
||||||
|
string playerName1 = Console.ReadLine();
|
||||||
|
|
||||||
|
Console.Clear();
|
||||||
|
|
||||||
|
Console.BackgroundColor = ConsoleColor.White;
|
||||||
|
ennemi monEnnemi = new ennemi(18, 0);
|
||||||
|
vaisseau monVaisseau = new vaisseau(18, 10);
|
||||||
|
|
||||||
|
jeu jeu = new jeu(monEnnemi, monVaisseau);
|
||||||
|
jeu.Start();
|
||||||
|
|
||||||
|
int finalScore = jeu.score;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
databaseConnection.SaveScore(playerName1, finalScore);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 1: //Optioons
|
||||||
|
Console.Clear();
|
||||||
|
Console.WriteLine("");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 2: //Highscore
|
||||||
|
Console.Clear();
|
||||||
|
Console.BackgroundColor = ConsoleColor.Magenta;
|
||||||
|
|
||||||
|
var scores = databaseConnection.GetTop5Highscores();
|
||||||
|
|
||||||
|
Console.WriteLine("------- Highscores -------");
|
||||||
|
foreach (var (playerName, score) in scores)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"{playerName}: {score}");
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.WriteLine("\nAppuyez sur une touche pour retourner au menu");
|
||||||
|
|
||||||
|
|
||||||
|
//Highscore();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 3:
|
||||||
|
Console.Clear();
|
||||||
|
Console.WriteLine("");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 4:
|
||||||
|
Console.ReadKey();
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public class DatabaseConnection
|
||||||
|
{
|
||||||
|
public string connectionString = "Server=localhost;Port=6033;Database=db_space_invaders;User Id=root;Password=root;";
|
||||||
|
|
||||||
|
public void TestConnection()
|
||||||
|
{
|
||||||
|
using (MySqlConnection connection = new MySqlConnection(connectionString))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
connection.Open();
|
||||||
|
Console.WriteLine("Connexion OK");
|
||||||
|
}
|
||||||
|
catch (MySqlException ex)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"Erreur {ex.Message}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public List<(string playerName, int score)> GetTop5Highscores()
|
||||||
|
{
|
||||||
|
List<(string playerName, int score)> highscores = new List<(string playerName, int score)>();
|
||||||
|
|
||||||
|
using (MySqlConnection connection = new MySqlConnection(connectionString))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
connection.Open();
|
||||||
|
|
||||||
|
string query = "SELECT jouPseudo, jouNombrePoints FROM t_joueur ORDER BY jouNombrePoints DESC LIMIT 5";
|
||||||
|
|
||||||
|
MySqlCommand cmd = new MySqlCommand(query, connection);
|
||||||
|
using (MySqlDataReader reader = cmd.ExecuteReader())
|
||||||
|
{
|
||||||
|
while (reader.Read())
|
||||||
|
{
|
||||||
|
highscores.Add((reader.GetString(0), reader.GetInt32(1)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (MySqlException ex)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"Erreur {ex.Message}");
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return highscores;
|
||||||
|
}
|
||||||
|
public void SaveScore(string playerName, int score)
|
||||||
|
{
|
||||||
|
using (MySqlConnection connection = new MySqlConnection(connectionString))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
connection.Open();
|
||||||
|
|
||||||
|
string query = "INSERT INTO t_joueur (jouPseudo, jouNombrePoints) VALUES (@playerName, @score)";
|
||||||
|
MySqlCommand cmd = new MySqlCommand(query, connection);
|
||||||
|
cmd.Parameters.AddWithValue("@playerName", playerName);
|
||||||
|
cmd.Parameters.AddWithValue("@score", score);
|
||||||
|
|
||||||
|
cmd.ExecuteNonQuery();
|
||||||
|
}
|
||||||
|
catch (MySqlException ex)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"Erreur {ex.Message}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v2.2", FrameworkDisplayName = "")]
|
||||||
+23
@@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// Ce code a été généré par un outil.
|
||||||
|
// Version du runtime :4.0.30319.42000
|
||||||
|
//
|
||||||
|
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
|
||||||
|
// le code est régénéré.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
[assembly: System.Reflection.AssemblyCompanyAttribute("SpaceInvaders")]
|
||||||
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||||
|
[assembly: System.Reflection.AssemblyProductAttribute("SpaceInvaders")]
|
||||||
|
[assembly: System.Reflection.AssemblyTitleAttribute("SpaceInvaders")]
|
||||||
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|
||||||
|
// Généré par la classe MSBuild WriteCodeFragment.
|
||||||
|
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
1dfbd10f2273456d0b06a117863d60b5dc1ff37e
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
is_global = true
|
||||||
|
build_property.RootNamespace = SpaceInvaders
|
||||||
|
build_property.ProjectDir = D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\
|
||||||
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
|||||||
|
8a2286de6348420e0c7c0eea22eb2afbd701db39
|
||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\obj\Debug\netcoreapp2.2\SpaceInvaders.csproj.CoreCompileInputs.cache
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\obj\Debug\netcoreapp2.2\SpaceInvaders.AssemblyInfoInputs.cache
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\obj\Debug\netcoreapp2.2\SpaceInvaders.AssemblyInfo.cs
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\bin\Debug\netcoreapp2.2\SpaceInvaders.deps.json
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\bin\Debug\netcoreapp2.2\SpaceInvaders.runtimeconfig.json
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\bin\Debug\netcoreapp2.2\SpaceInvaders.runtimeconfig.dev.json
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\bin\Debug\netcoreapp2.2\SpaceInvaders.dll
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\bin\Debug\netcoreapp2.2\SpaceInvaders.pdb
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\obj\Debug\netcoreapp2.2\SpaceInvaders.dll
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\obj\Debug\netcoreapp2.2\SpaceInvaders.pdb
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\obj\Debug\netcoreapp2.2\SpaceInvaders.csprojAssemblyReference.cache
|
||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+5
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"dgSpecHash": "wH8AutPAZMHd3H7Vaw1k4HXYpf57wPKdvII7FWcN9lOOpOQ1/I/C1EtswtqLeR2JxIOeF8NNCltDSD1lfQN1kA==",
|
||||||
|
"success": true
|
||||||
|
}
|
||||||
+68
@@ -0,0 +1,68 @@
|
|||||||
|
{
|
||||||
|
"format": 1,
|
||||||
|
"restore": {
|
||||||
|
"D:\\2emeAnnee\\1trimestre\\projet_Spicy\\Spicy-08.09.2023-2 - Copie\\SpaceInvaders\\SpaceInvaders\\SpaceInvaders.csproj": {}
|
||||||
|
},
|
||||||
|
"projects": {
|
||||||
|
"D:\\2emeAnnee\\1trimestre\\projet_Spicy\\Spicy-08.09.2023-2 - Copie\\SpaceInvaders\\SpaceInvaders\\SpaceInvaders.csproj": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"restore": {
|
||||||
|
"projectUniqueName": "D:\\2emeAnnee\\1trimestre\\projet_Spicy\\Spicy-08.09.2023-2 - Copie\\SpaceInvaders\\SpaceInvaders\\SpaceInvaders.csproj",
|
||||||
|
"projectName": "SpaceInvaders",
|
||||||
|
"projectPath": "D:\\2emeAnnee\\1trimestre\\projet_Spicy\\Spicy-08.09.2023-2 - Copie\\SpaceInvaders\\SpaceInvaders\\SpaceInvaders.csproj",
|
||||||
|
"packagesPath": "C:\\Users\\pq81jlv\\.nuget\\packages\\",
|
||||||
|
"outputPath": "D:\\2emeAnnee\\1trimestre\\projet_Spicy\\Spicy-08.09.2023-2 - Copie\\SpaceInvaders\\SpaceInvaders\\obj\\",
|
||||||
|
"projectStyle": "PackageReference",
|
||||||
|
"fallbackFolders": [
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
|
||||||
|
],
|
||||||
|
"configFilePaths": [
|
||||||
|
"C:\\Users\\pq81jlv\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||||
|
],
|
||||||
|
"originalTargetFrameworks": [
|
||||||
|
"netcoreapp2.2"
|
||||||
|
],
|
||||||
|
"sources": {
|
||||||
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||||
|
"https://api.nuget.org/v3/index.json": {}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"netcoreapp2.2": {
|
||||||
|
"projectReferences": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"warningProperties": {
|
||||||
|
"warnAsError": [
|
||||||
|
"NU1605"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"netcoreapp2.2": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.App": {
|
||||||
|
"suppressParent": "All",
|
||||||
|
"target": "Package",
|
||||||
|
"version": "[2.2.0, )",
|
||||||
|
"autoReferenced": true
|
||||||
|
},
|
||||||
|
"MySql.Data": {
|
||||||
|
"target": "Package",
|
||||||
|
"version": "[8.1.0, )"
|
||||||
|
},
|
||||||
|
"System.Data.SqlClient": {
|
||||||
|
"target": "Package",
|
||||||
|
"version": "[4.8.5, )"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"imports": [
|
||||||
|
"net461"
|
||||||
|
],
|
||||||
|
"assetTargetFallback": true,
|
||||||
|
"warn": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+18
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||||
|
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||||
|
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||||
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||||
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\pq81jlv\.nuget\packages\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder</NuGetPackageFolders>
|
||||||
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||||
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.1.0</NuGetToolVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.2.0\build\netcoreapp2.2\Microsoft.NETCore.App.props" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.2.0\build\netcoreapp2.2\Microsoft.NETCore.App.props')" />
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
||||||
+14
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<Import Project="$(NuGetPackageRoot)system.runtime.compilerservices.unsafe\6.0.0\buildTransitive\netcoreapp2.0\System.Runtime.CompilerServices.Unsafe.targets" Condition="Exists('$(NuGetPackageRoot)system.runtime.compilerservices.unsafe\6.0.0\buildTransitive\netcoreapp2.0\System.Runtime.CompilerServices.Unsafe.targets')" />
|
||||||
|
<Import Project="$(NuGetPackageRoot)system.text.encodings.web\7.0.0\buildTransitive\netcoreapp2.0\System.Text.Encodings.Web.targets" Condition="Exists('$(NuGetPackageRoot)system.text.encodings.web\7.0.0\buildTransitive\netcoreapp2.0\System.Text.Encodings.Web.targets')" />
|
||||||
|
<Import Project="$(NuGetPackageRoot)system.text.json\7.0.1\buildTransitive\netcoreapp2.0\System.Text.Json.targets" Condition="Exists('$(NuGetPackageRoot)system.text.json\7.0.1\buildTransitive\netcoreapp2.0\System.Text.Json.targets')" />
|
||||||
|
<Import Project="$(NuGetPackageRoot)system.diagnostics.diagnosticsource\7.0.2\buildTransitive\netcoreapp2.0\System.Diagnostics.DiagnosticSource.targets" Condition="Exists('$(NuGetPackageRoot)system.diagnostics.diagnosticsource\7.0.2\buildTransitive\netcoreapp2.0\System.Diagnostics.DiagnosticSource.targets')" />
|
||||||
|
<Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\netstandard.library\2.0.3\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\netstandard.library\2.0.3\build\netstandard2.0\NETStandard.Library.targets')" />
|
||||||
|
<Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.2.0\build\netcoreapp2.2\Microsoft.NETCore.App.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.2.0\build\netcoreapp2.2\Microsoft.NETCore.App.targets')" />
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
||||||
+2648
File diff suppressed because it is too large
Load Diff
+52
@@ -0,0 +1,52 @@
|
|||||||
|
{
|
||||||
|
"version": 2,
|
||||||
|
"dgSpecHash": "z+kLbf6hVyPJSAIHMgIDzYi1I1xTXH4L9yw1C0x2Lmyj1lJiK2R1xAsb1nksSaXv4jwKfeUFobvE4Iypb0ssZA==",
|
||||||
|
"success": true,
|
||||||
|
"projectFilePath": "D:\\2emeAnnee\\1trimestre\\projet_Spicy\\Spicy-08.09.2023-2\\SpaceInvaders\\SpaceInvaders\\SpaceInvaders.csproj",
|
||||||
|
"expectedPackageFiles": [
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\google.protobuf\\3.21.9\\google.protobuf.3.21.9.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\k4os.compression.lz4\\1.3.5\\k4os.compression.lz4.1.3.5.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\k4os.compression.lz4.streams\\1.3.5\\k4os.compression.lz4.streams.1.3.5.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\k4os.hash.xxhash\\1.0.8\\k4os.hash.xxhash.1.0.8.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\microsoft.bcl.asyncinterfaces\\7.0.0\\microsoft.bcl.asyncinterfaces.7.0.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\microsoft.netcore.app\\2.2.0\\microsoft.netcore.app.2.2.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\microsoft.netcore.dotnetapphost\\2.2.0\\microsoft.netcore.dotnetapphost.2.2.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\microsoft.netcore.dotnethostpolicy\\2.2.0\\microsoft.netcore.dotnethostpolicy.2.2.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\microsoft.netcore.dotnethostresolver\\2.2.0\\microsoft.netcore.dotnethostresolver.2.2.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\microsoft.netcore.platforms\\3.1.0\\microsoft.netcore.platforms.3.1.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\microsoft.netcore.targets\\2.0.0\\microsoft.netcore.targets.2.0.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\microsoft.win32.registry\\4.7.0\\microsoft.win32.registry.4.7.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\mysql.data\\8.1.0\\mysql.data.8.1.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\netstandard.library\\2.0.3\\netstandard.library.2.0.3.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\portable.bouncycastle\\1.9.0\\portable.bouncycastle.1.9.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\runtime.native.system.data.sqlclient.sni\\4.7.0\\runtime.native.system.data.sqlclient.sni.4.7.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\runtime.win-arm64.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-arm64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\runtime.win-x64.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-x64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\runtime.win-x86.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-x86.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.buffers\\4.5.1\\system.buffers.4.5.1.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.configuration.configurationmanager\\4.4.1\\system.configuration.configurationmanager.4.4.1.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.data.sqlclient\\4.8.5\\system.data.sqlclient.4.8.5.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.diagnostics.diagnosticsource\\7.0.2\\system.diagnostics.diagnosticsource.7.0.2.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\system.io\\4.3.0\\system.io.4.3.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.io.pipelines\\5.0.2\\system.io.pipelines.5.0.2.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.memory\\4.5.5\\system.memory.4.5.5.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\system.numerics.vectors\\4.5.0\\system.numerics.vectors.4.5.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\system.reflection\\4.3.0\\system.reflection.4.3.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\system.reflection.primitives\\4.3.0\\system.reflection.primitives.4.3.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\system.runtime\\4.3.0\\system.runtime.4.3.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.runtime.compilerservices.unsafe\\6.0.0\\system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.runtime.loader\\4.3.0\\system.runtime.loader.4.3.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.security.accesscontrol\\4.7.0\\system.security.accesscontrol.4.7.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.security.cryptography.protecteddata\\4.4.0\\system.security.cryptography.protecteddata.4.4.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.security.permissions\\4.7.0\\system.security.permissions.4.7.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.security.principal.windows\\4.7.0\\system.security.principal.windows.4.7.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\system.text.encoding\\4.3.0\\system.text.encoding.4.3.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.text.encoding.codepages\\4.7.0\\system.text.encoding.codepages.4.7.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.text.encodings.web\\7.0.0\\system.text.encodings.web.7.0.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.text.json\\7.0.1\\system.text.json.7.0.1.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\system.threading.tasks\\4.3.0\\system.threading.tasks.4.3.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.threading.tasks.extensions\\4.5.4\\system.threading.tasks.extensions.4.5.4.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\zstdsharp.port\\0.7.1\\zstdsharp.port.0.7.1.nupkg.sha512"
|
||||||
|
],
|
||||||
|
"logs": []
|
||||||
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace SpaceInvaders
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Classe pour l'objet "tir"
|
||||||
|
/// </summary>
|
||||||
|
public class tir
|
||||||
|
{
|
||||||
|
public int X; //Position horizontal du tir
|
||||||
|
public int Y; //Position vertical du tir
|
||||||
|
public bool tirActivé= false; //Activer le tir
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Constructeur pour le tir
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="x">Position horizontal du tir </param>
|
||||||
|
/// <param name="y">Position vertical du tir</param>
|
||||||
|
public tir (int x, int y)
|
||||||
|
{
|
||||||
|
X = x; //Initialiser la position horizontal
|
||||||
|
Y = y; //Initaliser la position vertical
|
||||||
|
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Fonction pour activer le tir
|
||||||
|
/// </summary>
|
||||||
|
public void action ()
|
||||||
|
{
|
||||||
|
if(tirActivé) //Si le tir est activé
|
||||||
|
Y--; //La position vertical du tir va diminuer
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace SpaceInvaders
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Classe pour l'objet "vaisseau"
|
||||||
|
/// </summary>
|
||||||
|
public class vaisseau
|
||||||
|
{
|
||||||
|
public int X; //Position horizontal du vaisseau
|
||||||
|
public int Y; //Position vertical du vaisseau
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Constructeur du vaisseau
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="x">Position horizontal initial du vaisseau</param>
|
||||||
|
/// <param name="y">Position vertical initial du vausseau</param>
|
||||||
|
public vaisseau(int x, int y)
|
||||||
|
{
|
||||||
|
X = x; //Initialiser la position horizontal
|
||||||
|
Y = y; //Initialiser la position vertical
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Fonction pour déplacer le vaisseau à gauche
|
||||||
|
/// </summary>
|
||||||
|
public void MoveGauche()
|
||||||
|
{
|
||||||
|
if (X > 0) //Si le vaisseau atteint le bord droit
|
||||||
|
{
|
||||||
|
X--; //la position horizontal diminue de 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Fonction pour déplacer le vaissseau à droite
|
||||||
|
/// </summary>
|
||||||
|
public void MoveDroite()
|
||||||
|
{
|
||||||
|
if (X < Console.WindowWidth-1) //Si le vaisseau atteint le bord gauche
|
||||||
|
{
|
||||||
|
X++; //la position horizontal augmente de 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.29102.190
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpaceInvaders", "SpaceInvaders\SpaceInvaders.csproj", "{D314CB70-8EFD-4CF3-A3E2-23812018A419}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{D314CB70-8EFD-4CF3-A3E2-23812018A419}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{D314CB70-8EFD-4CF3-A3E2-23812018A419}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{D314CB70-8EFD-4CF3-A3E2-23812018A419}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{D314CB70-8EFD-4CF3-A3E2-23812018A419}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {3AA816CC-9CFF-4D31-82FA-2B69CB482366}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
@@ -0,0 +1,257 @@
|
|||||||
|
using System;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading;
|
||||||
|
using SpaceInvaders;
|
||||||
|
|
||||||
|
namespace Spicy_William
|
||||||
|
{
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
|
||||||
|
//Console.SetWindowSize(50, 30);
|
||||||
|
Menu mainMenu = new Menu();
|
||||||
|
mainMenu.Start();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//namespace Spicy_William
|
||||||
|
//{
|
||||||
|
// class Program
|
||||||
|
// {
|
||||||
|
// static int screenWidth = 40;
|
||||||
|
// static int playerX = 18;
|
||||||
|
// static int playerY = 8;
|
||||||
|
// static int enemyX = 18; // Posición horizontal del enemigo
|
||||||
|
// static int enemyY = 2; // Posición vertical del enemigo
|
||||||
|
// static bool movingRight = true; // Dirección de movimiento del enemigo
|
||||||
|
|
||||||
|
|
||||||
|
// static void Main(string[] args)
|
||||||
|
// {
|
||||||
|
|
||||||
|
|
||||||
|
// string[] menuOptions = { "1. Jouer", "2. Options ", "3. Highscore", "4. Résultats", "5. Quitter" };
|
||||||
|
// int selectedOption = 0;
|
||||||
|
|
||||||
|
// while (true)
|
||||||
|
// {
|
||||||
|
// Console.Clear();
|
||||||
|
|
||||||
|
|
||||||
|
// Console.WriteLine("----------------- ");
|
||||||
|
// Console.WriteLine("Spicy Invader II ");
|
||||||
|
// Console.WriteLine("----------------- ");
|
||||||
|
|
||||||
|
// for (int i = 0; i < menuOptions.Length; i++)
|
||||||
|
// {
|
||||||
|
// if (i == selectedOption)
|
||||||
|
// {
|
||||||
|
// Console.ForegroundColor = ConsoleColor.White;
|
||||||
|
// Console.BackgroundColor = ConsoleColor.DarkMagenta;
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// Console.ForegroundColor = ConsoleColor.Gray;
|
||||||
|
// Console.BackgroundColor = ConsoleColor.Black;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// Console.WriteLine(menuOptions[i]);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// Console.ResetColor();
|
||||||
|
|
||||||
|
// ConsoleKeyInfo keyInfo = Console.ReadKey();
|
||||||
|
// if (keyInfo.Key == ConsoleKey.UpArrow)
|
||||||
|
// {
|
||||||
|
// selectedOption = (selectedOption - 1 + menuOptions.Length) % menuOptions.Length;
|
||||||
|
// }
|
||||||
|
// else if (keyInfo.Key == ConsoleKey.DownArrow)
|
||||||
|
// {
|
||||||
|
// selectedOption = (selectedOption + 1) % menuOptions.Length;
|
||||||
|
// }
|
||||||
|
// else if (keyInfo.Key == ConsoleKey.Enter)
|
||||||
|
// {
|
||||||
|
// if (selectedOption == menuOptions.Length - 1)
|
||||||
|
// {
|
||||||
|
// break; // Sortir du boucle
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// PerformAction(selectedOption);
|
||||||
|
|
||||||
|
// Console.ReadKey();
|
||||||
|
// }
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
// /*Action de choisir chaque option du menu*/
|
||||||
|
// static void PerformAction(int option)
|
||||||
|
// {
|
||||||
|
// switch (option)
|
||||||
|
// {
|
||||||
|
// case 0:
|
||||||
|
|
||||||
|
// Console.Clear();
|
||||||
|
// SpicyInvaders();
|
||||||
|
// break;
|
||||||
|
|
||||||
|
// case 1:
|
||||||
|
// Console.Clear();
|
||||||
|
// Console.WriteLine("");
|
||||||
|
// break;
|
||||||
|
// case 2:
|
||||||
|
// Console.Clear();
|
||||||
|
// Highscore();
|
||||||
|
// break;
|
||||||
|
|
||||||
|
// case 3:
|
||||||
|
// Console.Clear();
|
||||||
|
// Console.WriteLine("");
|
||||||
|
// break;
|
||||||
|
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// static void Highscore()
|
||||||
|
// {
|
||||||
|
// //string connectionString = "Server=4d41d5b63e1b;Database=db_space_invaders;Uid=root;Pwd=root;";
|
||||||
|
|
||||||
|
// //MySqlConnection connection = new MySqlConnection(connectionString);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// /*Méthode pour l'affichage du jeu*/
|
||||||
|
// static void SpicyInvaders()
|
||||||
|
// {
|
||||||
|
// Console.WriteLine("Realizando la acción de la Opción 3");
|
||||||
|
|
||||||
|
// Console.CursorVisible = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// while (true)
|
||||||
|
// {
|
||||||
|
// if (Console.KeyAvailable)
|
||||||
|
// {
|
||||||
|
// ConsoleKeyInfo key = Console.ReadKey();
|
||||||
|
// if (key.Key == ConsoleKey.LeftArrow && playerX > 0)
|
||||||
|
// {
|
||||||
|
// playerX--;
|
||||||
|
// }
|
||||||
|
// else if (key.Key == ConsoleKey.RightArrow && playerX < Console.WindowWidth)
|
||||||
|
// {
|
||||||
|
// playerX++;
|
||||||
|
// }
|
||||||
|
// else if (key.Key == ConsoleKey.Spacebar)
|
||||||
|
// {
|
||||||
|
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// UpdateEnemyPosition();
|
||||||
|
// Thread.Sleep(15);
|
||||||
|
// DrawGame();
|
||||||
|
// Thread.Sleep(125);
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
// /*Mettre à jour la place de l'ennemi-s*/
|
||||||
|
// static void UpdateEnemyPosition()
|
||||||
|
// {
|
||||||
|
// // Cambiar de dirección al llegar a los bordes
|
||||||
|
// if (enemyX == Console.WindowWidth - 6)
|
||||||
|
// {
|
||||||
|
// movingRight = false;
|
||||||
|
// }
|
||||||
|
// else if (enemyX == 0)
|
||||||
|
// {
|
||||||
|
// movingRight = true;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// // Mover el enemigo
|
||||||
|
// if (movingRight)
|
||||||
|
// {
|
||||||
|
// enemyX++;
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// enemyX--;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// /*Dessiner le joueur et l'ennemi*/
|
||||||
|
// static void DrawGame()
|
||||||
|
// {
|
||||||
|
// Console.CursorVisible = false;
|
||||||
|
// Console.Clear();
|
||||||
|
|
||||||
|
// for (int y = 0; y < 12; y++)
|
||||||
|
// {
|
||||||
|
// for (int x = 0; x < Console.WindowWidth; x++)
|
||||||
|
// {
|
||||||
|
// if (y == playerY && x == playerX)
|
||||||
|
// {
|
||||||
|
// Console.Write("▲");
|
||||||
|
// }
|
||||||
|
// else if (x == enemyX && y == enemyY)
|
||||||
|
// {
|
||||||
|
// Console.Write(" ■");
|
||||||
|
// Console.Write(" ■");
|
||||||
|
// Console.Write(" ■");
|
||||||
|
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// Console.Write(" ");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// }
|
||||||
|
//}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="MySql.Data" Version="8.1.0" />
|
||||||
|
<PackageReference Include="System.Data.SqlClient" Version="4.8.5" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
+717
@@ -0,0 +1,717 @@
|
|||||||
|
{
|
||||||
|
"runtimeTarget": {
|
||||||
|
"name": ".NETCoreApp,Version=v2.2",
|
||||||
|
"signature": "3c34e6ca5581a2c5d8a3099a1903480bae6d4343"
|
||||||
|
},
|
||||||
|
"compilationOptions": {},
|
||||||
|
"targets": {
|
||||||
|
".NETCoreApp,Version=v2.2": {
|
||||||
|
"SpaceInvaders/1.0.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"MySql.Data": "8.1.0",
|
||||||
|
"System.Data.SqlClient": "4.8.5"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"SpaceInvaders.dll": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Google.Protobuf/3.21.9": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Memory": "4.5.5",
|
||||||
|
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/Google.Protobuf.dll": {
|
||||||
|
"assemblyVersion": "3.21.9.0",
|
||||||
|
"fileVersion": "3.21.9.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"K4os.Compression.LZ4/1.3.5": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Memory": "4.5.5",
|
||||||
|
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/K4os.Compression.LZ4.dll": {
|
||||||
|
"assemblyVersion": "1.3.5.0",
|
||||||
|
"fileVersion": "1.3.5.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"K4os.Compression.LZ4.Streams/1.3.5": {
|
||||||
|
"dependencies": {
|
||||||
|
"K4os.Compression.LZ4": "1.3.5",
|
||||||
|
"K4os.Hash.xxHash": "1.0.8",
|
||||||
|
"System.IO.Pipelines": "5.0.2"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/K4os.Compression.LZ4.Streams.dll": {
|
||||||
|
"assemblyVersion": "1.3.5.0",
|
||||||
|
"fileVersion": "1.3.5.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"K4os.Hash.xxHash/1.0.8": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Memory": "4.5.5",
|
||||||
|
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/K4os.Hash.xxHash.dll": {
|
||||||
|
"assemblyVersion": "1.0.8.0",
|
||||||
|
"fileVersion": "1.0.8.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Microsoft.Bcl.AsyncInterfaces/7.0.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Threading.Tasks.Extensions": "4.5.4"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {
|
||||||
|
"assemblyVersion": "7.0.0.0",
|
||||||
|
"fileVersion": "7.0.22.51805"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Microsoft.NETCore.Platforms/3.1.0": {},
|
||||||
|
"Microsoft.Win32.Registry/4.7.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Security.AccessControl": "4.7.0",
|
||||||
|
"System.Security.Principal.Windows": "4.7.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/Microsoft.Win32.Registry.dll": {
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/unix/lib/netstandard2.0/Microsoft.Win32.Registry.dll": {
|
||||||
|
"rid": "unix",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
},
|
||||||
|
"runtimes/win/lib/netstandard2.0/Microsoft.Win32.Registry.dll": {
|
||||||
|
"rid": "win",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"MySql.Data/8.1.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Google.Protobuf": "3.21.9",
|
||||||
|
"K4os.Compression.LZ4.Streams": "1.3.5",
|
||||||
|
"Portable.BouncyCastle": "1.9.0",
|
||||||
|
"System.Buffers": "4.5.1",
|
||||||
|
"System.Configuration.ConfigurationManager": "4.4.1",
|
||||||
|
"System.Diagnostics.DiagnosticSource": "7.0.2",
|
||||||
|
"System.Runtime.CompilerServices.Unsafe": "6.0.0",
|
||||||
|
"System.Runtime.Loader": "4.3.0",
|
||||||
|
"System.Security.Permissions": "4.7.0",
|
||||||
|
"System.Text.Encoding.CodePages": "4.7.0",
|
||||||
|
"System.Text.Json": "7.0.1",
|
||||||
|
"System.Threading.Tasks.Extensions": "4.5.4",
|
||||||
|
"ZstdSharp.Port": "0.7.1"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/MySql.Data.dll": {
|
||||||
|
"assemblyVersion": "8.1.0.0",
|
||||||
|
"fileVersion": "8.1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/win-x64/native/comerr64.dll": {
|
||||||
|
"rid": "win-x64",
|
||||||
|
"assetType": "native",
|
||||||
|
"fileVersion": "4.1.0.0"
|
||||||
|
},
|
||||||
|
"runtimes/win-x64/native/gssapi64.dll": {
|
||||||
|
"rid": "win-x64",
|
||||||
|
"assetType": "native",
|
||||||
|
"fileVersion": "4.1.0.0"
|
||||||
|
},
|
||||||
|
"runtimes/win-x64/native/k5sprt64.dll": {
|
||||||
|
"rid": "win-x64",
|
||||||
|
"assetType": "native",
|
||||||
|
"fileVersion": "4.1.0.0"
|
||||||
|
},
|
||||||
|
"runtimes/win-x64/native/krb5_64.dll": {
|
||||||
|
"rid": "win-x64",
|
||||||
|
"assetType": "native",
|
||||||
|
"fileVersion": "4.1.0.0"
|
||||||
|
},
|
||||||
|
"runtimes/win-x64/native/krbcc64.dll": {
|
||||||
|
"rid": "win-x64",
|
||||||
|
"assetType": "native",
|
||||||
|
"fileVersion": "4.1.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Portable.BouncyCastle/1.9.0": {
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/BouncyCastle.Crypto.dll": {
|
||||||
|
"assemblyVersion": "1.9.0.0",
|
||||||
|
"fileVersion": "1.9.0.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtime.native.System.Data.SqlClient.sni/4.7.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"runtime.win-arm64.runtime.native.System.Data.SqlClient.sni": "4.4.0",
|
||||||
|
"runtime.win-x64.runtime.native.System.Data.SqlClient.sni": "4.4.0",
|
||||||
|
"runtime.win-x86.runtime.native.System.Data.SqlClient.sni": "4.4.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtime.win-arm64.runtime.native.System.Data.SqlClient.sni/4.4.0": {
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/win-arm64/native/sni.dll": {
|
||||||
|
"rid": "win-arm64",
|
||||||
|
"assetType": "native",
|
||||||
|
"fileVersion": "4.6.25512.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtime.win-x64.runtime.native.System.Data.SqlClient.sni/4.4.0": {
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/win-x64/native/sni.dll": {
|
||||||
|
"rid": "win-x64",
|
||||||
|
"assetType": "native",
|
||||||
|
"fileVersion": "4.6.25512.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtime.win-x86.runtime.native.System.Data.SqlClient.sni/4.4.0": {
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/win-x86/native/sni.dll": {
|
||||||
|
"rid": "win-x86",
|
||||||
|
"assetType": "native",
|
||||||
|
"fileVersion": "4.6.25512.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Buffers/4.5.1": {},
|
||||||
|
"System.Configuration.ConfigurationManager/4.4.1": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Security.Cryptography.ProtectedData": "4.4.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Configuration.ConfigurationManager.dll": {
|
||||||
|
"assemblyVersion": "4.0.0.0",
|
||||||
|
"fileVersion": "4.6.25921.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Data.SqlClient/4.8.5": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.Win32.Registry": "4.7.0",
|
||||||
|
"System.Diagnostics.DiagnosticSource": "7.0.2",
|
||||||
|
"System.Security.Principal.Windows": "4.7.0",
|
||||||
|
"System.Text.Encoding.CodePages": "4.7.0",
|
||||||
|
"runtime.native.System.Data.SqlClient.sni": "4.7.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netcoreapp2.1/System.Data.SqlClient.dll": {
|
||||||
|
"assemblyVersion": "4.6.1.5",
|
||||||
|
"fileVersion": "4.700.22.51706"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/unix/lib/netcoreapp2.1/System.Data.SqlClient.dll": {
|
||||||
|
"rid": "unix",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.6.1.5",
|
||||||
|
"fileVersion": "4.700.22.51706"
|
||||||
|
},
|
||||||
|
"runtimes/win/lib/netcoreapp2.1/System.Data.SqlClient.dll": {
|
||||||
|
"rid": "win",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.6.1.5",
|
||||||
|
"fileVersion": "4.700.22.51706"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Diagnostics.DiagnosticSource/7.0.2": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Memory": "4.5.5",
|
||||||
|
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Diagnostics.DiagnosticSource.dll": {
|
||||||
|
"assemblyVersion": "7.0.0.0",
|
||||||
|
"fileVersion": "7.0.423.11508"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.IO/4.3.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0",
|
||||||
|
"System.Runtime": "4.3.0",
|
||||||
|
"System.Text.Encoding": "4.3.0",
|
||||||
|
"System.Threading.Tasks": "4.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.IO.Pipelines/5.0.2": {
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.IO.Pipelines.dll": {
|
||||||
|
"assemblyVersion": "5.0.0.1",
|
||||||
|
"fileVersion": "5.0.1522.11506"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Memory/4.5.5": {},
|
||||||
|
"System.Numerics.Vectors/4.5.0": {},
|
||||||
|
"System.Reflection/4.3.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0",
|
||||||
|
"System.IO": "4.3.0",
|
||||||
|
"System.Reflection.Primitives": "4.3.0",
|
||||||
|
"System.Runtime": "4.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Reflection.Primitives/4.3.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0",
|
||||||
|
"System.Runtime": "4.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Runtime/4.3.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Runtime.CompilerServices.Unsafe/6.0.0": {
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {
|
||||||
|
"assemblyVersion": "6.0.0.0",
|
||||||
|
"fileVersion": "6.0.21.52210"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Runtime.Loader/4.3.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.IO": "4.3.0",
|
||||||
|
"System.Reflection": "4.3.0",
|
||||||
|
"System.Runtime": "4.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Security.AccessControl/4.7.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0",
|
||||||
|
"System.Security.Principal.Windows": "4.7.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Security.AccessControl.dll": {
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/win/lib/netcoreapp2.0/System.Security.AccessControl.dll": {
|
||||||
|
"rid": "win",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Security.Cryptography.ProtectedData/4.4.0": {
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll": {
|
||||||
|
"assemblyVersion": "4.0.2.0",
|
||||||
|
"fileVersion": "4.6.25519.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll": {
|
||||||
|
"rid": "win",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.0.2.0",
|
||||||
|
"fileVersion": "4.6.25519.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Security.Permissions/4.7.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Security.AccessControl": "4.7.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Security.Permissions.dll": {
|
||||||
|
"assemblyVersion": "4.0.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Security.Principal.Windows/4.7.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Security.Principal.Windows.dll": {
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/unix/lib/netcoreapp2.1/System.Security.Principal.Windows.dll": {
|
||||||
|
"rid": "unix",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
},
|
||||||
|
"runtimes/win/lib/netcoreapp2.1/System.Security.Principal.Windows.dll": {
|
||||||
|
"rid": "win",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Text.Encoding/4.3.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0",
|
||||||
|
"System.Runtime": "4.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Text.Encoding.CodePages/4.7.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0",
|
||||||
|
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Text.Encoding.CodePages.dll": {
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/win/lib/netcoreapp2.0/System.Text.Encoding.CodePages.dll": {
|
||||||
|
"rid": "win",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.1.3.0",
|
||||||
|
"fileVersion": "4.700.19.56404"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Text.Encodings.Web/7.0.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Buffers": "4.5.1",
|
||||||
|
"System.Memory": "4.5.5",
|
||||||
|
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Text.Encodings.Web.dll": {
|
||||||
|
"assemblyVersion": "7.0.0.0",
|
||||||
|
"fileVersion": "7.0.22.51805"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Text.Json/7.0.1": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.Bcl.AsyncInterfaces": "7.0.0",
|
||||||
|
"System.Buffers": "4.5.1",
|
||||||
|
"System.Memory": "4.5.5",
|
||||||
|
"System.Numerics.Vectors": "4.5.0",
|
||||||
|
"System.Runtime.CompilerServices.Unsafe": "6.0.0",
|
||||||
|
"System.Text.Encodings.Web": "7.0.0",
|
||||||
|
"System.Threading.Tasks.Extensions": "4.5.4"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Text.Json.dll": {
|
||||||
|
"assemblyVersion": "7.0.0.0",
|
||||||
|
"fileVersion": "7.0.122.56804"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Threading.Tasks/4.3.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "3.1.0",
|
||||||
|
"System.Runtime": "4.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Threading.Tasks.Extensions/4.5.4": {},
|
||||||
|
"ZstdSharp.Port/0.7.1": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.Bcl.AsyncInterfaces": "7.0.0",
|
||||||
|
"System.Memory": "4.5.5"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/ZstdSharp.dll": {
|
||||||
|
"assemblyVersion": "0.7.1.0",
|
||||||
|
"fileVersion": "0.7.1.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"libraries": {
|
||||||
|
"SpaceInvaders/1.0.0": {
|
||||||
|
"type": "project",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
|
},
|
||||||
|
"Google.Protobuf/3.21.9": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-OTpFujTgkmqMLbg3KT7F/iuKi1rg6s5FCS2M9XcVLDn40zL8wgXm37CY/F6MeOEXKjdcnXGCN/h7oyMkVydVsg==",
|
||||||
|
"path": "google.protobuf/3.21.9",
|
||||||
|
"hashPath": "google.protobuf.3.21.9.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"K4os.Compression.LZ4/1.3.5": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-TS4mqlT0X1OlnvOGNfl02QdVUhuqgWuCnn7UxupIa7C9Pb6qlQ5yZA2sPhRh0OSmVULaQU64KV4wJuu//UyVQQ==",
|
||||||
|
"path": "k4os.compression.lz4/1.3.5",
|
||||||
|
"hashPath": "k4os.compression.lz4.1.3.5.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"K4os.Compression.LZ4.Streams/1.3.5": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-M0NufZI8ym3mm6F6HMSPz1jw7TJGdY74fjAtbIXATmnAva/8xLz50eQZJI9tf9mMeHUaFDg76N1BmEh8GR5zeA==",
|
||||||
|
"path": "k4os.compression.lz4.streams/1.3.5",
|
||||||
|
"hashPath": "k4os.compression.lz4.streams.1.3.5.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"K4os.Hash.xxHash/1.0.8": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-Wp2F7BamQ2Q/7Hk834nV9vRQapgcr8kgv9Jvfm8J3D0IhDqZMMl+a2yxUq5ltJitvXvQfB8W6K4F4fCbw/P6YQ==",
|
||||||
|
"path": "k4os.hash.xxhash/1.0.8",
|
||||||
|
"hashPath": "k4os.hash.xxhash.1.0.8.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"Microsoft.Bcl.AsyncInterfaces/7.0.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-3aeMZ1N0lJoSyzqiP03hqemtb1BijhsJADdobn/4nsMJ8V1H+CrpuduUe4hlRdx+ikBQju1VGjMD1GJ3Sk05Eg==",
|
||||||
|
"path": "microsoft.bcl.asyncinterfaces/7.0.0",
|
||||||
|
"hashPath": "microsoft.bcl.asyncinterfaces.7.0.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"Microsoft.NETCore.Platforms/3.1.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-z7aeg8oHln2CuNulfhiLYxCVMPEwBl3rzicjvIX+4sUuCwvXw5oXQEtbiU2c0z4qYL5L3Kmx0mMA/+t/SbY67w==",
|
||||||
|
"path": "microsoft.netcore.platforms/3.1.0",
|
||||||
|
"hashPath": "microsoft.netcore.platforms.3.1.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"Microsoft.Win32.Registry/4.7.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-KSrRMb5vNi0CWSGG1++id2ZOs/1QhRqROt+qgbEAdQuGjGrFcl4AOl4/exGPUYz2wUnU42nvJqon1T3U0kPXLA==",
|
||||||
|
"path": "microsoft.win32.registry/4.7.0",
|
||||||
|
"hashPath": "microsoft.win32.registry.4.7.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"MySql.Data/8.1.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-7kEJLyty7HcqJD0lnfs+2fdMrvCl0RY5oykvZThbmg6QVLT55dwygI69Eqxl0M6IThP9woyjpsezT6m7gKRrLA==",
|
||||||
|
"path": "mysql.data/8.1.0",
|
||||||
|
"hashPath": "mysql.data.8.1.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"Portable.BouncyCastle/1.9.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-eZZBCABzVOek+id9Xy04HhmgykF0wZg9wpByzrWN7q8qEI0Qen9b7tfd7w8VA3dOeesumMG7C5ZPy0jk7PSRHw==",
|
||||||
|
"path": "portable.bouncycastle/1.9.0",
|
||||||
|
"hashPath": "portable.bouncycastle.1.9.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"runtime.native.System.Data.SqlClient.sni/4.7.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-9kyFSIdN3T0qjDQ2R0HRXYIhS3l5psBzQi6qqhdLz+SzFyEy4sVxNOke+yyYv8Cu8rPER12c3RDjLT8wF3WBYQ==",
|
||||||
|
"path": "runtime.native.system.data.sqlclient.sni/4.7.0",
|
||||||
|
"hashPath": "runtime.native.system.data.sqlclient.sni.4.7.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"runtime.win-arm64.runtime.native.System.Data.SqlClient.sni/4.4.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-LbrynESTp3bm5O/+jGL8v0Qg5SJlTV08lpIpFesXjF6uGNMWqFnUQbYBJwZTeua6E/Y7FIM1C54Ey1btLWupdg==",
|
||||||
|
"path": "runtime.win-arm64.runtime.native.system.data.sqlclient.sni/4.4.0",
|
||||||
|
"hashPath": "runtime.win-arm64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"runtime.win-x64.runtime.native.System.Data.SqlClient.sni/4.4.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-38ugOfkYJqJoX9g6EYRlZB5U2ZJH51UP8ptxZgdpS07FgOEToV+lS11ouNK2PM12Pr6X/PpT5jK82G3DwH/SxQ==",
|
||||||
|
"path": "runtime.win-x64.runtime.native.system.data.sqlclient.sni/4.4.0",
|
||||||
|
"hashPath": "runtime.win-x64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"runtime.win-x86.runtime.native.System.Data.SqlClient.sni/4.4.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-YhEdSQUsTx+C8m8Bw7ar5/VesXvCFMItyZF7G1AUY+OM0VPZUOeAVpJ4Wl6fydBGUYZxojTDR3I6Bj/+BPkJNA==",
|
||||||
|
"path": "runtime.win-x86.runtime.native.system.data.sqlclient.sni/4.4.0",
|
||||||
|
"hashPath": "runtime.win-x86.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Buffers/4.5.1": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==",
|
||||||
|
"path": "system.buffers/4.5.1",
|
||||||
|
"hashPath": "system.buffers.4.5.1.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Configuration.ConfigurationManager/4.4.1": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-jz3TWKMAeuDEyrPCK5Jyt4bzQcmzUIMcY9Ud6PkElFxTfnsihV+9N/UCqvxe1z5gc7jMYAnj7V1COMS9QKIuHQ==",
|
||||||
|
"path": "system.configuration.configurationmanager/4.4.1",
|
||||||
|
"hashPath": "system.configuration.configurationmanager.4.4.1.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Data.SqlClient/4.8.5": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-fRqxut4lrndPHrXD+ht1XRmCL3obuKldm4XjCRYS9p5f7FSR7shBxAwTkDrpFMsHC9BhNgjjmUtiIjvehn5zkg==",
|
||||||
|
"path": "system.data.sqlclient/4.8.5",
|
||||||
|
"hashPath": "system.data.sqlclient.4.8.5.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Diagnostics.DiagnosticSource/7.0.2": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-hYr3I9N9811e0Bjf2WNwAGGyTuAFbbTgX1RPLt/3Wbm68x3IGcX5Cl75CMmgT6WlNwLQ2tCCWfqYPpypjaf2xA==",
|
||||||
|
"path": "system.diagnostics.diagnosticsource/7.0.2",
|
||||||
|
"hashPath": "system.diagnostics.diagnosticsource.7.0.2.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.IO/4.3.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==",
|
||||||
|
"path": "system.io/4.3.0",
|
||||||
|
"hashPath": "system.io.4.3.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.IO.Pipelines/5.0.2": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-Iew+dfa6FFiyvWBdRmXApixRY1db+beyutpIck4SOSe0NLM8FD/7AD54MscqVLhvfSMLHO7KadjTRT7fqxOGTA==",
|
||||||
|
"path": "system.io.pipelines/5.0.2",
|
||||||
|
"hashPath": "system.io.pipelines.5.0.2.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Memory/4.5.5": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==",
|
||||||
|
"path": "system.memory/4.5.5",
|
||||||
|
"hashPath": "system.memory.4.5.5.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Numerics.Vectors/4.5.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-QQTlPTl06J/iiDbJCiepZ4H//BVraReU4O4EoRw1U02H5TLUIT7xn3GnDp9AXPSlJUDyFs4uWjWafNX6WrAojQ==",
|
||||||
|
"path": "system.numerics.vectors/4.5.0",
|
||||||
|
"hashPath": "system.numerics.vectors.4.5.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Reflection/4.3.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==",
|
||||||
|
"path": "system.reflection/4.3.0",
|
||||||
|
"hashPath": "system.reflection.4.3.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Reflection.Primitives/4.3.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==",
|
||||||
|
"path": "system.reflection.primitives/4.3.0",
|
||||||
|
"hashPath": "system.reflection.primitives.4.3.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Runtime/4.3.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==",
|
||||||
|
"path": "system.runtime/4.3.0",
|
||||||
|
"hashPath": "system.runtime.4.3.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Runtime.CompilerServices.Unsafe/6.0.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==",
|
||||||
|
"path": "system.runtime.compilerservices.unsafe/6.0.0",
|
||||||
|
"hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Runtime.Loader/4.3.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-DHMaRn8D8YCK2GG2pw+UzNxn/OHVfaWx7OTLBD/hPegHZZgcZh3H6seWegrC4BYwsfuGrywIuT+MQs+rPqRLTQ==",
|
||||||
|
"path": "system.runtime.loader/4.3.0",
|
||||||
|
"hashPath": "system.runtime.loader.4.3.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Security.AccessControl/4.7.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-JECvTt5aFF3WT3gHpfofL2MNNP6v84sxtXxpqhLBCcDRzqsPBmHhQ6shv4DwwN2tRlzsUxtb3G9M3763rbXKDg==",
|
||||||
|
"path": "system.security.accesscontrol/4.7.0",
|
||||||
|
"hashPath": "system.security.accesscontrol.4.7.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Security.Cryptography.ProtectedData/4.4.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-cJV7ScGW7EhatRsjehfvvYVBvtiSMKgN8bOVI0bQhnF5bU7vnHVIsH49Kva7i7GWaWYvmEzkYVk1TC+gZYBEog==",
|
||||||
|
"path": "system.security.cryptography.protecteddata/4.4.0",
|
||||||
|
"hashPath": "system.security.cryptography.protecteddata.4.4.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Security.Permissions/4.7.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-dkOV6YYVBnYRa15/yv004eCGRBVADXw8qRbbNiCn/XpdJSUXkkUeIvdvFHkvnko4CdKMqG8yRHC4ox83LSlMsQ==",
|
||||||
|
"path": "system.security.permissions/4.7.0",
|
||||||
|
"hashPath": "system.security.permissions.4.7.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Security.Principal.Windows/4.7.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-ojD0PX0XhneCsUbAZVKdb7h/70vyYMDYs85lwEI+LngEONe/17A0cFaRFqZU+sOEidcVswYWikYOQ9PPfjlbtQ==",
|
||||||
|
"path": "system.security.principal.windows/4.7.0",
|
||||||
|
"hashPath": "system.security.principal.windows.4.7.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Text.Encoding/4.3.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==",
|
||||||
|
"path": "system.text.encoding/4.3.0",
|
||||||
|
"hashPath": "system.text.encoding.4.3.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Text.Encoding.CodePages/4.7.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-aeu4FlaUTemuT1qOd1MyU4T516QR4Fy+9yDbwWMPHOHy7U8FD6SgTzdZFO7gHcfAPHtECqInbwklVvUK4RHcNg==",
|
||||||
|
"path": "system.text.encoding.codepages/4.7.0",
|
||||||
|
"hashPath": "system.text.encoding.codepages.4.7.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Text.Encodings.Web/7.0.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-OP6umVGxc0Z0MvZQBVigj4/U31Pw72ITihDWP9WiWDm+q5aoe0GaJivsfYGq53o6dxH7DcXWiCTl7+0o2CGdmg==",
|
||||||
|
"path": "system.text.encodings.web/7.0.0",
|
||||||
|
"hashPath": "system.text.encodings.web.7.0.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Text.Json/7.0.1": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-OtDEmCCiNl8JAduFKZ/r0Sw6XZNHwIicUYy/mXgMDGeOsZLshH37qi3oPRzFYiryVktiMoQLByMGPtRCEMYbeQ==",
|
||||||
|
"path": "system.text.json/7.0.1",
|
||||||
|
"hashPath": "system.text.json.7.0.1.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Threading.Tasks/4.3.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==",
|
||||||
|
"path": "system.threading.tasks/4.3.0",
|
||||||
|
"hashPath": "system.threading.tasks.4.3.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Threading.Tasks.Extensions/4.5.4": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==",
|
||||||
|
"path": "system.threading.tasks.extensions/4.5.4",
|
||||||
|
"hashPath": "system.threading.tasks.extensions.4.5.4.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"ZstdSharp.Port/0.7.1": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-Idgg+mJEyAujqDPzA3APy9dNoyw0YQcNA65GgYjktDRtJ+nvx/hv+J+m6Eax3JJMGEYGy04oc5YNP6ZvQ3Y1vQ==",
|
||||||
|
"path": "zstdsharp.port/0.7.1",
|
||||||
|
"hashPath": "zstdsharp.port.0.7.1.nupkg.sha512"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+9
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"additionalProbingPaths": [
|
||||||
|
"C:\\Users\\pq81jlv\\.dotnet\\store\\|arch|\\|tfm|",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
+9
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"tfm": "netcoreapp2.2",
|
||||||
|
"framework": {
|
||||||
|
"name": "Microsoft.NETCore.App",
|
||||||
|
"version": "2.2.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace SpaceInvaders
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Classe pour l'objet "ennemi"
|
||||||
|
/// </summary>
|
||||||
|
public class ennemi
|
||||||
|
{
|
||||||
|
public int X; //Position horizontal de l'ennemi
|
||||||
|
public int Y; //Position vertical de l'ennemi
|
||||||
|
public bool MoveDroite; //Boolean pour indiquer que l'ennemi va à droite ou pas
|
||||||
|
public bool MoveDown;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Constructeur de l'ennemi
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="x">Position horizontal initial </param>
|
||||||
|
/// <param name="y">Position vertical initial </param>
|
||||||
|
public ennemi(int x, int y)
|
||||||
|
{
|
||||||
|
X = x; //Initialiser la position horizontal de l'ennemi
|
||||||
|
Y = y; //Initialiser la position vertival de l'ennemi
|
||||||
|
MoveDroite = true; //L'ennemi se déplace à droite
|
||||||
|
MoveDown = true; //L'ennemi descends
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Fonction pour actualiser la position de l'ennemi
|
||||||
|
/// </summary>
|
||||||
|
public void positionNouvelle()
|
||||||
|
{
|
||||||
|
//Si l'ennemi atteint le bord droit de la console
|
||||||
|
if (X == Console.WindowWidth - 6)
|
||||||
|
{
|
||||||
|
MoveDroite = false; //l'ennemi arrête d'aller à droite
|
||||||
|
MoveDown = true; //l'ennemi descends
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
//Si l'ennemi atteint le bord gauche de la console
|
||||||
|
else if (X == 0)
|
||||||
|
{
|
||||||
|
MoveDroite = true; //l'ennemi commence aller à droite
|
||||||
|
MoveDown = true; //l'ennemi descends
|
||||||
|
|
||||||
|
}
|
||||||
|
//Si l'ennemi se déplace a droite
|
||||||
|
if (MoveDroite)
|
||||||
|
{
|
||||||
|
X++; //La position horizontal augmente de 1
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
X--; //Sinon la position vertical va diminuer de 1
|
||||||
|
}
|
||||||
|
//Si l'ennemi descends
|
||||||
|
if (MoveDown)
|
||||||
|
{
|
||||||
|
Y++; //La position vertical diminue de 1
|
||||||
|
MoveDown = false; //Il arrête de descendre
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,157 @@
|
|||||||
|
using System;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace SpaceInvaders
|
||||||
|
{
|
||||||
|
public class jeu
|
||||||
|
{
|
||||||
|
// Déclaration des variables pour les éléments du jeu : ennemi, vaisseau et tir
|
||||||
|
private ennemi _ennemi;
|
||||||
|
private vaisseau _vaisseau;
|
||||||
|
private tir _tir;
|
||||||
|
public int score = 0;
|
||||||
|
|
||||||
|
// Constructeur qui initialise le vaisseau et l'ennemi
|
||||||
|
public jeu(ennemi ennemi, vaisseau vaisseau)
|
||||||
|
{
|
||||||
|
_ennemi = ennemi;
|
||||||
|
_vaisseau = vaisseau;
|
||||||
|
|
||||||
|
}
|
||||||
|
// Fonction principale pour démarrer le jeu
|
||||||
|
public void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
Console.CursorVisible = false;
|
||||||
|
while (true)
|
||||||
|
{
|
||||||
|
Update();
|
||||||
|
Draw();
|
||||||
|
Thread.Sleep(90);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
GérerEntrée(); // Gère les entrées de l'utilisateur
|
||||||
|
_ennemi.positionNouvelle();// Met à jour la position de l'ennemi
|
||||||
|
MettreAJouerTir(); // Met à jour la position du tir et vérifie les collisions
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Gère les entrées de l'utilisateur
|
||||||
|
/// </summary>
|
||||||
|
private void GérerEntrée()
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
while (Console.KeyAvailable)
|
||||||
|
{
|
||||||
|
ConsoleKeyInfo key = Console.ReadKey(true);
|
||||||
|
switch (key.Key)
|
||||||
|
{
|
||||||
|
case ConsoleKey.LeftArrow:
|
||||||
|
_vaisseau.MoveGauche();
|
||||||
|
break;
|
||||||
|
case ConsoleKey.RightArrow:
|
||||||
|
_vaisseau.MoveDroite();
|
||||||
|
break;
|
||||||
|
case ConsoleKey.Spacebar:
|
||||||
|
InitiateProjectile();
|
||||||
|
break;
|
||||||
|
case ConsoleKey.Escape:
|
||||||
|
Menu menu = new Menu();
|
||||||
|
menu.Start();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
// Initialise un nouveau tir si aucun tir n'est actuellement actif
|
||||||
|
private void InitiateProjectile()
|
||||||
|
{
|
||||||
|
if (_tir == null || !_tir.tirActivé)
|
||||||
|
{
|
||||||
|
_tir = new tir(_vaisseau.X + 1, _vaisseau.Y - 1);
|
||||||
|
_tir.tirActivé = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
// Met à jour la position du tir et vérifie s'il y a collision
|
||||||
|
private void MettreAJouerTir()
|
||||||
|
{
|
||||||
|
if (_tir != null && _tir.tirActivé)
|
||||||
|
{
|
||||||
|
_tir.Y--; // Mueve el proyectil hacia arriba
|
||||||
|
|
||||||
|
// Comprueba si el proyectil ha salido de la pantalla
|
||||||
|
if (_tir.Y < 0)
|
||||||
|
{
|
||||||
|
_tir.tirActivé = false;
|
||||||
|
}
|
||||||
|
if(_tir.Y == _ennemi.Y && _tir.X >= _ennemi.X && _tir.X <= _ennemi.X + 6)
|
||||||
|
{
|
||||||
|
score += 1;
|
||||||
|
_tir.tirActivé = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// // Dessine tous les éléments du jeu sur la console
|
||||||
|
/// </summary>
|
||||||
|
private void Draw()
|
||||||
|
{
|
||||||
|
Console.Clear();
|
||||||
|
Console.CursorVisible = false;
|
||||||
|
for (int y = 0; y < 16; y++)
|
||||||
|
{
|
||||||
|
for (int x = 0; x < Console.WindowWidth; x++)
|
||||||
|
{
|
||||||
|
if (y == _vaisseau.Y && x == _vaisseau.X)
|
||||||
|
{
|
||||||
|
Console.ForegroundColor = ConsoleColor.DarkMagenta;
|
||||||
|
Console.Write("▲");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
else if (x == _ennemi.X && y == _ennemi.Y)
|
||||||
|
{
|
||||||
|
Console.ForegroundColor = ConsoleColor.DarkRed;
|
||||||
|
Console.Write(" ■ ■ ■");
|
||||||
|
x += 4;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Console.Write(" ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (_tir != null && _tir.tirActivé)
|
||||||
|
{
|
||||||
|
Console.SetCursorPosition(_tir.X, _tir.Y);
|
||||||
|
Console.Write("|");
|
||||||
|
}
|
||||||
|
|
||||||
|
//Afficher le score
|
||||||
|
Console.SetCursorPosition(50, 0);
|
||||||
|
Console.Write($"Score: {score}");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,226 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
using MySql.Data.MySqlClient;
|
||||||
|
|
||||||
|
namespace SpaceInvaders
|
||||||
|
{
|
||||||
|
public class Menu
|
||||||
|
{
|
||||||
|
string[] menuOptions = { };
|
||||||
|
int selectedOption = 0;
|
||||||
|
public Menu()
|
||||||
|
{
|
||||||
|
menuOptions = new string[] {" 1. Jouer ",
|
||||||
|
" 2. Options ",
|
||||||
|
" 3. Highscore ",
|
||||||
|
" 4. Résultats ",
|
||||||
|
" 5. Quitter " };
|
||||||
|
selectedOption = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
while (true)
|
||||||
|
{
|
||||||
|
//Console.SetWindowSize(50, 30);
|
||||||
|
Console.CursorVisible = false;
|
||||||
|
Console.BackgroundColor = ConsoleColor.DarkMagenta;
|
||||||
|
Console.Clear();
|
||||||
|
Console.BackgroundColor = ConsoleColor.White;
|
||||||
|
Console.ForegroundColor = ConsoleColor.DarkMagenta;
|
||||||
|
|
||||||
|
Console.WriteLine("-----------------");
|
||||||
|
Console.WriteLine("Spicy Invader II");
|
||||||
|
Console.WriteLine("-----------------");
|
||||||
|
|
||||||
|
for (int i = 0; i < menuOptions.Length; i++)
|
||||||
|
{
|
||||||
|
if (i == selectedOption)
|
||||||
|
{
|
||||||
|
Console.ForegroundColor = ConsoleColor.White;
|
||||||
|
Console.BackgroundColor = ConsoleColor.DarkMagenta;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Console.ForegroundColor = ConsoleColor.Gray;
|
||||||
|
Console.BackgroundColor = ConsoleColor.Black;
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.WriteLine(menuOptions[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.ResetColor();
|
||||||
|
|
||||||
|
ConsoleKeyInfo keyInfo = Console.ReadKey();
|
||||||
|
if (keyInfo.Key == ConsoleKey.UpArrow)
|
||||||
|
{
|
||||||
|
selectedOption = (selectedOption - 1 + menuOptions.Length) % menuOptions.Length;
|
||||||
|
}
|
||||||
|
else if (keyInfo.Key == ConsoleKey.DownArrow)
|
||||||
|
{
|
||||||
|
selectedOption = (selectedOption + 1) % menuOptions.Length;
|
||||||
|
}
|
||||||
|
else if (keyInfo.Key == ConsoleKey.Enter)
|
||||||
|
{
|
||||||
|
if (selectedOption == menuOptions.Length - 1)
|
||||||
|
{
|
||||||
|
break; // Sortir du boucle
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
PerformAction(selectedOption);
|
||||||
|
|
||||||
|
Console.ReadKey();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void PerformAction(int option)
|
||||||
|
{
|
||||||
|
DatabaseConnection databaseConnection = new DatabaseConnection();
|
||||||
|
switch (option)
|
||||||
|
{
|
||||||
|
case 0: //Jouer
|
||||||
|
|
||||||
|
Console.Write("Entrez votre nickcname : ");
|
||||||
|
string playerName1 = Console.ReadLine();
|
||||||
|
|
||||||
|
Console.Clear();
|
||||||
|
|
||||||
|
Console.BackgroundColor = ConsoleColor.White;
|
||||||
|
ennemi monEnnemi = new ennemi(18, 0);
|
||||||
|
vaisseau monVaisseau = new vaisseau(18, 10);
|
||||||
|
|
||||||
|
jeu jeu = new jeu(monEnnemi, monVaisseau);
|
||||||
|
jeu.Start();
|
||||||
|
|
||||||
|
int finalScore = jeu.score;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
databaseConnection.SaveScore(playerName1, finalScore);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 1: //Optioons
|
||||||
|
Console.Clear();
|
||||||
|
Console.WriteLine("");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 2: //Highscore
|
||||||
|
Console.Clear();
|
||||||
|
Console.BackgroundColor = ConsoleColor.Magenta;
|
||||||
|
|
||||||
|
var scores = databaseConnection.GetTop5Highscores();
|
||||||
|
|
||||||
|
Console.WriteLine("------- Highscores -------");
|
||||||
|
foreach (var (playerName, score) in scores)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"{playerName}: {score}");
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.WriteLine("\nAppuyez sur une touche pour retourner au menu");
|
||||||
|
|
||||||
|
|
||||||
|
//Highscore();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 3:
|
||||||
|
Console.Clear();
|
||||||
|
Console.WriteLine("");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 4:
|
||||||
|
Console.ReadKey();
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public class DatabaseConnection
|
||||||
|
{
|
||||||
|
public string connectionString = "Server=localhost;Port=6033;Database=db_space_invaders;User Id=root;Password=root;";
|
||||||
|
|
||||||
|
public void TestConnection()
|
||||||
|
{
|
||||||
|
using (MySqlConnection connection = new MySqlConnection(connectionString))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
connection.Open();
|
||||||
|
Console.WriteLine("Connexion OK");
|
||||||
|
}
|
||||||
|
catch (MySqlException ex)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"Erreur {ex.Message}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public List<(string playerName, int score)> GetTop5Highscores()
|
||||||
|
{
|
||||||
|
List<(string playerName, int score)> highscores = new List<(string playerName, int score)>();
|
||||||
|
|
||||||
|
using (MySqlConnection connection = new MySqlConnection(connectionString))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
connection.Open();
|
||||||
|
|
||||||
|
string query = "SELECT jouPseudo, jouNombrePoints FROM t_joueur ORDER BY jouNombrePoints DESC LIMIT 5";
|
||||||
|
|
||||||
|
MySqlCommand cmd = new MySqlCommand(query, connection);
|
||||||
|
using (MySqlDataReader reader = cmd.ExecuteReader())
|
||||||
|
{
|
||||||
|
while (reader.Read())
|
||||||
|
{
|
||||||
|
highscores.Add((reader.GetString(0), reader.GetInt32(1)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (MySqlException ex)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"Erreur {ex.Message}");
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return highscores;
|
||||||
|
}
|
||||||
|
public void SaveScore(string playerName, int score)
|
||||||
|
{
|
||||||
|
using (MySqlConnection connection = new MySqlConnection(connectionString))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
connection.Open();
|
||||||
|
|
||||||
|
string query = "INSERT INTO t_joueur (jouPseudo, jouNombrePoints) VALUES (@playerName, @score)";
|
||||||
|
MySqlCommand cmd = new MySqlCommand(query, connection);
|
||||||
|
cmd.Parameters.AddWithValue("@playerName", playerName);
|
||||||
|
cmd.Parameters.AddWithValue("@score", score);
|
||||||
|
|
||||||
|
cmd.ExecuteNonQuery();
|
||||||
|
}
|
||||||
|
catch (MySqlException ex)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"Erreur {ex.Message}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v2.2", FrameworkDisplayName = "")]
|
||||||
+23
@@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// Ce code a été généré par un outil.
|
||||||
|
// Version du runtime :4.0.30319.42000
|
||||||
|
//
|
||||||
|
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
|
||||||
|
// le code est régénéré.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
[assembly: System.Reflection.AssemblyCompanyAttribute("SpaceInvaders")]
|
||||||
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||||
|
[assembly: System.Reflection.AssemblyProductAttribute("SpaceInvaders")]
|
||||||
|
[assembly: System.Reflection.AssemblyTitleAttribute("SpaceInvaders")]
|
||||||
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|
||||||
|
// Généré par la classe MSBuild WriteCodeFragment.
|
||||||
|
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
1dfbd10f2273456d0b06a117863d60b5dc1ff37e
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
is_global = true
|
||||||
|
build_property.RootNamespace = SpaceInvaders
|
||||||
|
build_property.ProjectDir = D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\
|
||||||
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
|||||||
|
8a2286de6348420e0c7c0eea22eb2afbd701db39
|
||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\obj\Debug\netcoreapp2.2\SpaceInvaders.csproj.CoreCompileInputs.cache
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\obj\Debug\netcoreapp2.2\SpaceInvaders.AssemblyInfoInputs.cache
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\obj\Debug\netcoreapp2.2\SpaceInvaders.AssemblyInfo.cs
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\bin\Debug\netcoreapp2.2\SpaceInvaders.deps.json
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\bin\Debug\netcoreapp2.2\SpaceInvaders.runtimeconfig.json
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\bin\Debug\netcoreapp2.2\SpaceInvaders.runtimeconfig.dev.json
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\bin\Debug\netcoreapp2.2\SpaceInvaders.dll
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\bin\Debug\netcoreapp2.2\SpaceInvaders.pdb
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\obj\Debug\netcoreapp2.2\SpaceInvaders.dll
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\obj\Debug\netcoreapp2.2\SpaceInvaders.pdb
|
||||||
|
D:\2emeAnnee\1trimestre\projet_Spicy\Spicy-08.09.2023-2\SpaceInvaders\SpaceInvaders\obj\Debug\netcoreapp2.2\SpaceInvaders.csprojAssemblyReference.cache
|
||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+5
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"dgSpecHash": "IApvRRkLHl6yPLE8vRJDZjRk3xzzuwuBorRD+AzXaQ6et84F5CvgLwFVD5aRRVN+mgZvyMk1XRU48TjRd6xdQQ==",
|
||||||
|
"success": true
|
||||||
|
}
|
||||||
+68
@@ -0,0 +1,68 @@
|
|||||||
|
{
|
||||||
|
"format": 1,
|
||||||
|
"restore": {
|
||||||
|
"D:\\2emeAnnee\\1trimestre\\projet_Spicy\\Versions\\Spicy-08.09.2023-2\\SpaceInvaders\\SpaceInvaders\\SpaceInvaders.csproj": {}
|
||||||
|
},
|
||||||
|
"projects": {
|
||||||
|
"D:\\2emeAnnee\\1trimestre\\projet_Spicy\\Versions\\Spicy-08.09.2023-2\\SpaceInvaders\\SpaceInvaders\\SpaceInvaders.csproj": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"restore": {
|
||||||
|
"projectUniqueName": "D:\\2emeAnnee\\1trimestre\\projet_Spicy\\Versions\\Spicy-08.09.2023-2\\SpaceInvaders\\SpaceInvaders\\SpaceInvaders.csproj",
|
||||||
|
"projectName": "SpaceInvaders",
|
||||||
|
"projectPath": "D:\\2emeAnnee\\1trimestre\\projet_Spicy\\Versions\\Spicy-08.09.2023-2\\SpaceInvaders\\SpaceInvaders\\SpaceInvaders.csproj",
|
||||||
|
"packagesPath": "C:\\Users\\pq81jlv\\.nuget\\packages\\",
|
||||||
|
"outputPath": "D:\\2emeAnnee\\1trimestre\\projet_Spicy\\Versions\\Spicy-08.09.2023-2\\SpaceInvaders\\SpaceInvaders\\obj\\",
|
||||||
|
"projectStyle": "PackageReference",
|
||||||
|
"fallbackFolders": [
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
|
||||||
|
],
|
||||||
|
"configFilePaths": [
|
||||||
|
"C:\\Users\\pq81jlv\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||||
|
],
|
||||||
|
"originalTargetFrameworks": [
|
||||||
|
"netcoreapp2.2"
|
||||||
|
],
|
||||||
|
"sources": {
|
||||||
|
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||||
|
"https://api.nuget.org/v3/index.json": {}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"netcoreapp2.2": {
|
||||||
|
"projectReferences": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"warningProperties": {
|
||||||
|
"warnAsError": [
|
||||||
|
"NU1605"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"netcoreapp2.2": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.App": {
|
||||||
|
"suppressParent": "All",
|
||||||
|
"target": "Package",
|
||||||
|
"version": "[2.2.0, )",
|
||||||
|
"autoReferenced": true
|
||||||
|
},
|
||||||
|
"MySql.Data": {
|
||||||
|
"target": "Package",
|
||||||
|
"version": "[8.1.0, )"
|
||||||
|
},
|
||||||
|
"System.Data.SqlClient": {
|
||||||
|
"target": "Package",
|
||||||
|
"version": "[4.8.5, )"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"imports": [
|
||||||
|
"net461"
|
||||||
|
],
|
||||||
|
"assetTargetFallback": true,
|
||||||
|
"warn": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+18
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||||
|
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||||
|
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||||
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||||
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\pq81jlv\.nuget\packages\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder</NuGetPackageFolders>
|
||||||
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||||
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.1.0</NuGetToolVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.2.0\build\netcoreapp2.2\Microsoft.NETCore.App.props" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.2.0\build\netcoreapp2.2\Microsoft.NETCore.App.props')" />
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
||||||
+14
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<Import Project="$(NuGetPackageRoot)system.runtime.compilerservices.unsafe\6.0.0\buildTransitive\netcoreapp2.0\System.Runtime.CompilerServices.Unsafe.targets" Condition="Exists('$(NuGetPackageRoot)system.runtime.compilerservices.unsafe\6.0.0\buildTransitive\netcoreapp2.0\System.Runtime.CompilerServices.Unsafe.targets')" />
|
||||||
|
<Import Project="$(NuGetPackageRoot)system.text.encodings.web\7.0.0\buildTransitive\netcoreapp2.0\System.Text.Encodings.Web.targets" Condition="Exists('$(NuGetPackageRoot)system.text.encodings.web\7.0.0\buildTransitive\netcoreapp2.0\System.Text.Encodings.Web.targets')" />
|
||||||
|
<Import Project="$(NuGetPackageRoot)system.text.json\7.0.1\buildTransitive\netcoreapp2.0\System.Text.Json.targets" Condition="Exists('$(NuGetPackageRoot)system.text.json\7.0.1\buildTransitive\netcoreapp2.0\System.Text.Json.targets')" />
|
||||||
|
<Import Project="$(NuGetPackageRoot)system.diagnostics.diagnosticsource\7.0.2\buildTransitive\netcoreapp2.0\System.Diagnostics.DiagnosticSource.targets" Condition="Exists('$(NuGetPackageRoot)system.diagnostics.diagnosticsource\7.0.2\buildTransitive\netcoreapp2.0\System.Diagnostics.DiagnosticSource.targets')" />
|
||||||
|
<Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\netstandard.library\2.0.3\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\netstandard.library\2.0.3\build\netstandard2.0\NETStandard.Library.targets')" />
|
||||||
|
<Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.2.0\build\netcoreapp2.2\Microsoft.NETCore.App.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.2.0\build\netcoreapp2.2\Microsoft.NETCore.App.targets')" />
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,52 @@
|
|||||||
|
{
|
||||||
|
"version": 2,
|
||||||
|
"dgSpecHash": "z+kLbf6hVyPJSAIHMgIDzYi1I1xTXH4L9yw1C0x2Lmyj1lJiK2R1xAsb1nksSaXv4jwKfeUFobvE4Iypb0ssZA==",
|
||||||
|
"success": true,
|
||||||
|
"projectFilePath": "D:\\2emeAnnee\\1trimestre\\projet_Spicy\\Spicy-08.09.2023-2\\SpaceInvaders\\SpaceInvaders\\SpaceInvaders.csproj",
|
||||||
|
"expectedPackageFiles": [
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\google.protobuf\\3.21.9\\google.protobuf.3.21.9.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\k4os.compression.lz4\\1.3.5\\k4os.compression.lz4.1.3.5.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\k4os.compression.lz4.streams\\1.3.5\\k4os.compression.lz4.streams.1.3.5.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\k4os.hash.xxhash\\1.0.8\\k4os.hash.xxhash.1.0.8.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\microsoft.bcl.asyncinterfaces\\7.0.0\\microsoft.bcl.asyncinterfaces.7.0.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\microsoft.netcore.app\\2.2.0\\microsoft.netcore.app.2.2.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\microsoft.netcore.dotnetapphost\\2.2.0\\microsoft.netcore.dotnetapphost.2.2.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\microsoft.netcore.dotnethostpolicy\\2.2.0\\microsoft.netcore.dotnethostpolicy.2.2.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\microsoft.netcore.dotnethostresolver\\2.2.0\\microsoft.netcore.dotnethostresolver.2.2.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\microsoft.netcore.platforms\\3.1.0\\microsoft.netcore.platforms.3.1.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\microsoft.netcore.targets\\2.0.0\\microsoft.netcore.targets.2.0.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\microsoft.win32.registry\\4.7.0\\microsoft.win32.registry.4.7.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\mysql.data\\8.1.0\\mysql.data.8.1.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\netstandard.library\\2.0.3\\netstandard.library.2.0.3.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\portable.bouncycastle\\1.9.0\\portable.bouncycastle.1.9.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\runtime.native.system.data.sqlclient.sni\\4.7.0\\runtime.native.system.data.sqlclient.sni.4.7.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\runtime.win-arm64.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-arm64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\runtime.win-x64.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-x64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\runtime.win-x86.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-x86.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.buffers\\4.5.1\\system.buffers.4.5.1.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.configuration.configurationmanager\\4.4.1\\system.configuration.configurationmanager.4.4.1.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.data.sqlclient\\4.8.5\\system.data.sqlclient.4.8.5.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.diagnostics.diagnosticsource\\7.0.2\\system.diagnostics.diagnosticsource.7.0.2.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\system.io\\4.3.0\\system.io.4.3.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.io.pipelines\\5.0.2\\system.io.pipelines.5.0.2.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.memory\\4.5.5\\system.memory.4.5.5.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\system.numerics.vectors\\4.5.0\\system.numerics.vectors.4.5.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\system.reflection\\4.3.0\\system.reflection.4.3.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\system.reflection.primitives\\4.3.0\\system.reflection.primitives.4.3.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\system.runtime\\4.3.0\\system.runtime.4.3.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.runtime.compilerservices.unsafe\\6.0.0\\system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.runtime.loader\\4.3.0\\system.runtime.loader.4.3.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.security.accesscontrol\\4.7.0\\system.security.accesscontrol.4.7.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.security.cryptography.protecteddata\\4.4.0\\system.security.cryptography.protecteddata.4.4.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.security.permissions\\4.7.0\\system.security.permissions.4.7.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.security.principal.windows\\4.7.0\\system.security.principal.windows.4.7.0.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\system.text.encoding\\4.3.0\\system.text.encoding.4.3.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.text.encoding.codepages\\4.7.0\\system.text.encoding.codepages.4.7.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.text.encodings.web\\7.0.0\\system.text.encodings.web.7.0.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.text.json\\7.0.1\\system.text.json.7.0.1.nupkg.sha512",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\system.threading.tasks\\4.3.0\\system.threading.tasks.4.3.0.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\system.threading.tasks.extensions\\4.5.4\\system.threading.tasks.extensions.4.5.4.nupkg.sha512",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages\\zstdsharp.port\\0.7.1\\zstdsharp.port.0.7.1.nupkg.sha512"
|
||||||
|
],
|
||||||
|
"logs": []
|
||||||
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace SpaceInvaders
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Classe pour l'objet "tir"
|
||||||
|
/// </summary>
|
||||||
|
public class tir
|
||||||
|
{
|
||||||
|
public int X; //Position horizontal du tir
|
||||||
|
public int Y; //Position vertical du tir
|
||||||
|
public bool tirActivé= false; //Activer le tir
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Constructeur pour le tir
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="x">Position horizontal du tir </param>
|
||||||
|
/// <param name="y">Position vertical du tir</param>
|
||||||
|
public tir (int x, int y)
|
||||||
|
{
|
||||||
|
X = x; //Initialiser la position horizontal
|
||||||
|
Y = y; //Initaliser la position vertical
|
||||||
|
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Fonction pour activer le tir
|
||||||
|
/// </summary>
|
||||||
|
public void action ()
|
||||||
|
{
|
||||||
|
if(tirActivé) //Si le tir est activé
|
||||||
|
Y--; //La position vertical du tir va diminuer
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace SpaceInvaders
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Classe pour l'objet "vaisseau"
|
||||||
|
/// </summary>
|
||||||
|
public class vaisseau
|
||||||
|
{
|
||||||
|
public int X; //Position horizontal du vaisseau
|
||||||
|
public int Y; //Position vertical du vaisseau
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Constructeur du vaisseau
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="x">Position horizontal initial du vaisseau</param>
|
||||||
|
/// <param name="y">Position vertical initial du vausseau</param>
|
||||||
|
public vaisseau(int x, int y)
|
||||||
|
{
|
||||||
|
X = x; //Initialiser la position horizontal
|
||||||
|
Y = y; //Initialiser la position vertical
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Fonction pour déplacer le vaisseau à gauche
|
||||||
|
/// </summary>
|
||||||
|
public void MoveGauche()
|
||||||
|
{
|
||||||
|
if (X > 0) //Si le vaisseau atteint le bord droit
|
||||||
|
{
|
||||||
|
X--; //la position horizontal diminue de 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Fonction pour déplacer le vaissseau à droite
|
||||||
|
/// </summary>
|
||||||
|
public void MoveDroite()
|
||||||
|
{
|
||||||
|
if (X < Console.WindowWidth-1) //Si le vaisseau atteint le bord gauche
|
||||||
|
{
|
||||||
|
X++; //la position horizontal augmente de 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.29102.190
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spicy-Test", "Spicy-Test\Spicy-Test.csproj", "{B1B24CE4-4C25-4122-B6B7-04BCF463B762}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{B1B24CE4-4C25-4122-B6B7-04BCF463B762}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{B1B24CE4-4C25-4122-B6B7-04BCF463B762}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{B1B24CE4-4C25-4122-B6B7-04BCF463B762}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{B1B24CE4-4C25-4122-B6B7-04BCF463B762}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {D4A27A71-1F00-4EC5-B283-1B5EEFF92FD1}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
@@ -0,0 +1,118 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Threading;
|
||||||
|
|
||||||
|
|
||||||
|
namespace Spicy_Test
|
||||||
|
{
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
static int screenWidth = 40;
|
||||||
|
static int playerX = 18;
|
||||||
|
static int playerY = 8;
|
||||||
|
static int enemyX = 18; // Posición horizontal del enemigo
|
||||||
|
static int enemyY = 2; // Posición vertical del enemigo
|
||||||
|
static bool movingRight = true; // Dirección de movimiento del enemigo
|
||||||
|
static bool isMovingLeft = false;
|
||||||
|
static bool isMovingRight = false;
|
||||||
|
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
Console.CursorVisible = false;
|
||||||
|
Timer moveTimer = new Timer(MovePlayer, null, 0, 100);
|
||||||
|
|
||||||
|
while (true)
|
||||||
|
{
|
||||||
|
if (Console.KeyAvailable)
|
||||||
|
{
|
||||||
|
ConsoleKeyInfo key = Console.ReadKey();
|
||||||
|
if (key.Key == ConsoleKey.LeftArrow && playerX > 0)
|
||||||
|
{
|
||||||
|
isMovingLeft = true;
|
||||||
|
isMovingRight = false;
|
||||||
|
}
|
||||||
|
else if (key.Key == ConsoleKey.RightArrow && playerX < Console.WindowWidth - 1)
|
||||||
|
{
|
||||||
|
isMovingLeft = false;
|
||||||
|
isMovingRight = true;
|
||||||
|
}
|
||||||
|
else if(key.Key == ConsoleKey.Spacebar)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateEnemyPosition();
|
||||||
|
Thread.Sleep(15);
|
||||||
|
DrawGame();
|
||||||
|
Thread.Sleep(125);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void MovePlayer(object state)
|
||||||
|
{
|
||||||
|
if (isMovingLeft && playerX > 0)
|
||||||
|
{
|
||||||
|
playerX--;
|
||||||
|
}
|
||||||
|
else if (isMovingRight && playerX < screenWidth - 1)
|
||||||
|
{
|
||||||
|
playerX++;
|
||||||
|
}
|
||||||
|
|
||||||
|
DrawGame();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*static void UpdateEnemyPosition()
|
||||||
|
{
|
||||||
|
// Cambiar de dirección al llegar a los bordes
|
||||||
|
if (enemyX == Console.WindowWidth - 1)
|
||||||
|
{
|
||||||
|
movingRight = false;
|
||||||
|
}
|
||||||
|
else if (enemyX == 0)
|
||||||
|
{
|
||||||
|
movingRight = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mover el enemigo
|
||||||
|
if (movingRight)
|
||||||
|
{
|
||||||
|
enemyX++;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
enemyX--;
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
static void DrawGame()
|
||||||
|
{
|
||||||
|
Console.CursorVisible = false;
|
||||||
|
Console.Clear();
|
||||||
|
|
||||||
|
for (int y = 0; y < 12; y++)
|
||||||
|
{
|
||||||
|
for (int x = 0; x < Console.WindowWidth; x++)
|
||||||
|
{
|
||||||
|
if (y == playerY && x == playerX)
|
||||||
|
{
|
||||||
|
Console.Write("▲");
|
||||||
|
}
|
||||||
|
else if (x == enemyX && y == enemyY)
|
||||||
|
{
|
||||||
|
Console.Write(" ■");
|
||||||
|
Console.Write(" ■");
|
||||||
|
Console.Write(" ■");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Console.Write(" ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Console.WriteLine();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||||
|
<RootNamespace>Spicy_Test</RootNamespace>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"runtimeTarget": {
|
||||||
|
"name": ".NETCoreApp,Version=v2.2",
|
||||||
|
"signature": "da39a3ee5e6b4b0d3255bfef95601890afd80709"
|
||||||
|
},
|
||||||
|
"compilationOptions": {},
|
||||||
|
"targets": {
|
||||||
|
".NETCoreApp,Version=v2.2": {
|
||||||
|
"Spicy-Test/1.0.0": {
|
||||||
|
"runtime": {
|
||||||
|
"Spicy-Test.dll": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"libraries": {
|
||||||
|
"Spicy-Test/1.0.0": {
|
||||||
|
"type": "project",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
+9
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"additionalProbingPaths": [
|
||||||
|
"C:\\Users\\pq81jlv\\.dotnet\\store\\|arch|\\|tfm|",
|
||||||
|
"C:\\Users\\pq81jlv\\.nuget\\packages",
|
||||||
|
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user