Changeset 6249 for 2014/30


Ignore:
Timestamp:
2015-06-24 13:11:52 (8 years ago)
Author:
anlakane
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2014/30/MitjaK/Attack to Agora/Attack to Agora/Attack to Agora/Attack to Agora/Attack_to_Agora.cs

    r6246 r6249  
    66using Jypeli.Effects; 
    77using Jypeli.Widgets; 
     8using Microsoft.Xna.Framework.Content; 
    89 
    910public class Attack_to_Agora : PhysicsGame 
     
    1415    /// Vakiot kannattaa merkitä constiksi (ei voi muuttaa). Tällöin ne kirjoitetaan isolla. 
    1516    /// </summary> 
    16     const double NOPEUS = 250; 
     17    const double NOPEUS = 500; // 250 
    1718    const double HYPPYVOIMA = 1500; 
    1819 
     
    2324    PlatformCharacter taistelija; 
    2425 
    25     int kenttaNro = 5; 
     26    int kenttaNro = 1; 
     27 
     28    /// <summary> 
     29    /// Viimeisen pelissä olevan kentän indeksi. 
     30    /// </summary> 
     31    const int VIIMEINEN_KENTTA = 9; 
    2632 
    2733    public override void Begin() 
     
    5662        Gravity = new Vector(0, -2500); 
    5763 
    58         SetWindowSize(1920, 1080); 
    5964        // Synkataan taustakuvan ja colortilemapin pikselit 
    6065        Level.Background.Image = LoadImage("kentta" + kenttaNro.ToString()); 
     
    166171        ClearAll(); 
    167172        kenttaNro++; 
    168         LuoKentta(); 
     173 
     174        if (kenttaNro > VIIMEINEN_KENTTA) 
     175        { 
     176            VoititPelin(); 
     177        } 
     178 
     179        else 
     180        { 
     181            LuoKentta(); 
     182            AsetaOhjaimet(); 
     183        } 
    169184    } 
    170185 
     
    187202        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    188203    } 
     204 
     205    void VoititPelin() 
     206    { 
     207 
     208    } 
    189209} 
Note: See TracChangeset for help on using the changeset viewer.