Changeset 1806 for 2011/23/tueesuih


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

Legend:

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

    r1804 r1806  
    1616 
    1717    Image barricade = LoadImage("Barricade alus"); 
     18    Image otsikkoKuva = LoadImage("Barricade text"); 
    1819 
    1920    PhysicsObject alus; 
     
    147148    { 
    148149        ClearAll(); 
     150         
    149151        valikonKohdat = new List<Label>(); 
    150  
     152        Camera.Reset(); 
    151153        LuoOtsikko(0, 200); 
    152154 
     
    178180        Mouse.ListenMovement(1.0, ValikossaLiikkuminen, null); 
    179181        Keyboard.Listen(Key.Escape, ButtonState.Pressed, Lopeta, ""); 
     182         
    180183    } 
    181184 
     
    216219    void LuoOtsikko(double x, double y) 
    217220    { 
    218         GameObject otsikko = new GameObject(900, 300); 
    219         otsikko.Image = LoadImage("Barricade text"); 
     221        Widget otsikko = new Widget(otsikkoKuva); 
     222        otsikko.Size = new Vector(900, 300); 
    220223        otsikko.X = x; 
    221224        otsikko.Y = y; 
Note: See TracChangeset for help on using the changeset viewer.