Changeset 2410


Ignore:
Timestamp:
2011-07-01 12:02:37 (12 years ago)
Author:
oteeansa
Message:

Talletus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/OttoS/Space Race/Space Race/Space Race/Peli.cs

    r2374 r2410  
    2323    ExplosionSystem rajahdys = new ExplosionSystem(LoadImage("123"), 200); 
    2424 
     25 
    2526    public override void Begin() 
    2627    { 
     
    3233        //LuoAikaLaskuri(); 
    3334 
     35        IsFullScreen = true; 
     36 
    3437        if (DataStorage.Exists("pisteet.xml")) 
    3538            topLista = DataStorage.Load<ScoreList>(topLista, "pisteet.xml"); 
    36  
    3739 
    3840    } 
     
    4951        Este.Velocity = new Vector(-250 - (RandomGen.NextDouble(nopeutus / 2, nopeutus)), 0.0); 
    5052 
    51         nopeutus += 9; 
     53        nopeutus += 7; 
    5254    } 
    5355 
     
    5961        Keyboard.Listen(Key.Down, ButtonState.Down, 
    6062          LiikutaUFO, null, new Vector(0, -1000)); 
     63        Keyboard.Listen(Key.Right, ButtonState.Down, 
     64          LiikutaUFO, null, new Vector(1000, 0));  
     65        Keyboard.Listen(Key.Left, ButtonState.Down, 
     66          LiikutaUFO, null, new Vector(-1000, 0)); 
    6167 
    6268    } 
     
    127133        UFO.IgnoresCollisionResponse = true; 
    128134 
    129         Vector impulssi = new Vector(500.0, 0.0); 
     135        Vector impulssi = new Vector(300.0, 0.0); 
    130136        UFO.Restitution = 1.0; 
    131137        Level.BackgroundColor = Color.White; 
    132138        Camera.ZoomToLevel(); 
    133139        Level.Background.Image = taustaKuva; 
    134         Level.CreateBorders(true); 
     140        Level.CreateBorders(false); 
    135141 
    136142        ajastin = new Timer(); 
     
    139145        ajastin.Start(); 
    140146        AddCollisionHandler(UFO, KasitteleUfonTormays); 
    141  
    142         
    143  
    144147    } 
    145148 
     
    149152        Camera.ZoomFactor = 1; 
    150153        Level.Background.Image = ValikonKuva; 
     154        Level.Background.Size = new Vector(Screen.Width, Screen.Height); 
     155         
    151156        valikonKohdat = new List<Label>(); 
    152157 
    153158        Label kohta1 = new Label("Aloita uusi peli"); 
    154         kohta1.Position = new Vector(-500, -100); 
     159        kohta1.Position = new Vector(-400, -100); 
    155160        valikonKohdat.Add(kohta1); 
    156161 
    157162        Label kohta2 = new Label("Lopeta"); 
    158         kohta2.Position = new Vector(-500, -200); 
     163        kohta2.Position = new Vector(-400, -200); 
    159164        valikonKohdat.Add(kohta2); 
    160165 
    161166        Label kohta3 = new Label("Pistelista"); 
    162         kohta3.Position = new Vector(-500, -150); 
     167        kohta3.Position = new Vector(-400, -150); 
    163168        valikonKohdat.Add(kohta3); 
    164169 
     
    167172            Add(valikonKohta); 
    168173        } 
    169  
    170174        Mouse.ListenOn(kohta1, MouseButton.Left, ButtonState.Pressed, AloitaPeli, null); 
    171175        Mouse.ListenOn(kohta2, MouseButton.Left, ButtonState.Pressed, Exit, null); 
     
    175179        Mouse.IsCursorVisible = true; 
    176180        Mouse.ListenMovement(1.0, ValikossaLiikkuminen, null); 
    177  
    178181    } 
    179182 
     
    213216        HighScoreWindow topIkkuna = new HighScoreWindow("Space Race", 
    214217                         "Parhaat pisteet", 
    215                          "Etkö nyt parempaan pystynyt? %p! No, Syötä nyt nimesi:", 
     218                         "Tumpelo etkö nyt parempaan pystynyt? %p! No, Syötä nyt nimesi:", 
    216219                         topLista, alaspainLaskuri.Value); 
    217220        topIkkuna.Closed += TallennaPisteet; 
Note: See TracChangeset for help on using the changeset viewer.