diff --git a/JeuHoyEtudiants/JeuHoy.sln b/JeuHoyEtudiants/JeuHoy.sln new file mode 100644 index 0000000..63a8137 --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33110.190 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JeuHoy_WPF_Natif", "JeuHoy_WPF_Natif\JeuHoy_WPF_Natif.csproj", "{4B7D33C6-5D38-49F9-B860-D133255627DA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4B7D33C6-5D38-49F9-B860-D133255627DA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4B7D33C6-5D38-49F9-B860-D133255627DA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4B7D33C6-5D38-49F9-B860-D133255627DA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4B7D33C6-5D38-49F9-B860-D133255627DA}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {562166D8-0D33-48EA-8F94-FC47997F170C} + EndGlobalSection +EndGlobal diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Actions-application-exit-icon.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Actions-application-exit-icon.png new file mode 100644 index 0000000..8adbcba Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Actions-application-exit-icon.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Aide.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Aide.png new file mode 100644 index 0000000..02b7c9d Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Aide.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/AideTuto.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/AideTuto.png new file mode 100644 index 0000000..da5cf65 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/AideTuto.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/App.config b/JeuHoyEtudiants/JeuHoy_WPF_Natif/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/App.xaml b/JeuHoyEtudiants/JeuHoy_WPF_Natif/App.xaml new file mode 100644 index 0000000..7219ee2 --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/App.xaml.cs b/JeuHoyEtudiants/JeuHoy_WPF_Natif/App.xaml.cs new file mode 100644 index 0000000..6a30693 --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace JeuHoy_WPF +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/AssemblyInfo.cs b/JeuHoyEtudiants/JeuHoy_WPF_Natif/AssemblyInfo.cs new file mode 100644 index 0000000..8b5504e --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/CstApplication.cs b/JeuHoyEtudiants/JeuHoy_WPF_Natif/CstApplication.cs new file mode 100644 index 0000000..c523657 --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/CstApplication.cs @@ -0,0 +1,45 @@ + +using System.Drawing; + +namespace JeuHoy_WPF +{ + /// + /// Classe de constantes de l'application. + /// + public static class CstApplication + { + //Nombre de figure de danse dans l'application. + public const int NBFIGURE = 10; + //Constante pour la Kinect + public const int SKELETONCOUNT = 6; + public const int KINECT_DISPLAY_WIDTH = 320; + public const int KINECT_DISPLAY_HEIGHT = 240; + + public const int IMAGE_DPI = 96; + + // Size of the RGB pixel in the bitmap + public const int NB_BYTES_PAR_PIXEL = 4; + + + + public const int BODY_ELLIPSE_SIZE = 10; + + + //Constante d'apprentissage pour le perceptron + public const double CONSTANTEAPPRENTISSAGE = 0.01; + //Critère de convergence pour le perceptron. + public const int MAXITERATION = 200; + public const int POURCENTCONVERGENCE = 99; + + //Valeur vrai ou fausse pour le perceptron + public const int VRAI = 1; + public const int FAUX = -1; + + //Code d'erreur (pas nécessaire). + public const int ERREUR = -1; + public const int OK = 0; + + //Nombre maximale de permutation pour répartir les échantillons(pas nécessaire). + public const int MAXPERMUTATION = 6000; + } +} diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Entrainement.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Entrainement.png new file mode 100644 index 0000000..5ca4c07 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Entrainement.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/FondEntree.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/FondEntree.png new file mode 100644 index 0000000..b6b1f01 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/FondEntree.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/Game.ico b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/Game.ico new file mode 100644 index 0000000..7bb226b Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/Game.ico differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/Intro.jpg b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/Intro.jpg new file mode 100644 index 0000000..24fae77 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/Intro.jpg differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/Intro.mp3 b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/Intro.mp3 new file mode 100644 index 0000000..6db67aa Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/Intro.mp3 differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/etoiles.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/etoiles.png new file mode 100644 index 0000000..543b3e3 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/etoiles.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig1.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig1.png new file mode 100644 index 0000000..0d454d0 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig1.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig10.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig10.png new file mode 100644 index 0000000..945b608 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig10.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig2.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig2.png new file mode 100644 index 0000000..93cf393 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig2.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig3.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig3.png new file mode 100644 index 0000000..a6c0e3f Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig3.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig4.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig4.png new file mode 100644 index 0000000..29e4cf6 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig4.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig5.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig5.png new file mode 100644 index 0000000..75472bf Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig5.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig6.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig6.png new file mode 100644 index 0000000..87aba00 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig6.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig7.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig7.png new file mode 100644 index 0000000..c8aa59d Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig7.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig8.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig8.png new file mode 100644 index 0000000..e5bf723 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig8.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig9.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig9.png new file mode 100644 index 0000000..bad7b27 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fig9.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fighoy.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fighoy.png new file mode 100644 index 0000000..1faa57c Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fighoy.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fond.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fond.png new file mode 100644 index 0000000..8cee44b Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/fond.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/hooy.wav b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/hooy.wav new file mode 100644 index 0000000..ab2a3e4 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/hooy.wav differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/hoy.wav b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/hoy.wav new file mode 100644 index 0000000..c6a1037 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/hoy.wav differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/titrehoy.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/titrehoy.png new file mode 100644 index 0000000..3d15e00 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/titrehoy.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/tuto.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/tuto.png new file mode 100644 index 0000000..5d774d1 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/tuto.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/téléchargement.jpg b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/téléchargement.jpg new file mode 100644 index 0000000..6d8dca7 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/téléchargement.jpg differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/zik.wav b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/zik.wav new file mode 100644 index 0000000..910e0ef Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/HoyContent/zik.wav differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/JeuHoy_WPF_Natif.csproj b/JeuHoyEtudiants/JeuHoy_WPF_Natif/JeuHoy_WPF_Natif.csproj new file mode 100644 index 0000000..fe0362f --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/JeuHoy_WPF_Natif.csproj @@ -0,0 +1,298 @@ + + + + + Debug + AnyCPU + {4B7D33C6-5D38-49F9-B860-D133255627DA} + WinExe + JeuHoy_WPF_Natif + JeuHoy_WPF_Natif + v4.7.2 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\Microsoft.Kinect.2.0.1410.19000\lib\net45\Microsoft.Kinect.dll + + + + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + + + + + App.xaml + Code + + + wAide.xaml + + + wEntrainement.xaml + + + wEntree.xaml + + + wJeu.xaml + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + + + + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + + + + + + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + + + + + \ No newline at end of file diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/JouerHoy.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/JouerHoy.png new file mode 100644 index 0000000..2ae57e0 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/JouerHoy.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/JouerMp3.cs b/JeuHoyEtudiants/JeuHoy_WPF_Natif/JouerMp3.cs new file mode 100644 index 0000000..b26750b --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/JouerMp3.cs @@ -0,0 +1,57 @@ +using System; +using System.Text; + +using System.Runtime.InteropServices; + +namespace JeuHoy_WPF +{ + /// + /// Auteur: Hugo St-Louis + /// Description: Permet de faire jouer un mp3 + /// Date: 26/04/2014 + /// + public class JouerMp3 + { + private string _command; + private bool isOpen = false; + [DllImport("winmm.dll")] + private static extern long mciSendString(string strCommand, StringBuilder strReturn, int iReturnLength, IntPtr hwndCallback); + + /// + /// Ferme et stop un mp3 qui joue + /// + public void Close() + { + _command = "close MediaFile"; + mciSendString(_command, null, 0, IntPtr.Zero); + isOpen = false; + } + + /// + /// Ouvre un mp3 + /// + /// + public void Open(string sFileName) + { + _command = "open \"" + sFileName + "\" type mpegvideo alias MediaFile"; + mciSendString(_command, null, 0, IntPtr.Zero); + isOpen = true; + } + + /// + /// Fait jouer un mp3 + /// + /// Détermine si le mp3 doit jouer en boucle. + public void Play(bool loop) + { + if (isOpen) + { + _command = "play MediaFile"; + if (loop) + _command += " REPEAT"; + mciSendString(_command, null, 0, IntPtr.Zero); + } + } + + } +} diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/JouerSon.cs b/JeuHoyEtudiants/JeuHoy_WPF_Natif/JouerSon.cs new file mode 100644 index 0000000..589822b --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/JouerSon.cs @@ -0,0 +1,35 @@ +using System.ComponentModel; +using System.Media; + +namespace JeuHoy_WPF +{ + /// + /// Auteur: Hugo St-Louis + /// Description: Permet de faire jouer un son asynchrone. + /// Date: 26/04/2014 + /// + public class JouerSon + { + /// + /// Permet de faire charger un son et de le faire jouer de manière asynchrone. + /// + /// + public void JouerSonAsync(string FichierSon) + { + SoundPlayer wavPlayer = new SoundPlayer(); + wavPlayer.SoundLocation = FichierSon; + wavPlayer.LoadCompleted += new AsyncCompletedEventHandler(wavPlayer_LoadCompleted); + wavPlayer.LoadAsync(); + } + + /// + /// Fait jouer le son. + /// + /// + /// + private void wavPlayer_LoadCompleted(object sender, AsyncCompletedEventArgs e) + { + ((System.Media.SoundPlayer)sender).Play(); + } + } +} diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Properties/AssemblyInfo.cs b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..e2d4b8e --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Les informations générales relatives à un assembly dépendent de +// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations +// associées à un assembly. +[assembly: AssemblyTitle("JeuHoy")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("JeuHoy")] +[assembly: AssemblyCopyright("Copyright © 2014")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly +// aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de +// COM, affectez la valeur true à l'attribut ComVisible sur ce type. +[assembly: ComVisible(false)] + +// Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM +[assembly: Guid("fd638559-d89e-431b-87a5-27149fbf3f95")] + +// Les informations de version pour un assembly se composent des quatre valeurs suivantes : +// +// Version principale +// Version secondaire +// Numéro de build +// Révision +// +// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut +// en utilisant '*', comme indiqué ci-dessous : +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Properties/Resources.Designer.cs b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Properties/Resources.Designer.cs new file mode 100644 index 0000000..648a05f --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 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é. +// +//------------------------------------------------------------------------------ + +namespace JeuHoy_WPF_Natif.Properties { + using System; + + + /// + /// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées. + /// + // Cette classe a été générée automatiquement par la classe StronglyTypedResourceBuilder + // à l'aide d'un outil, tel que ResGen ou Visual Studio. + // Pour ajouter ou supprimer un membre, modifiez votre fichier .ResX, puis réexécutez ResGen + // avec l'option /str ou régénérez votre projet VS. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Retourne l'instance ResourceManager mise en cache utilisée par cette classe. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("JeuHoy_WPF_Natif.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Remplace la propriété CurrentUICulture du thread actuel pour toutes + /// les recherches de ressources à l'aide de cette classe de ressource fortement typée. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Properties/Resources.resx b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Properties/Resources.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Properties/Resources.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Properties/Settings.Designer.cs b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Properties/Settings.Designer.cs new file mode 100644 index 0000000..99a0eba --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 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é. +// +//------------------------------------------------------------------------------ + +namespace JeuHoy.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.4.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Properties/Settings.settings b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/Actions-application-exit-icon.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/Actions-application-exit-icon.png new file mode 100644 index 0000000..8adbcba Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/Actions-application-exit-icon.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/Aide.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/Aide.png new file mode 100644 index 0000000..02b7c9d Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/Aide.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/AideDessus.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/AideDessus.png new file mode 100644 index 0000000..63022cb Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/AideDessus.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/AideDessus1234.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/AideDessus1234.png new file mode 100644 index 0000000..8f614ad Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/AideDessus1234.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/AideTuto.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/AideTuto.png new file mode 100644 index 0000000..da5cf65 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/AideTuto.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/Entrainement.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/Entrainement.png new file mode 100644 index 0000000..5ca4c07 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/Entrainement.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/EntrainementDessus.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/EntrainementDessus.png new file mode 100644 index 0000000..43a34d1 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/EntrainementDessus.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/FondEntree.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/FondEntree.png new file mode 100644 index 0000000..b6b1f01 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/FondEntree.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/Intro.jpg b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/Intro.jpg new file mode 100644 index 0000000..24fae77 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/Intro.jpg differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/JouerDessus.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/JouerDessus.png new file mode 100644 index 0000000..c2bfbc5 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/JouerDessus.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/JouerHoy.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/JouerHoy.png new file mode 100644 index 0000000..2ae57e0 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/JouerHoy.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/Kim.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/Kim.png new file mode 100644 index 0000000..733086c Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/Kim.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/edit_undo.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/edit_undo.png new file mode 100644 index 0000000..fb1f74d Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/edit_undo.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/etoiles.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/etoiles.png new file mode 100644 index 0000000..543b3e3 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/etoiles.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig1.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig1.png new file mode 100644 index 0000000..0d454d0 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig1.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig10.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig10.png new file mode 100644 index 0000000..945b608 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig10.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig2.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig2.png new file mode 100644 index 0000000..93cf393 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig2.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig3.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig3.png new file mode 100644 index 0000000..a6c0e3f Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig3.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig4.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig4.png new file mode 100644 index 0000000..29e4cf6 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig4.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig5.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig5.png new file mode 100644 index 0000000..75472bf Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig5.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig6.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig6.png new file mode 100644 index 0000000..87aba00 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig6.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig7.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig7.png new file mode 100644 index 0000000..c8aa59d Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig7.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig8.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig8.png new file mode 100644 index 0000000..e5bf723 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig8.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig9.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig9.png new file mode 100644 index 0000000..bad7b27 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fig9.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fighoy.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fighoy.png new file mode 100644 index 0000000..1faa57c Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fighoy.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fond.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fond.png new file mode 100644 index 0000000..8cee44b Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fond.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fondjeu.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fondjeu.png new file mode 100644 index 0000000..faceff8 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/fondjeu.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/titrehoy.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/titrehoy.png new file mode 100644 index 0000000..3d15e00 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/titrehoy.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/tuto.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/tuto.png new file mode 100644 index 0000000..5d774d1 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/tuto.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/téléchargement.jpg b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/téléchargement.jpg new file mode 100644 index 0000000..6d8dca7 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/Resources/téléchargement.jpg differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/edit_undo.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/edit_undo.png new file mode 100644 index 0000000..fb1f74d Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/edit_undo.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/fond.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/fond.png new file mode 100644 index 0000000..8cee44b Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/fond.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/fondjeu.png b/JeuHoyEtudiants/JeuHoy_WPF_Natif/fondjeu.png new file mode 100644 index 0000000..faceff8 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/fondjeu.png differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/packages.config b/JeuHoyEtudiants/JeuHoy_WPF_Natif/packages.config new file mode 100644 index 0000000..f7f19c3 --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/téléchargement.jpg b/JeuHoyEtudiants/JeuHoy_WPF_Natif/téléchargement.jpg new file mode 100644 index 0000000..6d8dca7 Binary files /dev/null and b/JeuHoyEtudiants/JeuHoy_WPF_Natif/téléchargement.jpg differ diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/wAide.xaml b/JeuHoyEtudiants/JeuHoy_WPF_Natif/wAide.xaml new file mode 100644 index 0000000..58056e1 --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/wAide.xaml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/wAide.xaml.cs b/JeuHoyEtudiants/JeuHoy_WPF_Natif/wAide.xaml.cs new file mode 100644 index 0000000..6609092 --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/wAide.xaml.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Shapes; + +namespace JeuHoy_WPF +{ + /// + /// Auteur: Hugo St-Louis + /// Description: Montre les règles du jeu. + /// Date: 2023-04-13 + /// + public partial class wAide : Window + { + + /// + /// ctor + /// + public wAide() + { + InitializeComponent(); + } + + /// + /// Change le curseur lorsque le curseur est sur l'image + /// + /// + /// + private void picRetour_MouseHover(object sender, MouseEventArgs e) + { + this.Cursor = Cursors.Hand; + } + + /// + /// Change le curseur lorsque le curseur nest plus sur l'image + /// + /// + /// + private void picRetour_MouseLeave(object sender, MouseEventArgs e) + { + this.Cursor = Cursors.Arrow; + } + + /// + /// Ferme la fenêtre lorsqu'on appuie sur le bouton retour. + /// + /// + /// + private void picRetour_Click(object sender, MouseButtonEventArgs e) + { + this.Close(); + } + } +} diff --git a/JeuHoyEtudiants/JeuHoy_WPF_Natif/wEntrainement.xaml b/JeuHoyEtudiants/JeuHoy_WPF_Natif/wEntrainement.xaml new file mode 100644 index 0000000..6b7f53f --- /dev/null +++ b/JeuHoyEtudiants/JeuHoy_WPF_Natif/wEntrainement.xaml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +