diff --git a/luennot/live14/AngryLego/AngryLego.cs b/luennot/live14/AngryLego/AngryLego.cs index 22d61c1f45f4657060575823ba05a5293237266a..9b512cd229a8c8c0f67d325d8a3e71c83a79f710 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 fb98d03a9ae4d4aa96925e3188b491c8294da81d..a8e0995d3c5f2e505ff83fbad0bbb1a04c7ff2f2 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>