From 8774ef4c48f3858937dbcf77abd5ce9dc0a66113 Mon Sep 17 00:00:00 2001
From: vesal <vesal@jyu.fi>
Date: Tue, 17 Oct 2023 14:39:30 +0300
Subject: [PATCH] kuvat

---
 luennot/live14/AngryLego/AngryLego.cs     |  9 +++++----
 luennot/live14/AngryLego/AngryLego.csproj | 24 +++++++++++++++++++++++
 2 files changed, 29 insertions(+), 4 deletions(-)

diff --git a/luennot/live14/AngryLego/AngryLego.cs b/luennot/live14/AngryLego/AngryLego.cs
index 22d61c1..9b512cd 100644
--- a/luennot/live14/AngryLego/AngryLego.cs
+++ b/luennot/live14/AngryLego/AngryLego.cs
@@ -73,7 +73,7 @@ public class AngryLego : PhysicsGame
         seina.Position = paikka;
         seina.Color = Color.Wheat;
         seina.Tag = "rakenne";
-        // seina.Image = LoadImage("tiili");
+        seina.Image = LoadImage("tiili");
         Add(seina);
     }
 
@@ -88,7 +88,7 @@ public class AngryLego : PhysicsGame
         
         seina.Color = Color.Wheat;
         seina.Tag = "rakenne";
-        // seina.Image = LoadImage("tiili");
+        seina.Image = LoadImage("tiili");
         Add(seina);
     }
 
@@ -103,6 +103,7 @@ public class AngryLego : PhysicsGame
         katto.Position = paikka;
         katto.Color = vari;
         katto.Tag = "rakenne";
+        katto.Image = LoadImage("tiili");
         Add(katto);
     }
 
@@ -115,7 +116,7 @@ public class AngryLego : PhysicsGame
         PhysicsObject maila = PhysicsObject.CreateStaticObject(leveys * 6, korkeus);
         maila.Position = paikka;
         maila.Color = vari;
-        // maila.Image = LoadImage("maila3");
+        maila.Image = LoadImage("maila3");
         Add(maila);
     }
 
@@ -130,7 +131,7 @@ public class AngryLego : PhysicsGame
         vihu.Color = vari;
         // vihu.Collided += new NewCollisionHandler(VihuunOsui);
         vihu.Tag = "vihu";
-        // vihu.Image = LoadImage("Baby");
+        vihu.Image = LoadImage("Baby");
         Add(vihu);
     }
 
diff --git a/luennot/live14/AngryLego/AngryLego.csproj b/luennot/live14/AngryLego/AngryLego.csproj
index fb98d03..a8e0995 100644
--- a/luennot/live14/AngryLego/AngryLego.csproj
+++ b/luennot/live14/AngryLego/AngryLego.csproj
@@ -10,4 +10,28 @@
         <PackageReference Include="Jypeli.FarseerPhysics.NET" Version="2.*"/>
     </ItemGroup>
 
+    <ItemGroup>
+      <None Update="Content\Baby.png">
+        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+      </None>
+      <None Update="Content\Igor.png">
+        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+      </None>
+      <None Update="Content\maila.png">
+        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+      </None>
+      <None Update="Content\maila2.png">
+        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+      </None>
+      <None Update="Content\maila3.png">
+        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+      </None>
+      <None Update="Content\symbian.png">
+        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+      </None>
+      <None Update="Content\tiili.png">
+        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+      </None>
+    </ItemGroup>
+
 </Project>
-- 
GitLab