Ignore:
Timestamp:
2016-07-01 12:59:11 (5 years ago)
Author:
vekoski
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2016/26/VeetiK/CaveRun/CaveRun/CaveRun/CaveRun/CaveRun.cs

    r7613 r7627  
    4242    public override void Begin() 
    4343    { 
     44        ClearAll(); 
    4445        MultiSelectWindow alkuValikko = new MultiSelectWindow("CaveRun","start", "exit"); 
    4546        Add(alkuValikko); 
     
    149150 
    150151        AddCollisionHandler(pelaaja, "zombi", delegate(PhysicsObject p, PhysicsObject kohde) { 
    151             pelaajanHP.Value -= 50.0; ControllerOne.Vibrate(0.5, 0.5, 0.0, 0.0, 0.5); 
     152            pelaajanHP.Value -= 50.0; ControllerOne.Vibrate(1, 1, 0.0, 0.0, 0.5); 
    152153            osuma.Play(); 
    153154        }); 
     
    206207 
    207208        ControllerOne.ListenAnalog(AnalogControl.LeftTrigger, 0.0, Juoksu, null); 
    208         ControllerOne.Listen(Button.Start, ButtonState.Pressed, ConfirmExit, null); 
     209        ControllerOne.Listen(Button.Back, ButtonState.Pressed, Begin, null); 
    209210 
    210211 
     
    316317        pelaaja.Add(pelaajanAse); 
    317318        pelaajanAse.IsVisible = false; 
    318         pelaajanAse.FireRate = 9.0; 
    319         pelaajanAse.AttackSound.(); 
     319        pelaajanAse.FireRate = 6.0; 
     320        pelaajanAse.AttackSound = null; 
     321         
    320322 
    321323    } 
     
    402404            //ammus.Size *= 3; 
    403405            ammus.Image = luodinKuva; 
    404  
     406            ak.Play(0.1,0.0,0); 
    405407            ammus.Size = new Vector(25 / 2.0, 8 / 2.0); 
    406408            AddCollisionHandler(ammus, delegate(PhysicsObject a, PhysicsObject kohde) 
Note: See TracChangeset for help on using the changeset viewer.