Skip to content
Snippets Groups Projects
Commit 6ede2612 authored by Vesa Lappalainen's avatar Vesa Lappalainen :bicyclist:
Browse files

live17 alku

parent 34be944b
No related branches found
No related tags found
No related merge requests found
Showing
with 181 additions and 0 deletions
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>
\ No newline at end of file
<?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
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/.idea.live17.iml
/modules.xml
/contentModel.xml
/projectSettingsUpdater.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
<?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
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>
\ No newline at end of file
<?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
luennot/live17/Hirsipuu/Content/jalka.png

1.33 KiB

luennot/live17/Hirsipuu/Content/kasi.png

1.77 KiB

luennot/live17/Hirsipuu/Content/kuollutpaa.png

2.01 KiB

luennot/live17/Hirsipuu/Content/kuu.png

150 KiB

luennot/live17/Hirsipuu/Content/osat.png

5.01 KiB

luennot/live17/Hirsipuu/Content/paa.png

2.02 KiB

luennot/live17/Hirsipuu/Content/puupalikka.png

15.2 KiB

luennot/live17/Hirsipuu/Content/torso.png

2.65 KiB

using System;
using System.Collections.Generic;
using Jypeli;
using Jypeli.Assets;
using Jypeli.Controls;
using Jypeli.Widgets;
namespace Hirsipuu;
/// @author Omanimi
/// @version 28.10.2023
/// <summary>
///
/// </summary>
public class Hirsipuu : PhysicsGame
{
public override void Begin()
{
// Kirjoita ohjelmakoodisi tähän
PhoneBackButton.Listen(ConfirmExit, "Lopeta peli");
Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
}
}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Jypeli.NET" Version="11.*"/>
<PackageReference Include="Jypeli.FarseerPhysics.NET" Version="2.*"/>
</ItemGroup>
<ItemGroup>
<None Update="Content\jalka.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Content\kasi.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Content\kuollutpaa.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Content\kuu.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Content\osat.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Content\paa.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Content\puupalikka.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Content\torso.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
#endregion
namespace Hirsipuu
{
/// <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 Hirsipuu();
game.Run();
}
}
}
\ No newline at end of file
public class MitaTulostaa
{
public static void TulostaKaksi() { System.Console.Write("2"); }
public static void Main()
{
TulostaKolme();
System.Console.Write("1");
TulostaKaksi();
System.Console.WriteLine("5");
}
public static void TulostaKuusi() { System.Console.Write("6"); }
public static void TulostaKolme() { TulostaNelja(); System.Console.Write("7"); }
public static void TulostaNelja() { System.Console.Write("4"); }
}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ExternalConsole>true</ExternalConsole>
</PropertyGroup>
</Project>

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MitaTulostaa", "MitaTulostaa\MitaTulostaa.csproj", "{DAD6872C-1565-4EB4-9159-ABFD3D0B6921}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hirsipuu", "Hirsipuu\Hirsipuu.csproj", "{C9D0052C-A712-4F62-89E6-9940DFE88197}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DAD6872C-1565-4EB4-9159-ABFD3D0B6921}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DAD6872C-1565-4EB4-9159-ABFD3D0B6921}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DAD6872C-1565-4EB4-9159-ABFD3D0B6921}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DAD6872C-1565-4EB4-9159-ABFD3D0B6921}.Release|Any CPU.Build.0 = Release|Any CPU
{C9D0052C-A712-4F62-89E6-9940DFE88197}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C9D0052C-A712-4F62-89E6-9940DFE88197}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C9D0052C-A712-4F62-89E6-9940DFE88197}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C9D0052C-A712-4F62-89E6-9940DFE88197}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment