Changeset 725 for 2010/23


Ignore:
Timestamp:
2010-06-11 11:23:31 (9 years ago)
Author:
vajuanse
Message:

sdasa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2010/23/vajuanse/Get the money/Peli.cs

    r722 r725  
    1515        PhysicsObject raha; 
    1616 
    17  
    18  
    1917        protected override void Begin() 
    2018        { 
     
    2826            Asetaohjaimet(); 
    2927            luopistelaskuri(); 
    30  
     28             
    3129 
    3230 
    3331            IntMeter laskuri = new IntMeter(0); 
    34             laskuri.MaxValue = 100000; 
     32            laskuri.MaxValue = 10000; 
    3533            laskuri.UpperLimit += Laskurinylaraja; 
    3634 
     
    7270            Keyboard.Listen(Key.Up, ButtonState.Down, kiihdyta, "Kiihdytä", auto); 
    7371            Keyboard.Listen(Key.Down, ButtonState.Down, jarruta, "Jarruta", auto); 
    74             Keyboard.Listen(Key.Left, ButtonState.Down, kaanny, "Käänny vasemmalle", auto, Angle.Degrees(19)); 
    75             Keyboard.Listen(Key.Right, ButtonState.Down, kaanny, "Käänny oikealle", auto, Angle.Degrees(-19)); 
     72            Keyboard.Listen(Key.Left, ButtonState.Down, kaanny, "Käänny vasemmalle", auto, Angle.Degrees(90)); 
     73            Keyboard.Listen(Key.Right, ButtonState.Down, kaanny, "Käänny oikealle", auto, Angle.Degrees(-90)); 
    7674 
    7775            ControllerOne.Listen(Button.LeftTrigger, ButtonState.Down,kiihdyta,"kiihdutää!",auto); 
     
    216214            raha.X = RandomGen.NextDouble(Level.Left, Level.Right); 
    217215            raha.Y = RandomGen.NextDouble(Level.Top, Level.Bottom); 
    218             raha.Color = Color.Green; 
     216            raha.Color = Color.ForestGreen; 
    219217            AddCollisionHandler(raha, kassitelerahantormays); 
    220218 
     
    228226        { 
    229227            MessageDisplay.TextColor = Color.White; 
    230             MessageDisplay.Add("Olet rikas"); 
     228            MessageDisplay.Add("Olet hyvä pelaaja!"); 
    231229        } 
    232230 
Note: See TracChangeset for help on using the changeset viewer.