Changeset 2876 for 2012/23


Ignore:
Timestamp:
2012-06-08 12:48:35 (11 years ago)
Author:
hasamati
Message:
 
Location:
2012/23/HannesM/The Game of Rooms/The Game of Rooms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 2012/23/HannesM/The Game of Rooms/The Game of Rooms/The Game of Rooms/The_Game_of_Rooms.cs

    r2873 r2876  
    2424    void luoKentta() 
    2525    { 
     26 
    2627        TileMap ruudut = TileMap.FromLevelAsset("The Game Of Rooms (map1)"); 
    2728 
     
    3839        ruudut.SetTileMethod('S', luoseina2); 
    3940        ruudut.SetTileMethod('R', luoseina3); 
    40         ruudut.SetTileMethod('B', luoseina4); 
     41        ruudut.SetTileMethod('Z', luoseina4); 
    4142        ruudut.SetTileMethod('E', luoseina5); 
    4243        ruudut.SetTileMethod('*', luoseina6); 
     
    5758        Laskuri(); 
    5859 
     60        Camera.Follow ( pelaaja ); 
     61        Camera.Zoom(1.5); 
     62 
    5963        Level.BackgroundColor = Color.White; 
    6064 
     
    96100        AddCollisionHandler(pelaaja, "Enu", Elamapakki); 
    97101        AddCollisionHandler(pelaaja, "Ammuu", ammusPakki); 
     102        AddCollisionHandler(pelaaja, "END", Teksti); 
    98103 
    99104        Keyboard.Listen(Key.A, ButtonState.Down, 
     
    290295        lopetus.Shape = Shape.Rectangle; 
    291296        lopetus.IgnoresCollisionResponse = true; 
     297        lopetus.Tag = "END"; 
    292298        Add(lopetus); 
    293299 
     
    467473    void Laskuri() 
    468474    { 
    469         AmmusLaskuri = new IntMeter(6, 0, 20); 
     475        AmmusLaskuri = new IntMeter(7, 0, 100); 
    470476 
    471477        Label ammusNaytto = new Label(); 
     
    479485    } 
    480486 
     487    void Teksti(PhysicsObject pelaaja, PhysicsObject END) 
     488    { 
     489        MessageDisplay.Add("Onneksi olkoon! Paina 'O' avataksesi kenttävalikon"); 
     490    } 
     491 
    481492} 
    482493 
  • 2012/23/HannesM/The Game of Rooms/The Game of Rooms/The Game of RoomsContent/The Game Of Rooms (map1).txt

    r2857 r2876  
    1 ?==============B=================================< 
     1?==============Z=================================< 
    22R              O                                 R 
    33R              D                          LL     R 
    44R         V    D    V   V     V    V      LL     R 
    5 *==StttE====B====================================Y 
     5*==StttE====Z====================================Y 
    66R   ttt     O                                    R 
    77R   ttt     D                                    R 
    88R   ttt  V  D            V     V      V          R 
    9 RtttE========B===================B===========StttR 
     9RtttE========Z===================Z===========StttR 
    1010Rttt         R                   R            tttR 
    1111Rttt         R                   R            tttR 
Note: See TracChangeset for help on using the changeset viewer.