Skip to content
Snippets Groups Projects
Commit 385f7ece authored by Salonen Matteus Elmeri's avatar Salonen Matteus Elmeri
Browse files

valmis versio

parent 7234a893
Branches tyo8.2
Tags vaihe8.2
No related merge requests found
......@@ -17,6 +17,7 @@ public class HyttysPeli : PhysicsGame
private IntMeter helttilaskuri;
private PhysicsObject pelaaja;
private Image kuvaAmpiainen = LoadImage("ampiainen");
private Image kuvaHyttynen = LoadImage("hyttynen (2)");
public override void Begin()
{
......@@ -195,7 +196,7 @@ public class HyttysPeli : PhysicsGame
hyttynen.Hit(suunta);
// hyttynen.Velocity = suunta;
hyttynen.Tag = tunniste;
hyttynen.Image = LoadImage("hyttynen (2)");
hyttynen.Image = kuvaHyttynen;
// AddCollisionHandler(hyttynen, "alaosa", HyttynenTormasiSeinaan);
peli.Add(hyttynen);
return hyttynen;
......@@ -230,16 +231,13 @@ public class HyttysPeli : PhysicsGame
/// </summary>
void LuoPistelaskuri()
{
pistelaskuri = new IntMeter(0);
Label pistenaytto = new Label();
pistenaytto.X = Screen.Left + 100;
pistenaytto.Y = Screen.Top - 10;
pistenaytto.TextColor = Color.Black;
pistenaytto.Color = Color.White;
pistenaytto.Title = "Pisteitä: ";
pistenaytto.BindTo(pistelaskuri);
Add(pistenaytto);
}
......@@ -251,14 +249,12 @@ public class HyttysPeli : PhysicsGame
void LuoHelttilaskuri()
{
helttilaskuri = new IntMeter(3);
Label helttinaytto = new Label();
helttinaytto.X = Screen.Right - 100;
helttinaytto.Y = Screen.Top - 10;
helttinaytto.TextColor = Color.Black;
helttinaytto.Color = Color.Red;
helttinaytto.Title = "Elämät: ";
helttinaytto.BindTo(helttilaskuri);
Add(helttinaytto);
}
......
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