Changeset 6912 for 2015/30


Ignore:
Timestamp:
2015-07-22 12:39:25 (4 years ago)
Author:
arjuhoyl
Message:
 
Location:
2015/30/ArttuH/TasoHyppely
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • 2015/30/ArttuH/TasoHyppely/TasoHyppely/TasoHyppely/TasoHyppely.cs

    r6903 r6912  
    3131    public override void Begin() 
    3232    { 
    33         Gravity = new Vector(0, -1000); 
     33        Gravity = new Vector(0, -1500); 
    3434        Paavalikko(); 
    3535        //LuoKentta(); 
     
    245245            ammus.Size *= 0.8; 
    246246            ammus.Image = luoti; 
    247             ControllerTwo.Vibrate(100000000000.16, 100000000000.16, 0.16, 0.16, 1.1); 
     247            ControllerTwo.Vibrate(100.16, 100.16, 0.16, 0.16, 0.1); 
    248248            ammus.MaximumLifetime = TimeSpan.FromSeconds(0.6); 
    249249        } 
     
    296296        luotilaskuri.Value = 100; 
    297297    } 
    298  
     298    void Ammusotettu2(PhysicsObject hahmo, PhysicsObject kohde) 
     299    { 
     300        kohde.Destroy(); 
     301        PlatformCharacter pelaaja2 = hahmo as PlatformCharacter; 
     302        pelaaja2.Weapon.Ammo.Value = 100; 
     303        luotilaskuri2.Value = 100; 
     304    } 
    299305      
    300306} 
Note: See TracChangeset for help on using the changeset viewer.