Changeset 1804 for 2011/23


Ignore:
Timestamp:
2011-06-09 11:03:20 (8 years ago)
Author:
tueesuih
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/23/tueesuih/Barricade/Barricade.cs

    r1800 r1804  
    103103        Keyboard.Listen(Key.Right, ButtonState.Down, AsetaNopeus, "Liikuta alusta oikealle", alus, nopeusOikea); 
    104104        Keyboard.Listen(Key.Right, ButtonState.Released, AsetaNopeus, null, alus, Vector.Zero); 
    105         Keyboard.Listen(Key.Escape, ButtonState.Pressed, Exit, "Poistu"); 
     105        Keyboard.Listen(Key.Escape, ButtonState.Pressed, Valikko, "Poistu"); 
    106106        Keyboard.Listen(Key.R, ButtonState.Pressed, Restart, "aloita peli uudelleen"); 
    107107    } 
     
    149149        valikonKohdat = new List<Label>(); 
    150150 
    151         LuoOtsikko(); 
     151        LuoOtsikko(0, 200); 
    152152 
    153153        MediaPlayer.Play("Tiger Swiss Roll_mp3"); 
     
    214214    } 
    215215 
    216     void LuoOtsikko() 
     216    void LuoOtsikko(double x, double y) 
    217217    { 
    218218        GameObject otsikko = new GameObject(900, 300); 
    219219        otsikko.Image = LoadImage("Barricade text"); 
    220         otsikko.X = 0; 
    221         otsikko.Y = 200; 
     220        otsikko.X = x; 
     221        otsikko.Y = y; 
    222222        Add(otsikko); 
    223223    } 
Note: See TracChangeset for help on using the changeset viewer.