Changeset 2924 for 2011


Ignore:
Timestamp:
2012-06-11 15:01:35 (11 years ago)
Author:
akosrahi
Message:
 
Location:
2011/24/AkiR/Fight the Rambo/Fight the Rambo
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • 2011/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the Rambo/Peli.cs

    r2624 r2924  
    8787        lisaaPelaaja(); 
    8888     
    89         TileMap kentta = TileMap.FromFile("TextFile1.txt"); 
     89        TileMap kentta = TileMap.FromFile("kentta1.txt"); 
    9090        kentta['G'] = lisaaMaali; 
    9191        kentta['E'] = lisaaVihollinen; 
     
    9494        kentta['S'] = LisaaPiikkilanka; 
    9595        kentta['M'] = Lisaamaa; 
     96        kentta['F'] = LisaaAita; 
    9697        kentta.Insert(RUUDUN_KOKO, RUUDUN_KOKO); 
    9798 
     
    175176 
    176177        pelaaja1.Weapon = new AssaultRifle(50, 20); 
     178        pelaaja1.Weapon.Ammo.Value = 10; 
    177179        pelaaja1.Weapon.ProjectileCollision = AmmusOsui; 
    178180        pelaaja1.Weapon.Y = -5; 
     
    184186        pelaaja1.LeftWalkingAnimation = new Animation(kavelyOikealle); 
    185187        Add(pelaaja1, 1); 
    186         Add(pelaaja1); 
    187188 
    188189        return pelaaja1; 
     
    219220        if (Ammus != null) 
    220221        { 
    221             Ammus.Size *= 4; 
     222            Ammus.Size *= 1; 
    222223            Ammus.IgnoresGravity = true; 
    223224            Ammus.MaximumLifetime = TimeSpan.FromSeconds(3.1); 
     
    374375        PhysicsObject Aita = PhysicsObject.CreateStaticObject(RUUDUN_KOKO, RUUDUN_KOKO); 
    375376        Aita.Image = aidankuva; 
    376         Add(Aita, -2); 
     377        Aita.IgnoresCollisionResponse = true; 
     378        //Add(Aita, -2); 
    377379        return Aita; 
    378380    } 
  • 2011/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the Rambo/TextFile1.txt

    r2624 r2924  
    44 
    55                          
    6                                                  
    7 N        
     6N                                                
     7         
    88########################## 
    99                        ## 
  • 2011/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the Rambo/kentta1.txt

    r2623 r2924  
    1313                                                      
    1414                                                     MMMMMMMMMMMMMMMMMM          M       E        E  
    15                                                    M M                M     MMMMMMMMMMMMMMMMMMMMMMMM                     
    16                M    M                        M       M                M              M             M  E 
     15               F                                   M M                M     MMMMMMMMMMMMMMMMMMMMMMMM                     
     16  N            M    M                        M       M                M              M             M  E 
    1717                                                     M                M              M             MMMMMMMMMMM 
    18   N        M                           M             M                M              M                       M 
     18           M                           M             M                M              M                       M 
    1919                          M                          M                MMMM           M        MMMMMMMMMMMMMMMM 
    2020 MMMMMMMMM                    M                      M                M              M        M                     
Note: See TracChangeset for help on using the changeset viewer.