From cd0a52867cacbfdb68b6ee41a0baafe115d51e45 Mon Sep 17 00:00:00 2001 From: Toivanen Suvi Leena Anneli <suvi.l.a.toivanen@student.jyu.fi> Date: Fri, 14 Feb 2025 10:24:55 +0200 Subject: [PATCH] Pelin tiedosto on nyt luotu --- .../.idea.harkkaty\303\266/.idea/.gitignore" | 13 ++++++++++ .../.idea/encodings.xml" | 4 +++ .../.idea/indexLayout.xml" | 8 ++++++ .../.idea.harkkaty\303\266/.idea/vcs.xml" | 6 +++++ "peli/harkkaty\303\266/harkkaty\303\266.sln" | 16 ++++++++++++ .../harkkaty\303\266/pomppu possu/Ohjelma.cs" | 26 +++++++++++++++++++ .../pomppu possu/pomppu possu.cs" | 25 ++++++++++++++++++ .../pomppu possu/pomppu possu.csproj" | 13 ++++++++++ 8 files changed, 111 insertions(+) create mode 100644 "peli/harkkaty\303\266/.idea/.idea.harkkaty\303\266/.idea/.gitignore" create mode 100644 "peli/harkkaty\303\266/.idea/.idea.harkkaty\303\266/.idea/encodings.xml" create mode 100644 "peli/harkkaty\303\266/.idea/.idea.harkkaty\303\266/.idea/indexLayout.xml" create mode 100644 "peli/harkkaty\303\266/.idea/.idea.harkkaty\303\266/.idea/vcs.xml" create mode 100644 "peli/harkkaty\303\266/harkkaty\303\266.sln" create mode 100644 "peli/harkkaty\303\266/pomppu possu/Ohjelma.cs" create mode 100644 "peli/harkkaty\303\266/pomppu possu/pomppu possu.cs" create mode 100644 "peli/harkkaty\303\266/pomppu possu/pomppu possu.csproj" diff --git "a/peli/harkkaty\303\266/.idea/.idea.harkkaty\303\266/.idea/.gitignore" "b/peli/harkkaty\303\266/.idea/.idea.harkkaty\303\266/.idea/.gitignore" new file mode 100644 index 0000000..ed30b4a --- /dev/null +++ "b/peli/harkkaty\303\266/.idea/.idea.harkkaty\303\266/.idea/.gitignore" @@ -0,0 +1,13 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/projectSettingsUpdater.xml +/.idea.harkkatyö.iml +/contentModel.xml +/modules.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git "a/peli/harkkaty\303\266/.idea/.idea.harkkaty\303\266/.idea/encodings.xml" "b/peli/harkkaty\303\266/.idea/.idea.harkkaty\303\266/.idea/encodings.xml" new file mode 100644 index 0000000..df87cf9 --- /dev/null +++ "b/peli/harkkaty\303\266/.idea/.idea.harkkaty\303\266/.idea/encodings.xml" @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" /> +</project> \ No newline at end of file diff --git "a/peli/harkkaty\303\266/.idea/.idea.harkkaty\303\266/.idea/indexLayout.xml" "b/peli/harkkaty\303\266/.idea/.idea.harkkaty\303\266/.idea/indexLayout.xml" new file mode 100644 index 0000000..7b08163 --- /dev/null +++ "b/peli/harkkaty\303\266/.idea/.idea.harkkaty\303\266/.idea/indexLayout.xml" @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="UserContentModel"> + <attachedFolders /> + <explicitIncludes /> + <explicitExcludes /> + </component> +</project> \ No newline at end of file diff --git "a/peli/harkkaty\303\266/.idea/.idea.harkkaty\303\266/.idea/vcs.xml" "b/peli/harkkaty\303\266/.idea/.idea.harkkaty\303\266/.idea/vcs.xml" new file mode 100644 index 0000000..b2bdec2 --- /dev/null +++ "b/peli/harkkaty\303\266/.idea/.idea.harkkaty\303\266/.idea/vcs.xml" @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="VcsDirectoryMappings"> + <mapping directory="$PROJECT_DIR$/../.." vcs="Git" /> + </component> +</project> \ No newline at end of file diff --git "a/peli/harkkaty\303\266/harkkaty\303\266.sln" "b/peli/harkkaty\303\266/harkkaty\303\266.sln" new file mode 100644 index 0000000..30f94aa --- /dev/null +++ "b/peli/harkkaty\303\266/harkkaty\303\266.sln" @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "pomppu possu", "pomppu possu\pomppu possu.csproj", "{F79B71E7-846E-4F6E-B5BC-18BBFA32F7D8}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F79B71E7-846E-4F6E-B5BC-18BBFA32F7D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F79B71E7-846E-4F6E-B5BC-18BBFA32F7D8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F79B71E7-846E-4F6E-B5BC-18BBFA32F7D8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F79B71E7-846E-4F6E-B5BC-18BBFA32F7D8}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git "a/peli/harkkaty\303\266/pomppu possu/Ohjelma.cs" "b/peli/harkkaty\303\266/pomppu possu/Ohjelma.cs" new file mode 100644 index 0000000..f42845e --- /dev/null +++ "b/peli/harkkaty\303\266/pomppu possu/Ohjelma.cs" @@ -0,0 +1,26 @@ +#region Using Statements + +using System; +using System.Collections.Generic; +using System.Linq; + +#endregion + +namespace pomppu_possu +{ + /// <summary> + /// The main class. + /// </summary> + public static class Program + { + /// <summary> + /// The main entry point for the application. + /// </summary> + [STAThread] + static void Main() + { + using var game = new pomppu_possu(); + game.Run(); + } + } +} \ No newline at end of file diff --git "a/peli/harkkaty\303\266/pomppu possu/pomppu possu.cs" "b/peli/harkkaty\303\266/pomppu possu/pomppu possu.cs" new file mode 100644 index 0000000..d00d68e --- /dev/null +++ "b/peli/harkkaty\303\266/pomppu possu/pomppu possu.cs" @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using Jypeli; +using Jypeli.Assets; +using Jypeli.Controls; +using Jypeli.Widgets; + +namespace pomppu_possu; + +/// @author suvitoivanen +/// @version 14.02.2025 +/// <summary> +/// Eeppinen tasohyppely peli +/// </summary> +public class pomppu_possu : PhysicsGame +{ + public override void Begin() + { + // Pomppu possun megamaailma + + PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); + Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); + } +} + diff --git "a/peli/harkkaty\303\266/pomppu possu/pomppu possu.csproj" "b/peli/harkkaty\303\266/pomppu possu/pomppu possu.csproj" new file mode 100644 index 0000000..d164748 --- /dev/null +++ "b/peli/harkkaty\303\266/pomppu possu/pomppu possu.csproj" @@ -0,0 +1,13 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <OutputType>WinExe</OutputType> + <TargetFramework>net8.0</TargetFramework> + </PropertyGroup> + + <ItemGroup> + <PackageReference Include="Jypeli.NET" Version="11.*"/> + <PackageReference Include="Jypeli.FarseerPhysics.NET" Version="2.*"/> + </ItemGroup> + +</Project> -- GitLab