Ignore:
Timestamp:
2013-06-28 12:44:13 (7 years ago)
Author:
mitaivas
Message:

Talletus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2013/26/MaxL/Keulaa2/Keulaa/Keulaa/Keulaa.cs

    r4300 r4326  
    2323    Image maanKuva = LoadImage("Maa"); 
    2424    Image maanAllaKuva = LoadImage("Maanalla"); 
     25    SoundEffect rpmAani = LoadSoundEffect("rm125_rpm2"); 
     26    SoundEffect rev = LoadSoundEffect("rm125_rev"); 
     27    SoundEffect idle = LoadSoundEffect("rm125_idle"); 
     28    SoundEffect start = LoadSoundEffect("rm125_start"); 
     29    SoundEffect down = LoadSoundEffect("rm125_downshift"); 
     30     
     31 
    2532 
    2633    PhysicsObject mopo = new PhysicsObject(250, 160); 
     
    4653    { 
    4754 
    48  
    49         MultiSelectWindow alkuValikko = new MultiSelectWindow("Mopo peli", "Aloita", "Lopeta"); 
    50  
     55        //LoadSoundEffect starrt sldwq op 
     56        //MultiSelectWindow alkuValikko = new MultiSelectWindow("Mopo peli", "Aloita", "Lopeta"); 
     57 
     58        //Aanet(); 
    5159        LuoPistelaskuri(); 
    5260        LuoOhjaimet(); 
     
    5462        LuoTausta(); 
    5563        AddCollisionHandler(Eturengas, "taso", NollaaPisteet); 
     64        AddCollisionHandler(mopo, "taso", NollaaPisteet); 
    5665 
    5766        oikeaReuna = new Vector(Level.Right, -560); 
     
    7786    } 
    7887 
     88    void Aanet(SoundEffect aani) 
     89    { 
     90        Sound rpm = rpmAani.CreateSound(); 
     91        rpm.Pitch = -1; 
     92        §   aani.Play(); 
     93            
     94     
     95    } 
     96     
     97     
    7998    void TarkistaNopeus() 
    8099    {  
     
    93112        pisteLaskuri = new IntMeter(0); 
    94113        pisteLaskuri.AddOverTime(1000, 1000); 
     114        //pisteLaskuri. 
    95115 
    96116        Label pisteNaytto = new Label(); 
     
    256276        //Keyboard.Listen(Key.Up, ButtonState.Down, Kaasu, "Braapp!", mopo, kaasu); 
    257277        Keyboard.Listen(Key.Up, ButtonState.Down, Kiihdyta, "Kaasu!", kaasu2); 
     278        Keyboard.Listen(Key.Up, ButtonState.Down, Aanet, null, rpmAani); 
     279        Keyboard.Listen(Key.Up, ButtonState.Pressed, Aanet, null, rev); 
     280        //Keyboard.Listen(Key.Up, ButtonState.Up, Aanet, null, idle); 
    258281        Keyboard.Listen(Key.Right, ButtonState.Down, Nojaus, "Nojaa eteen", Vartalo, eteen); 
    259282        Keyboard.Listen(Key.Right, ButtonState.Down, Nojaus, null , Palikka2, taakse); 
     
    261284        Keyboard.Listen(Key.Left, ButtonState.Down, Nojaus, null , Palikka2, eteen); 
    262285 
     286        Keyboard.Listen(Key.Down, ButtonState.Pressed, Aanet, null, down); 
    263287        Keyboard.Listen(Key.Down, ButtonState.Pressed, Jarru, "Jarru!", Eturengas, 0.2); 
    264288        Keyboard.Listen(Key.Down, ButtonState.Released, JarruPois, null, Eturengas, 1.0); 
Note: See TracChangeset for help on using the changeset viewer.