From 98ebc1527f708c393e5e89d828b86ee4d7785a6b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?N=C3=A4iv=C3=B6=20Jimi=20Sebastian?= <jiminaivo@gmail.com>
Date: Mon, 18 Nov 2024 13:21:29 +0200
Subject: [PATCH] =?UTF-8?q?GIANT=20KUVA=20EI=20OLE=20NE=C3=84=C3=84N=20BLU?=
 =?UTF-8?q?RRED?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs b/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs
index aadc35f..55b0f28 100644
--- a/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs
+++ b/SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs
@@ -111,10 +111,11 @@ public class SimulaattoriPeli : PhysicsGame
     
     private void HahmotKuvakkeet()
     {   
-        GameObject giant = new GameObject(150, 150);
-        giant.Image = LoadImage("GiantEtu.png");
-        giant.Position = new Vector(0, 0);
-        Add(giant);
+        GameObject GiantKuva = new GameObject(150, 150);
+        GiantKuva.Image = LoadImage("GiantEtu.png");
+        GiantKuva.Position = new Vector(0, 0);
+        GiantKuva.Image.Scaling = ImageScaling.Nearest;
+        Add(GiantKuva);
     }
 }
 
-- 
GitLab