- Timestamp:
- 2013-06-28 12:39:31 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/26/PietuR/Weaporage/Weaporage/Weaporage/Weaporage.cs
r4304 r4321 22 22 public override void Begin() 23 23 { 24 Level.Width *= 2;25 Level.Height *= 1.8;24 Level.Width = 2400; 25 Level.Height = 1800; 26 26 LisaaAseetPeliin(); 27 27 28 Level.Background.CreateGradient( Color.OrangeRed, Color.Gold);29 28 Level.Background.CreateGradient(RandomGen.NextColor(), RandomGen.NextColor()); 29 IsFullScreen = true; 30 30 31 31 pelaaja1 = new Pelaaja(5); … … 56 56 Keyboard.Listen(Key.RightControl, ButtonState.Pressed, ValmiinaOttamaanAseen, null, pelaaja1); 57 57 Keyboard.Listen(Key.RightAlt, ButtonState.Pressed, IrrotaAseet, null, pelaaja1); 58 58 59 Keyboard.Listen(Key.Space, ButtonState.Pressed, AloitaAlustaPeli, null); 60 59 61 Keyboard.Listen(Key.A, ButtonState.Down, LiikutaPelaajaa, "liikuta", pelaaja2, new Vector(-100, 0)); 60 62 Keyboard.Listen(Key.D, ButtonState.Down, LiikutaPelaajaa, "liikuta", pelaaja2, new Vector(100, 0)); … … 96 98 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 97 99 } 100 101 void AloitaAlustaPeli() 102 { 103 ClearAll(); 104 Begin(); 105 } 106 98 107 99 108 void IrrotaAseet(Pelaaja pelaaja) … … 208 217 PhysicsObject oikeaJalka = LuoRuumiinOsa(perusKoko / 2, perusKoko * 2, Shape.Ellipse, collisionIgnoreGroup + 2, keskiVartalo.Position + new Vector(10, -70), vari); 209 218 PhysicsObject vasenJalka2 = LuoRuumiinOsa(perusKoko / 2, perusKoko * 2, Shape.Ellipse, collisionIgnoreGroup + 2, keskiVartalo.Position + new Vector(-10, -120), vari); 210 vasenJalka2.Tag = "irtoava";219 //vasenJalka2.Tag = "irtoava"; 211 220 PhysicsObject oikeaJalka2 = LuoRuumiinOsa(perusKoko / 2, perusKoko * 2, Shape.Ellipse, collisionIgnoreGroup + 2, keskiVartalo.Position + new Vector(10, -120), vari); 212 221 PhysicsObject vasenKammen = LuoRuumiinOsa(perusKoko / 2, perusKoko / 2, Shape.Circle, collisionIgnoreGroup + 1, keskiVartalo.Position + new Vector(-115, 40), vari);
Note: See TracChangeset
for help on using the changeset viewer.